ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* line numbering restarts every page
@ 2021-09-01 16:01 Henning Hraban Ramm via ntg-context
  2021-09-01 16:52 ` Hans Hagen via ntg-context
  2021-09-01 16:53 ` Wolfgang Schuster via ntg-context
  0 siblings, 2 replies; 4+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2021-09-01 16:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm

Hi again,

if a "typing" environment with line numbering goes over a page break, the line numbers start at 1 again on the new page.
It doesn’t happen with \start/stoplinenumbering.

MWE: 

\setuptyping[
  numbering=file,
]
\setuppaper[A5]
\setupbodyfont[18pt]

\starttext

\startbuffer
Li Europan lingues es membres del sam familie.
Lor separat existentie es un myth.
Por scientie, musica, sport etc, litot Europa usa li sam vocabular.
Li lingues differe solmen in li grammatica,
li pronunciation e li plu commun vocabules.
Omnicos directe al desirabilite de un nov lingua franca:
On refusa continuar payar custosi traductores.
At solmen va esser necessi far uniform grammatica,
pronunciation e plu sommun paroles.
Ma quande lingues coalesce, li grammatica del resultant
lingue es plu simplic e regulari quam ti del coalescent lingues.
Li nov lingua franca va esser plu simplic
e regulari quam li existent Europan lingues.
\stopbuffer

\dorecurse{10}{
  \samplefile{knuth}

  \typebuffer
}


\stoptext


Hraban
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: line numbering restarts every page
  2021-09-01 16:01 line numbering restarts every page Henning Hraban Ramm via ntg-context
@ 2021-09-01 16:52 ` Hans Hagen via ntg-context
  2021-09-01 17:06   ` Henning Hraban Ramm via ntg-context
  2021-09-01 16:53 ` Wolfgang Schuster via ntg-context
  1 sibling, 1 reply; 4+ messages in thread
From: Hans Hagen via ntg-context @ 2021-09-01 16:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

On 9/1/2021 6:01 PM, Henning Hraban Ramm via ntg-context wrote:
> Hi again,
> 
> if a "typing" environment with line numbering goes over a page break, the line numbers start at 1 again on the new page.
> It doesn’t happen with \start/stoplinenumbering.
> 
> MWE:
> 
> \setuptyping[
>    numbering=file,
> ]

\setuptyping[numbering=line]


> \setuppaper[A5]
> \setupbodyfont[18pt]
> 
> \starttext
> 
> \startbuffer
> Li Europan lingues es membres del sam familie.
> Lor separat existentie es un myth.
> Por scientie, musica, sport etc, litot Europa usa li sam vocabular.
> Li lingues differe solmen in li grammatica,
> li pronunciation e li plu commun vocabules.
> Omnicos directe al desirabilite de un nov lingua franca:
> On refusa continuar payar custosi traductores.
> At solmen va esser necessi far uniform grammatica,
> pronunciation e plu sommun paroles.
> Ma quande lingues coalesce, li grammatica del resultant
> lingue es plu simplic e regulari quam ti del coalescent lingues.
> Li nov lingua franca va esser plu simplic
> e regulari quam li existent Europan lingues.
> \stopbuffer
> 
> \dorecurse{10}{
>    \samplefile{knuth}
> 
>    \typebuffer
> }
> 
> 
> \stoptext
> 
> 
> Hraban
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: line numbering restarts every page
  2021-09-01 16:01 line numbering restarts every page Henning Hraban Ramm via ntg-context
  2021-09-01 16:52 ` Hans Hagen via ntg-context
@ 2021-09-01 16:53 ` Wolfgang Schuster via ntg-context
  1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2021-09-01 16:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Henning Hraban Ramm via ntg-context
  Cc: Wolfgang Schuster

Henning Hraban Ramm via ntg-context schrieb am 01.09.2021 um 18:01:
> Hi again,
>
> if a "typing" environment with line numbering goes over a page break, the line numbers start at 1 again on the new page.
> It doesn’t happen with \start/stoplinenumbering.
>
> MWE:
>
> \setuptyping[
>    numbering=file,
> ]

\setuptyping[numbering=line]

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: line numbering restarts every page
  2021-09-01 16:52 ` Hans Hagen via ntg-context
@ 2021-09-01 17:06   ` Henning Hraban Ramm via ntg-context
  0 siblings, 0 replies; 4+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2021-09-01 17:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm


> Am 01.09.2021 um 18:52 schrieb Hans Hagen via ntg-context <ntg-context@ntg.nl>:
> 
> On 9/1/2021 6:01 PM, Henning Hraban Ramm via ntg-context wrote:
>> Hi again,
>> if a "typing" environment with line numbering goes over a page break, the line numbers start at 1 again on the new page.
>> It doesn’t happen with \start/stoplinenumbering.
>> MWE:
>> \setuptyping[
>>   numbering=file,
>> ]
> 
> \setuptyping[numbering=line]

Ah, thank you! (Wolfgang too!)

I can’t remember why I chose "file", and looking at the source also doesn’t enlighten me.

\setuptyping[numbering=file] sets \setuplinenumbering[method=file], but the "file" method doesn’t seem to be defined (at least it’s missing in the syntax interface).

Can you explain?


Hraban
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2021-09-01 17:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-01 16:01 line numbering restarts every page Henning Hraban Ramm via ntg-context
2021-09-01 16:52 ` Hans Hagen via ntg-context
2021-09-01 17:06   ` Henning Hraban Ramm via ntg-context
2021-09-01 16:53 ` Wolfgang Schuster via ntg-context

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).