linenumbering and text backgrounds
Hi, Line numbering does not work well with text backgrounds (with location=paragraph). Consider the following minimal example \definetextbackground [test] [location=paragraph, alternative=0, frame=off, background=color, backgroundcolor=yellow] \starttext \startlinenumbering \starttest \dorecurse{20}{some random text} \stoptest \dorecurse{20}{continue text} \stoplinenumbering \stoptext Notice that line numbers 1 and 2 are overprinted, and so are 6 and 7. I can "fix" this by using "location=text", but that only highlights half of the last line (while I want full line to be highlighted). Any idea on how to fix this? Thanks, Aditya
On 1-8-2011 3:37, Aditya Mahajan wrote:
Hi,
Line numbering does not work well with text backgrounds (with location=paragraph). Consider the following minimal example
\definetextbackground [test] [location=paragraph, alternative=0, frame=off, background=color, backgroundcolor=yellow]
\starttext \startlinenumbering \starttest \dorecurse{20}{some random text} \stoptest \dorecurse{20}{continue text} \stoplinenumbering \stoptext
Notice that line numbers 1 and 2 are overprinted, and so are 6 and 7. I can "fix" this by using "location=text", but that only highlights half of the last line (while I want full line to be highlighted).
Any idea on how to fix this?
yes, apart from rewriting background support (on the agenda) i need to think of a clean temp fix (will do) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Wed, 3 Aug 2011, Hans Hagen wrote:
On 1-8-2011 3:37, Aditya Mahajan wrote:
Hi,
Line numbering does not work well with text backgrounds (with location=paragraph). Consider the following minimal example
\definetextbackground [test] [location=paragraph, alternative=0, frame=off, background=color, backgroundcolor=yellow]
\starttext \startlinenumbering \starttest \dorecurse{20}{some random text} \stoptest \dorecurse{20}{continue text} \stoplinenumbering \stoptext
Notice that line numbers 1 and 2 are overprinted, and so are 6 and 7. I can "fix" this by using "location=text", but that only highlights half of the last line (while I want full line to be highlighted).
Any idea on how to fix this?
yes, apart from rewriting background support (on the agenda) i need to think of a clean temp fix (will do)
Thanks. Aditya
participants (2)
-
Aditya Mahajan
-
Hans Hagen