ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* linenumbering
@ 2012-07-09 18:50 Thomas A. Schmitz
  2012-07-09 20:46 ` linenumbering Hans Hagen
  0 siblings, 1 reply; 17+ messages in thread
From: Thomas A. Schmitz @ 2012-07-09 18:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

OK, here's another one. For the code, I must admit: 
http://www.alyssahiba.com/wp-content/uploads/2012/02/no-idea-what-im-doing-dog.jpg

I think it was the Wolfgang who helped me with this a couple of months 
ago. I want a start/stop pair that will take as an argument a key-value 
to set the beginning of the line numbering. So here's my example:

\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

This works with 2012.06.30 12:32, but not with 2012.07.07 15:04.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: linenumbering
  2012-07-09 18:50 linenumbering Thomas A. Schmitz
@ 2012-07-09 20:46 ` Hans Hagen
  2012-07-10  5:43   ` linenumbering Thomas A. Schmitz
  2012-07-12 13:57   ` linenumbering Thomas A. Schmitz
  0 siblings, 2 replies; 17+ messages in thread
From: Hans Hagen @ 2012-07-09 20:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Thomas A. Schmitz

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[<startvalue>|continue|settings|name]
% \startlinenumbering[name][<startvalue>|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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: linenumbering
  2012-07-09 20:46 ` linenumbering Hans Hagen
@ 2012-07-10  5:43   ` Thomas A. Schmitz
  2012-07-12 13:57   ` linenumbering Thomas A. Schmitz
  1 sibling, 0 replies; 17+ messages in thread
From: Thomas A. Schmitz @ 2012-07-10  5:43 UTC (permalink / raw)
  To: Hans Hagen, mailing list for ConTeXt users

On 7/9/12 10:46 PM, Hans Hagen wrote:
> fixed
>
> % \startlinenumbering[<startvalue>|continue|settings|name]
> % \startlinenumbering[name][<startvalue>|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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: linenumbering
  2012-07-09 20:46 ` linenumbering Hans Hagen
  2012-07-10  5:43   ` linenumbering Thomas A. Schmitz
@ 2012-07-12 13:57   ` Thomas A. Schmitz
  2012-07-12 20:34     ` linenumbering Wolfgang Schuster
  1 sibling, 1 reply; 17+ messages in thread
From: Thomas A. Schmitz @ 2012-07-12 13:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: linenumbering
  2012-07-12 13:57   ` linenumbering Thomas A. Schmitz
@ 2012-07-12 20:34     ` Wolfgang Schuster
  2012-07-14 15:09       ` linenumbering Thomas A. Schmitz
  0 siblings, 1 reply; 17+ messages in thread
From: Wolfgang Schuster @ 2012-07-12 20:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: linenumbering
  2012-07-12 20:34     ` linenumbering Wolfgang Schuster
@ 2012-07-14 15:09       ` Thomas A. Schmitz
  0 siblings, 0 replies; 17+ messages in thread
From: Thomas A. Schmitz @ 2012-07-14 15:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Linenumbering
  2014-04-15  6:58 ` Linenumbering Hans Hagen
@ 2014-04-23  8:06   ` MANUEL GONZALEZ SUAREZ
  0 siblings, 0 replies; 17+ messages in thread
From: MANUEL GONZALEZ SUAREZ @ 2014-04-23  8:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thanks very much, Hans.
________________________________________
De: ntg-context-bounces@ntg.nl <ntg-context-bounces@ntg.nl> en nombre de Hans Hagen <pragma@wxs.nl>
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Linenumbering
  2014-04-09 22:46 Linenumbering MANUEL GONZALEZ SUAREZ
@ 2014-04-15  6:58 ` Hans Hagen
  2014-04-23  8:06   ` Linenumbering MANUEL GONZALEZ SUAREZ
  0 siblings, 1 reply; 17+ messages in thread
From: Hans Hagen @ 2014-04-15  6:58 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Linenumbering
@ 2014-04-09 22:46 MANUEL GONZALEZ SUAREZ
  2014-04-15  6:58 ` Linenumbering Hans Hagen
  0 siblings, 1 reply; 17+ messages in thread
From: MANUEL GONZALEZ SUAREZ @ 2014-04-09 22:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 930 bytes --]

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



Thanks very much?


[-- Attachment #1.2: Type: text/html, Size: 4161 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Linenumbering
  2012-05-25 11:59       ` Linenumbering Rogers, Michael K
@ 2012-05-25 15:19         ` Willi Egger
  0 siblings, 0 replies; 17+ messages in thread
From: Willi Egger @ 2012-05-25 15:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Linenumbering
  2012-05-25 10:33     ` Linenumbering Willi Egger
@ 2012-05-25 11:59       ` Rogers, Michael K
  2012-05-25 15:19         ` Linenumbering Willi Egger
  0 siblings, 1 reply; 17+ messages in thread
From: Rogers, Michael K @ 2012-05-25 11:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Linenumbering
  2012-05-25 10:30   ` Linenumbering Willi Egger
@ 2012-05-25 10:33     ` Willi Egger
  2012-05-25 11:59       ` Linenumbering Rogers, Michael K
  0 siblings, 1 reply; 17+ messages in thread
From: Willi Egger @ 2012-05-25 10:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
> 
> <test-linenumbering.tex>
> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Linenumbering
  2012-05-25  8:48 ` Linenumbering Hans Hagen
@ 2012-05-25 10:30   ` Willi Egger
  2012-05-25 10:33     ` Linenumbering Willi Egger
  0 siblings, 1 reply; 17+ messages in thread
From: Willi Egger @ 2012-05-25 10:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 288 bytes --]

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


[-- Attachment #2: test-linenumbering.tex --]
[-- Type: application/octet-stream, Size: 5181 bytes --]

% Context file
% Filename: untitled.tex
% 
% 25-05-2012
% Copyright (c) 2012 BOEDE. All rights reserved.
%
% \nopdfcompression
% \enabletrackers[context.trace]
% \enabletrackers[system.jobfiles]

\usetypescriptfile[type-seravek]
\usetypescript[Seravek]
\setupbodyfont[Seravek,ss,12pt]
\setuppagenumbering[location=]
\setuplayout
	[topspace=2.5cm,
	backspace=1.5cm,
	header=0pt,
	footer=0pt,
	height=middle,
	width=middle]
\mainlanguage[nl]

\showframe

\starttext
\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.
Dan blies een jongen als een orgelpijp,
De klanken schudden in de lucht zoo rijp
Als jonge kersen, wen een lentewind
In 't boschje opgaat en zijn reis begint.
Hij dwaald' over de bruggn, op den wal
Van 't water, langzaam gaande, overal
Als 'n jonge vogel fluitend, onbewust
Van eigen blijheid om de avondrust.
En menig moe man, die zijn avondmaal
Nam, luisterde, als naar een oud verhaal,
Glimlachend, en een hand die 't venster sloot,
Talmde een pooze wijl de jongen floot.

Zóó wil ik dat dit lied klinkt, er is één
Die ik wèl wenschte dat mijn stem bescheen
Met meer dan lachen van haar zachte oog...
Heil, heil, ik voel hier handen en den weeken boog
Van haren arm. Een koepel van blind licht,
Mild nevelend, omgeeft mijn aangezicht,
Mijn stem brandt in mij als de geele vlam
Van gas in glazen kooi, een eikenstam
Breekt uit in twijgen en jong loover spruit
Naar buiten: Hoort, er gaat een nieuw geluid:
Een jonge veldheer staat, in 't blauw en goud
Roept aan de holle poort een luid heraut.


Blauw dreef de zee, het water van de zon
Vloot pas en frisscher uit de gouden bron,
Op woll'ge golven, die zich lieten wasschen
En zalven met zijn licht, uit open plassen
Stonden golven als witte rammen op,
Met trossen schuim en horens op den kop.

Maar in zijn rand verbrak de zee in reven
Telkens en telkens weer, er boven dreven
Als gouden bijen wolken in het blauw,
Duizende volle mondjes bliezen dauw
En zout in ronde droppen op den rand
Van roodgelipte schelpen, vn het strand
De bloemen, witte en geele als room en rood'
Als kindernagels, en gestreepte, lood-
Blauw als een avondlucht bij windgetij.
Kinkhorens murmelden hun melodij
In rust, op 't gonzen van de golf dreef voort
Helderder ruischen als in drooger woord
Vochtige klinkers, schelpen rinkelden
In 't glinst'rend water glas en kiezel en
Metalen ringen, en op veeren wiek
Vervoerde waterbellen vol muziek
Geladen, lichter wind. Over het duin
Dreven ze door de lucht tot in den tuin
Van Holland, en die schoon en vol was zonk
En brak in 't zinken wijl muziek weerklonk
Schooner dan stemmen, en van mijmerij
Elk duin opzag verre en van nabij.

En in een waterwieg, achter in zee ---
Duizend schuimige spreien deinen mee ---
Ontwaakt' een jonge Trion en een lach
Vloeid' over zijn gelaat heer, als hij zag
De waterheuvels om zich en een toren
Van een wit wolkje boven zich, zijn horen
Lag in zijn blooten arm, verguld in blank.
Hij blies er in, er viel een zacht geklank
Als zomerregen uit den gouden mond.
Toen luider lachend wentelde hij rond
En zwom naar boven door den waterval
Van schuim en sneeuw, die drijft in ieder dal
Tusschen twee waterbergen, zie, hij ligt
Nest'lend in kroezig water, 'n wiegewicht
Door moeder pas gewasschen in haar schoot;
Het drijft van ronde druppels, overrood
Reiken de armpjes, uit het mondje gaat
Gekraai; zoo dreef hij, in het bol gelaat
Tusschen de lippen in, de gouden kelk,
Fontein van gouden klanken, een vaas melk-
Wit was hij drijvend met gemengden wijn,
Vurig rood blozend door het porselein.
Nu zetelt hij in 't water, baar na baar
Ziet hij al lachend rijzen na elkaar,
Daar schatert hij en spant den blanken arm,
En door het water gaat een luid alarm.

Toen werd de zee wel als een groot zwaar man
Van vroeger eeuw en kleding, rijker dan
Nu in dit land zijn: bruin fluweel en zij
Als zilver en zwart vilt en pelterij
Vèr uit Siberisch Rusland; geel koper
Brandt vele lichtjes in de plooien der
Hoozen, in knoopen en in passement
Van het breed overkleed, wijd uithangend.

Was zoo de zee? Neen, neen, een stad geleek
Ze, pleinen en straten in de kermisweek,
Boerinne' en boeren, en muziek en dans
In de herbergen en in lichten krans
Om elke markt de snuisterijenkramen.
Of als een koning komt en alle ramen
Zijn licht des avonds en uit ieder dak
Een witte vlag. Zoo was de zee, er stak
Een vlag van alle gevels, achter 't raam
Der golven brandden rijen lichten, saam
Liep heel het volk. Meermannen zwommen aan,
Nimfen en elven der zee, en zaten aan
De groene hellingen. Maar Tritons woorden stonden
Oud en gebaard ter zijde, aan de monden
Trompetten, bouwende een lange straat
Geluid over het zeegelaat.
\stoplines
\stoplinenumbering
\stoptext

[-- Attachment #3: Type: text/plain, Size: 2262 bytes --]


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
> ___________________________________________________________________________________


[-- Attachment #4: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Linenumbering
  2012-05-25  8:07 Linenumbering Willi Egger
@ 2012-05-25  8:48 ` Hans Hagen
  2012-05-25 10:30   ` Linenumbering Willi Egger
  0 siblings, 1 reply; 17+ messages in thread
From: Hans Hagen @ 2012-05-25  8:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Willi Egger

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Linenumbering
@ 2012-05-25  8:07 Willi Egger
  2012-05-25  8:48 ` Linenumbering Hans Hagen
  0 siblings, 1 reply; 17+ messages in thread
From: Willi Egger @ 2012-05-25  8:07 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

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.


Willi
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: linenumbering
  2006-01-14 12:18 linenumbering Thomas A. Schmitz
@ 2006-01-15 18:14 ` Hans Hagen
  0 siblings, 0 replies; 17+ messages in thread
From: Hans Hagen @ 2006-01-15 18:14 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 17+ messages in thread

* linenumbering
@ 2006-01-14 12:18 Thomas A. Schmitz
  2006-01-15 18:14 ` linenumbering Hans Hagen
  0 siblings, 1 reply; 17+ messages in thread
From: Thomas A. Schmitz @ 2006-01-14 12:18 UTC (permalink / raw)


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?

Thanks, and best

Thomas

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2014-04-23  8:06 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-09 18:50 linenumbering Thomas A. Schmitz
2012-07-09 20:46 ` linenumbering Hans Hagen
2012-07-10  5:43   ` linenumbering Thomas A. Schmitz
2012-07-12 13:57   ` linenumbering Thomas A. Schmitz
2012-07-12 20:34     ` linenumbering Wolfgang Schuster
2012-07-14 15:09       ` linenumbering Thomas A. Schmitz
  -- strict thread matches above, loose matches on Subject: below --
2014-04-09 22:46 Linenumbering MANUEL GONZALEZ SUAREZ
2014-04-15  6:58 ` Linenumbering Hans Hagen
2014-04-23  8:06   ` Linenumbering MANUEL GONZALEZ SUAREZ
2012-05-25  8:07 Linenumbering Willi Egger
2012-05-25  8:48 ` Linenumbering Hans Hagen
2012-05-25 10:30   ` Linenumbering Willi Egger
2012-05-25 10:33     ` Linenumbering Willi Egger
2012-05-25 11:59       ` Linenumbering Rogers, Michael K
2012-05-25 15:19         ` Linenumbering Willi Egger
2006-01-14 12:18 linenumbering Thomas A. Schmitz
2006-01-15 18:14 ` linenumbering Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).