Re: [NTG-context] Linenumbering
Thanks very much, Hans. De: ntg-context-boun...@ntg.nl en nombre de Hans Hagen Enviado: martes, 15 de abril de 2014 6:58 Para: ntg-context@ntg.nl Asunto: Re: [NTG-context] Linenumbering On 4/10/2014 12:46 AM, MANUEL GONZALEZ SUAREZ wrote: > Hello everyone. > > I give a small example: > > \setuppagenumbering [alternative=doublesided] > > \setuplinenumbering[location=outer, step=5, method=page, > > style=\tfxx, align=left, distance=1em, width=0.4em] > > \starttext > > \section{First section} > > \startlinenumbering > > text text text > > \stoplinenumbering > > \section{Second section} > > \startlinenumbering > > text text text > > \stoplinenumbering > > \stoptext > > The problem is that although appears the option [method = page], > numbering begins at the beginning of each section. I would like the > title of the section does not appear as numbered line but continue after > the title the above numbering, e.e.: > > \startlinenumbering > > \section{First section} no numbered line > > Numbered line (1) > > Numbered line (2) > > \section{Second section} no numbered line > > Numbered line (3) > > Numbered line (4) > > … > > \stoplinenumbering \startlinenumbering[continue] - 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Linenumbering
On 4/10/2014 12:46 AM, MANUEL GONZALEZ SUAREZ wrote: Hello everyone. I give a small example: \setuppagenumbering [alternative=doublesided] \setuplinenumbering[location=outer, step=5, method=page, style=\tfxx, align=left, distance=1em, width=0.4em] \starttext \section{First section} \startlinenumbering text text text \stoplinenumbering \section{Second section} \startlinenumbering text text text \stoplinenumbering \stoptext The problem is that although appears the option [method = page], numbering begins at the beginning of each section. I would like the title of the section does not appear as numbered line but continue after the title the above numbering, e.e.: \startlinenumbering \section{First section} no numbered line Numbered line (1) Numbered line (2) \section{Second section} no numbered line Numbered line (3) Numbered line (4) … \stoplinenumbering \startlinenumbering[continue] - 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Linenumbering and bidi
On 2014-03-28 18:25, Hans Hagen wrote: On 3/28/2014 10:45 PM, Rik Kabel wrote: I have requirements similar to those of Stéphane Goujet to reproduce the typography of earlier times, and I tried to adapt the code presented in his note earlier today titled “Quotation blocs with repetition symbol in the left column.” The result of this attempt is the discovery of two issues with linenumbering. I will present these in separate notes. This note involves an unfortunate interaction with bidi. The other problem involves startnarrower. Both issues occur with the current 20140328 beta. Adding the line \setupdirections[bidi=on,method=two] to Stéphane’s example results in the disappearance of the guillemots that would otherwise be placed as linenumbers. In my case, this bidi variant is needed to prevent misplaced references. The issue of misplaced references was discusssed in a recent thread by Pablo Rodriguez (Re: [NTG-context] (again) bug with bidi direction and \about references, begun on 3 March). The bidi issue does not occur with TL2013, although perhaps method=two is meaningless there. Other bidi options do not show this problem. proper minimal example needed Hans This should do. I also include commented statements for the startnarrower issue. \setupdirections [bidi=on,method=two] %\setupdirections [bidi=on] \definelinenumbering[fail][location=text,width=.75em] \definestartstop[bloccitel][before={\startlinenumbering[fail]}, after={\stoplinenumbering}] \starttext %\setupnarrower[left=3cm,right=2cm] %\startnarrower[left,right] Now, a quote block starting just there, \startbloccitel \input tufte \stopbloccitel . This a bit of text at the end of the quotation. %\stopnarrower \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Linenumbering and bidi
On 3/28/2014 10:45 PM, Rik Kabel wrote: I have requirements similar to those of Stéphane Goujet to reproduce the typography of earlier times, and I tried to adapt the code presented in his note earlier today titled “Quotation blocs with repetition symbol in the left column.” The result of this attempt is the discovery of two issues with linenumbering. I will present these in separate notes. This note involves an unfortunate interaction with bidi. The other problem involves startnarrower. Both issues occur with the current 20140328 beta. Adding the line \setupdirections[bidi=on,method=two] to Stéphane’s example results in the disappearance of the guillemots that would otherwise be placed as linenumbers. In my case, this bidi variant is needed to prevent misplaced references. The issue of misplaced references was discusssed in a recent thread by Pablo Rodriguez (Re: [NTG-context] (again) bug with bidi direction and \about references, begun on 3 March). The bidi issue does not occur with TL2013, although perhaps method=two is meaningless there. Other bidi options do not show this problem. proper minimal example needed 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] linenumbering in columnsets (or different solution?)
On 07/10/2013 12:06 PM, Hans Hagen wrote: On 7/9/2013 7:36 PM, Thomas A. Schmitz wrote: I want a document with two columns; left column is poetry, so I want the lines to be numbered. Unfortunately, linenumbering doesn't appear to work in columns(ets), so my next attempt was to produce a third, very narrow column which displays the line numbers. However, columnsets with different columns is not implemented in mkiv, AFAICS. Examples: \unprotect % in cont-new.mkiv: Thanks Hans, this works! Will it make it into the core for the next beta? Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] linenumbering in columnsets (or different solution?)
On 7/9/2013 7:36 PM, Thomas A. Schmitz wrote: Hi, I want a document with two columns; left column is poetry, so I want the lines to be numbered. Unfortunately, linenumbering doesn't appear to work in columns(ets), so my next attempt was to produce a third, very narrow column which displays the line numbers. However, columnsets with different columns is not implemented in mkiv, AFAICS. Examples: i'll send you a patch to play with - 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] linenumbering
On 07/12/2012 10:34 PM, Wolfgang Schuster wrote: The liner numbering environment has no before/after keys, you should always keep in mind that line numbers are added after the page is finished and the start/stop commands are mark the begin and end of the block where numbers are added. You can always use the annotation module which has space before/spaceafter keys to control the spacing around the environment. Thanks, Wolfgang, but that was Hans's code, in fact :-) But that's good to know anyway! Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] linenumbering
Am 12.07.2012 um 15:57 schrieb Thomas A. Schmitz: > On 07/09/2012 10:46 PM, Hans Hagen wrote: >> btw, you can define linenumberings ... > > Hi Hans, > > I finally had time to play a bit with your code, and AFAICS, the settings for > "before" and "after" in \definelinenumbering are quietly ignored; at least, I > get no blank lines: The liner numbering environment has no before/after keys, you should always keep in mind that line numbers are added after the page is finished and the start/stop commands are mark the begin and end of the block where numbers are added. You can always use the annotation module which has space before/spaceafter keys to control the spacing around the environment. \usemodule[annotation] \definelinenumbering [blockquote] [width=1cm, location=text] \define[2]\BlockquoteCommand {\startlinenumbering[blockquote][start=\annotationparameter{start}]% #2% \stoplinenumbering} \defineannotation [numberedblockquote] [alternative=command, command=\BlockquoteCommand] \starttext \input tufte \startnumberedblockquote[start=3] \input knuth \stopnumberedblockquote \input tufte \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] linenumbering
On 07/09/2012 10:46 PM, Hans Hagen wrote: btw, you can define linenumberings ... Hi Hans, I finally had time to play a bit with your code, and AFAICS, the settings for "before" and "after" in \definelinenumbering are quietly ignored; at least, I get no blank lines: \definelinenumbering [blocked] [width=1cm, location=text, before={\blank[line]}, after={\blank[line]}] \getrawparameters [numberedblockquote] [start=1] \unexpanded\def\startnumberedblockquote {\dosingleempty\dostartnumberedblockquote} \def\dostartnumberedblockquote[#1]% {\begingroup \setupindenting[no]% \getrawparameters[numberedblockquote][#1]% \startlinenumbering[blocked][start=\numberedblockquotestart]} \unexpanded\def\stopnumberedblockquote {\stoplinenumbering \endgroup} \starttext \input tufte \startnumberedblockquote[start=3] \input knuth \stopnumberedblockquote \input tufte \stoptext All best Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] linenumbering
On 7/9/12 10:46 PM, Hans Hagen wrote: fixed % \startlinenumbering[|continue|settings|name] % \startlinenumbering[name][|continue|settings] btw, you can define linenumberings ... Thanks for the fix, and for the code - I'll play with it later today! All best Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] linenumbering
On 9-7-2012 20:50, Thomas A. Schmitz wrote: \def\startnumberedblockquote {\dosingleempty\dostartnumberedblockquote} \def\dostartnumberedblockquote[#1]% {\getrawparameters[numberedblockquote][start=1,#1]% \blank[line]% \begingroup \setupindenting[no]% \setuplinenumbering[location=text] \startlinenumbering[width=1cm][\numberedblockquotestart]} \def\stopnumberedblockquote {\stoplinenumbering \endgroup \blank[line]} \starttext \startnumberedblockquote[start=3] \input knuth \stopnumberedblockquote \stoptext fixed % \startlinenumbering[|continue|settings|name] % \startlinenumbering[name][|continue|settings] btw, you can define linenumberings ... \definelinenumbering [blocked] [width=1cm, location=text, before={\blank[line]}, after={\blank[line]}] \getrawparameters [numberedblockquote] [start=1] \unexpanded\def\startnumberedblockquote {\dosingleempty\dostartnumberedblockquote} \def\dostartnumberedblockquote[#1]% {\begingroup \setupindenting[no]% \getrawparameters[numberedblockquote][#1]% \startlinenumbering[blocked][start=\numberedblockquotestart]} \unexpanded\def\stopnumberedblockquote {\stoplinenumbering \endgroup} -- - 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] linenumbering per page
Thanks that worked! \starttext \setuplinenumbering[method=page] \startlinenumbering \dorecurse{20}{\input knuth\par} \stoplinenumbering \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] linenumbering per page
Am 04.07.2012 um 16:50 schrieb Martin: > Hi, I would like to place line numbers in a multipage document. > > \startlinenumbering > lots of text filling several pages > \stoplinenumbering > > What I would like to have, and fail to find, is an option to that would > restart the numbering on every page as I do not need to reference each line. > e.g. finding line 15 on page 6 is fine. > > > \setuplinenumbering doesn't seem to provide an option. > > Anything I can do? Thanks! \starttext \setuplinenumbering[method=page] \startlinenumbering \dorecurse{20}{\input knuth\par} \stoplinenumbering \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Linenumbering
Thank you very much for pointing this out. - I am able to typeset the text in the way I would like. I tried a couple of options but not all of them have effects. - I can understand that, because it looks like this mechanism is under further construction … Willi On May 25, 2012, at 1:59 PM, Rogers, Michael K wrote: > On May 25, 2012, at 6:33 AM, Willi Egger wrote: >> Hi, >> On May 25, 2012, at 12:30 PM, Willi Egger wrote: >> >>> Oh dear, stupid me… >>> >>> Still I have two things: >>> >>> - It appears that the intent option is not honored and the numbers appear >>> always in the margin. >> >> should read as intext .. ;-) >>> - The numbers are flush right in the margin, but after line >99 the third >>> number is placed outside the margin towards the text. >>> >>> Willi > > Try >\setuplinenumbering[step=5,location=text] > > From page.lin.mkiv, there seems to be these options now: >\setnewconstant\linenumberlocation \plusone % 0=middle, 1=left, 2=right, > 3=inner, 4=outer, 5=text, 6=begin, 7=end > One may also use command=\myLocation, e.g., to put the line number in text at > right, use >\def\myLocation#1{\rlap{\hskip\leftmargindistance\hskip\textwidth{#1}}} > > Note: Changing to location=middle in your (or any) example gives an error, > \domakelinenumber undefined: > > \starttext > \setuplinenumbering[step=5,location=middle] > \startlinenumbering > \startlines > Een nieuwe lente en een nieuw geluid: > Ik wil dat dit lied klinkt als het gefluit, > Dat ik vaak hoorde voor een zomernacht, > In een oud stadje, langs de watergracht --- > In huis was 't donker, maar de stille straat > Vergaarde schemer, aan de lucht blonk laat > Nog licht, er viel een gouden blanke schijn > Over de gevels van mijn raamkozijn. > \stoplines > \stoplinenumbering > \stoptext > > > > > This e-mail message (including any attachments) is for the sole use of > the intended recipient(s) and may contain confidential and privileged > information. If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, distribution > or copying of this message (including any attachments) is strictly > prohibited. > > If you have received this message in error, please contact > the sender by reply e-mail message and destroy all copies of the > original message (including attachments). > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Linenumbering
On May 25, 2012, at 6:33 AM, Willi Egger wrote: > Hi, > On May 25, 2012, at 12:30 PM, Willi Egger wrote: > >> Oh dear, stupid me… >> >> Still I have two things: >> >> - It appears that the intent option is not honored and the numbers appear >> always in the margin. > > should read as intext .. ;-) >> - The numbers are flush right in the margin, but after line >99 the third >> number is placed outside the margin towards the text. >> >> Willi Try \setuplinenumbering[step=5,location=text] >From page.lin.mkiv, there seems to be these options now: \setnewconstant\linenumberlocation \plusone % 0=middle, 1=left, 2=right, 3=inner, 4=outer, 5=text, 6=begin, 7=end One may also use command=\myLocation, e.g., to put the line number in text at right, use \def\myLocation#1{\rlap{\hskip\leftmargindistance\hskip\textwidth{#1}}} Note: Changing to location=middle in your (or any) example gives an error, \domakelinenumber undefined: \starttext \setuplinenumbering[step=5,location=middle] \startlinenumbering \startlines Een nieuwe lente en een nieuw geluid: Ik wil dat dit lied klinkt als het gefluit, Dat ik vaak hoorde voor een zomernacht, In een oud stadje, langs de watergracht --- In huis was 't donker, maar de stille straat Vergaarde schemer, aan de lucht blonk laat Nog licht, er viel een gouden blanke schijn Over de gevels van mijn raamkozijn. \stoplines \stoplinenumbering \stoptext This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Linenumbering
Hi, On May 25, 2012, at 12:30 PM, Willi Egger wrote: > Oh dear, stupid me… > > Still I have two things: > > - It appears that the intent option is not honored and the numbers appear > always in the margin. should read as intext .. ;-) > - The numbers are flush right in the margin, but after line >99 the third > number is placed outside the margin towards the text. > > Willi > > > On May 25, 2012, at 10:48 AM, Hans Hagen wrote: > >> On 25-5-2012 10:07, Willi Egger wrote: >>> Hi all, >>> >>> may be i am mistaken, but I can't get line numbering to show in the beta of >>> yesterday afternoon. >>> >>> \starttext >>> \setuplinenumbering[step=5,location=intext] >>> \startlines >>> Een nieuwe lente en een nieuw geluid: >>> Ik wil dat dit lied klinkt als het gefluit, >>> Dat ik vaak hoorde voor een zomernacht, >>> In een oud stadje, langs de watergracht --- >>> In huis was 't donker, maar de stille straat >>> Vergaarde schemer, aan de lucht blonk laat >>> Nog licht, er viel een gouden blanke schijn >>> Over de gevels van mijn raamkozijn. >>> \stoplines >>> \stoptext >>> >>> It compiles ok, no error messages. >> >> at least make sure that you *do* number: >> >> \setuplinenumbering[step=5,location=intext] >> \startlinenumbering >> \startlines >> Een nieuwe lente en een nieuw geluid: >> Ik wil dat dit lied klinkt als het gefluit, >> Dat ik vaak hoorde voor een zomernacht, >> In een oud stadje, langs de watergracht --- >> In huis was 't donker, maar de stille straat >> Vergaarde schemer, aan de lucht blonk laat >> Nog licht, er viel een gouden blanke schijn >> Over de gevels van mijn raamkozijn. >> \stoplines >> \stoplinenumbering >> >> lines and linenumbering are independent mechanisms >> >> 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 >> - >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> ___ > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Linenumbering
Oh dear, stupid me… Still I have two things: - It appears that the intent option is not honored and the numbers appear always in the margin. - The numbers are flush right in the margin, but after line >99 the third number is placed outside the margin towards the text. Willi test-linenumbering.tex Description: Binary data On May 25, 2012, at 10:48 AM, Hans Hagen wrote: > On 25-5-2012 10:07, Willi Egger wrote: >> Hi all, >> >> may be i am mistaken, but I can't get line numbering to show in the beta of >> yesterday afternoon. >> >> \starttext >> \setuplinenumbering[step=5,location=intext] >> \startlines >> Een nieuwe lente en een nieuw geluid: >> Ik wil dat dit lied klinkt als het gefluit, >> Dat ik vaak hoorde voor een zomernacht, >> In een oud stadje, langs de watergracht --- >> In huis was 't donker, maar de stille straat >> Vergaarde schemer, aan de lucht blonk laat >> Nog licht, er viel een gouden blanke schijn >> Over de gevels van mijn raamkozijn. >> \stoplines >> \stoptext >> >> It compiles ok, no error messages. > > at least make sure that you *do* number: > > \setuplinenumbering[step=5,location=intext] > \startlinenumbering > \startlines > Een nieuwe lente en een nieuw geluid: > Ik wil dat dit lied klinkt als het gefluit, > Dat ik vaak hoorde voor een zomernacht, > In een oud stadje, langs de watergracht --- > In huis was 't donker, maar de stille straat > Vergaarde schemer, aan de lucht blonk laat > Nog licht, er viel een gouden blanke schijn > Over de gevels van mijn raamkozijn. > \stoplines > \stoplinenumbering > > lines and linenumbering are independent mechanisms > > 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 > - > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Linenumbering
On 25-5-2012 10:07, Willi Egger wrote: Hi all, may be i am mistaken, but I can't get line numbering to show in the beta of yesterday afternoon. \starttext \setuplinenumbering[step=5,location=intext] \startlines Een nieuwe lente en een nieuw geluid: Ik wil dat dit lied klinkt als het gefluit, Dat ik vaak hoorde voor een zomernacht, In een oud stadje, langs de watergracht --- In huis was 't donker, maar de stille straat Vergaarde schemer, aan de lucht blonk laat Nog licht, er viel een gouden blanke schijn Over de gevels van mijn raamkozijn. \stoplines \stoptext It compiles ok, no error messages. at least make sure that you *do* number: \setuplinenumbering[step=5,location=intext] \startlinenumbering \startlines Een nieuwe lente en een nieuw geluid: Ik wil dat dit lied klinkt als het gefluit, Dat ik vaak hoorde voor een zomernacht, In een oud stadje, langs de watergracht --- In huis was 't donker, maar de stille straat Vergaarde schemer, aan de lucht blonk laat Nog licht, er viel een gouden blanke schijn Over de gevels van mijn raamkozijn. \stoplines \stoplinenumbering lines and linenumbering are independent mechanisms 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] linenumbering and text backgrounds
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 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] linenumbering and text backgrounds
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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] linenumbering
Thomas A. Schmitz wrote: All, I have a document with several sections and would like to have lines numbered consecutively across all sections. However, when the \startlinenumbering ... stoplinenumbering spans a \section command, it doesn't work any longer; lines are not numbered. Is there a solution or a workaround? \section{some} \startlinenumbering test test \stoplinenumbering \section{more} \startlinenumbering [continue] test test \stoplinenumbering ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context