* position of linenumbering
@ 2016-10-12 13:38 Thomas A. Schmitz
2016-10-12 13:48 ` Otared Kavian
0 siblings, 1 reply; 9+ messages in thread
From: Thomas A. Schmitz @ 2016-10-12 13:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi all,
consider this example:
\setuppapersize [A6]
\starttext
\startlinenumbering [location=text,distance=0.5cm]
\dorecurse{2}{\input tufte}
\stoplinenumbering
dummy
\stoptext
on the second page, the position of the linenumbering changes and does
not follow the "distance" setting. Can this be fixed? And if yes, how?
Thanks and best wishes
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://context.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: position of linenumbering
2016-10-12 13:38 position of linenumbering Thomas A. Schmitz
@ 2016-10-12 13:48 ` Otared Kavian
2016-10-12 14:18 ` Thomas A. Schmitz
0 siblings, 1 reply; 9+ messages in thread
From: Otared Kavian @ 2016-10-12 13:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Thomas,
It seems that if you use \setuplinenumbering the issue is fixed: please have a look here:
\setuppapersize [A6]
\setuplinenumbering[location=text,distance=0.5cm]
\starttext
\startlinenumbering
\dorecurse{2}{\input tufte}
\stoplinenumbering
dummy
\stoptext
Best regards: OK
> On 12 Oct 2016, at 15:38, Thomas A. Schmitz <thomas.schmitz@uni-bonn.de> wrote:
>
> Hi all,
>
> consider this example:
>
> \setuppapersize [A6]
>
> \starttext
>
> \startlinenumbering [location=text,distance=0.5cm]
>
> \dorecurse{2}{\input tufte}
>
> \stoplinenumbering
>
> dummy
>
> \stoptext
>
> on the second page, the position of the linenumbering changes and does not follow the "distance" setting. Can this be fixed? And if yes, how?
>
> Thanks and best wishes
>
> 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://context.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://context.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: position of linenumbering
2016-10-12 13:48 ` Otared Kavian
@ 2016-10-12 14:18 ` Thomas A. Schmitz
2016-10-12 14:25 ` Wolfgang Schuster
0 siblings, 1 reply; 9+ messages in thread
From: Thomas A. Schmitz @ 2016-10-12 14:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 12.10.2016 15:48, Otared Kavian wrote:
> Hi Thomas,
>
> It seems that if you use \setuplinenumbering the issue is fixed: please have a look here:
>
> \setuppapersize [A6]
> \setuplinenumbering[location=text,distance=0.5cm]
> \starttext
>
> \startlinenumbering
>
> \dorecurse{2}{\input tufte}
>
> \stoplinenumbering
>
> dummy
>
> \stoptext
>
> Best regards: OK
Hi Otared,
thanks for your suggestion, but it only shifts the problem elsewhere
without solving it. New example (I need several different linenumbering
setups in my real word document so I can't put a general setup before
the \starttext):
\setuppapersize [A6]
\starttext
\start
\setuplinenumbering [location=text,distance=0.5cm]
\startlinenumbering
\dorecurse{2}{\input tufte}
\stoplinenumbering
\stop
\start
\setuplinenumbering [location=text,distance=1.5cm]
\startlinenumbering
\dorecurse{2}{\input knuth}
\stoplinenumbering
\stop
dummy
\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://context.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: position of linenumbering
2016-10-12 14:18 ` Thomas A. Schmitz
@ 2016-10-12 14:25 ` Wolfgang Schuster
2016-10-12 14:38 ` Pablo Rodriguez
0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2016-10-12 14:25 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 568 bytes --]
> Thomas A. Schmitz <mailto:thomas.schmitz@uni-bonn.de>
> 12. Oktober 2016 um 16:18
>
>
>
> Hi Otared,
>
> thanks for your suggestion, but it only shifts the problem elsewhere
> without solving it. New example (I need several different
> linenumbering setups in my real word document so I can't put a general
> setup before the \starttext):
\definelinenumbering[one][color=red]
\definelinenumbering[two][color=blue]
\starttext
\startlinenumbering[one]
\input knuth
\stoplinenumbering
\startlinenumbering[two]
\input knuth
\stoplinenumbering
\stoptext
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1612 bytes --]
[-- Attachment #2: Type: text/plain, Size: 489 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://context.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: position of linenumbering
2016-10-12 14:25 ` Wolfgang Schuster
@ 2016-10-12 14:38 ` Pablo Rodriguez
2016-10-12 15:58 ` Thomas A. Schmitz
2016-10-12 16:03 ` Wolfgang Schuster
0 siblings, 2 replies; 9+ messages in thread
From: Pablo Rodriguez @ 2016-10-12 14:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 10/12/2016 04:25 PM, Wolfgang Schuster wrote:
>> Thomas A. Schmitz 12. Oktober 2016 um 16:18
>>
>> Hi Otared,
>>
>> thanks for your suggestion, but it only shifts the problem elsewhere
>> without solving it. New example (I need several different
>> linenumbering setups in my real word document so I can't put a general
>> setup before the \starttext):
>
> \definelinenumbering[one][color=red]
> \definelinenumbering[two][color=blue]
Wolfgang,
your approach is right, but hasn’t Thomas hit a bug?
According to the description from page 301 in i-context.pdf,
\startlinenumbering ... \stoplinenumbering inherit from \setuplinenumbering.
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: position of linenumbering
2016-10-12 14:38 ` Pablo Rodriguez
@ 2016-10-12 15:58 ` Thomas A. Schmitz
2016-10-12 16:22 ` Hans Hagen
2016-10-12 16:03 ` Wolfgang Schuster
1 sibling, 1 reply; 9+ messages in thread
From: Thomas A. Schmitz @ 2016-10-12 15:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 12.10.2016 16:38, Pablo Rodriguez wrote:
> Wolfgang,
>
> your approach is right, but hasn’t Thomas hit a bug?
>
> According to the description from page 301 in i-context.pdf,
> \startlinenumbering ... \stoplinenumbering inherit from \setuplinenumbering.
Thanks Wolfgang, this solution works (I must admit I wasn't aware of
\definelinenumbering). Nevertheless, I think Pablo is right because this
means one must define every setup in advance. In some situations, it
might be useful to change on the fly, and I think this "bleeding" of
setups into preceding blocks is unexpected.
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://context.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: position of linenumbering
2016-10-12 14:38 ` Pablo Rodriguez
2016-10-12 15:58 ` Thomas A. Schmitz
@ 2016-10-12 16:03 ` Wolfgang Schuster
2016-10-12 16:49 ` Pablo Rodriguez
1 sibling, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2016-10-12 16:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 625 bytes --]
> Pablo Rodriguez <mailto:oinos@gmx.es>
> 12. Oktober 2016 um 16:38
>
> Wolfgang,
>
> your approach is right, but hasn’t Thomas hit a bug?
It’s a limitation of the way how linenumbering works.
The numbers are added before the shipout of the page
but on the page where the numer end the local settings
are forgotten when the numbers are added on ConTeXt
uses the global values instead when it add them.
> According to the description from page 301 in i-context.pdf,
> \startlinenumbering ... \stoplinenumbering inherit from
> \setuplinenumbering.
I changed it, valid keys are continue, start, step and method.
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1912 bytes --]
[-- Attachment #2: Type: text/plain, Size: 489 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://context.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: position of linenumbering
2016-10-12 15:58 ` Thomas A. Schmitz
@ 2016-10-12 16:22 ` Hans Hagen
0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2016-10-12 16:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 10/12/2016 5:58 PM, Thomas A. Schmitz wrote:
> On 12.10.2016 16:38, Pablo Rodriguez wrote:
>> Wolfgang,
>>
>> your approach is right, but hasn’t Thomas hit a bug?
>>
>> According to the description from page 301 in i-context.pdf,
>> \startlinenumbering ... \stoplinenumbering inherit from
>> \setuplinenumbering.
>
>
> Thanks Wolfgang, this solution works (I must admit I wasn't aware of
> \definelinenumbering). Nevertheless, I think Pablo is right because this
> means one must define every setup in advance. In some situations, it
> might be useful to change on the fly, and I think this "bleeding" of
> setups into preceding blocks is unexpected.
\startlinenumbering [location=text,distance=0.5cm]
\dorecurse{2}{\input tufte} \page
\stoplinenumbering
line number placement is delayed till a page is constructed (only then
do we know where the margins are) and settings get reset after
\stoplinennumbering
(there are more cases when grouping can interfere with pagebreaks after
the group ends)
-----------------------------------------------------------------
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: position of linenumbering
2016-10-12 16:03 ` Wolfgang Schuster
@ 2016-10-12 16:49 ` Pablo Rodriguez
0 siblings, 0 replies; 9+ messages in thread
From: Pablo Rodriguez @ 2016-10-12 16:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 10/12/2016 06:03 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 12. Oktober 2016 um 16:38
>> [...]
>> According to the description from page 301 in i-context.pdf,
>> \startlinenumbering ... \stoplinenumbering inherit from
>> \setuplinenumbering.
>
> I changed it, valid keys are continue, start, step and method.
Wolfgang,
many thanks for your explanation and for fixing the documentation.
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2016-10-12 16:49 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-12 13:38 position of linenumbering Thomas A. Schmitz
2016-10-12 13:48 ` Otared Kavian
2016-10-12 14:18 ` Thomas A. Schmitz
2016-10-12 14:25 ` Wolfgang Schuster
2016-10-12 14:38 ` Pablo Rodriguez
2016-10-12 15:58 ` Thomas A. Schmitz
2016-10-12 16:22 ` Hans Hagen
2016-10-12 16:03 ` Wolfgang Schuster
2016-10-12 16:49 ` Pablo Rodriguez
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).