Re: [NTG-context] linenumbering in columnsets (or different solution?)

2013-07-10 Thread Hans Hagen

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 in columnsets (or different solution?)

2013-07-10 Thread Thomas A. Schmitz

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
___


[NTG-context] linenumbering in columnsets (or different solution?)

2013-07-09 Thread Thomas A. Schmitz

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:


No line numbers:

\setuppapersize[A4,landscape][A4,landscape]

\setuplayout[grid=yes]

\definecolumnset [numbered] [n=2]
\setupcolumnset [numbered] [distance=0.5cm,frame=on]

\starttext

\startcolumnset [numbered]

\startlinenumbering[step=1,location=text]
Poetry

One

Word

Per

Line

is

Poetic
\stoplinenumbering

\column[local]

Two

\column[local]
\stopcolumnset

\stoptext

Works only in mkii:

\setuppapersize[A4,landscape][A4,landscape]

\setuplayout[grid=yes]

\definecolumnset [numbered] [n=2]
\setupcolumnset [numbered] [distance=0.5cm,frame=on]

\starttext

\startcolumnset [numbered]

\startlinenumbering[step=1,location=text]
Poetry

One

Word

Per

Line

is

Poetic
\stoplinenumbering

\column[local]

Two

\column[local]
\stopcolumnset

\stoptext

Any solution?

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
___