Re: [NTG-context] position of linenumbering

2016-10-12 Thread Pablo Rodriguez
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
___

Re: [NTG-context] position of linenumbering

2016-10-12 Thread Hans Hagen

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
___

Re: [NTG-context] position of linenumbering

2016-10-12 Thread Wolfgang Schuster

Pablo Rodriguez 
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
___
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
___

Re: [NTG-context] position of linenumbering

2016-10-12 Thread Thomas A. Schmitz

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
___

Re: [NTG-context] position of linenumbering

2016-10-12 Thread Pablo Rodriguez
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
___

Re: [NTG-context] position of linenumbering

2016-10-12 Thread Wolfgang Schuster

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]

\starttext

\startlinenumbering[one]
\input knuth
\stoplinenumbering

\startlinenumbering[two]
\input knuth
\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://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] position of linenumbering

2016-10-12 Thread Thomas A. Schmitz

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
___

Re: [NTG-context] position of linenumbering

2016-10-12 Thread Otared Kavian
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  
> 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
___