[NTG-context] Quickie about Line Numbering

Thomas A. Schmitz thomas.schmitz at uni-bonn.de
Fri Nov 23 22:05:45 CET 2007


On Fri, 2007-11-23 at 21:46 +0100, Matthias Wächter wrote:
> Hi!
> 
> Just wondering how I can manage to number all the lines of my document.
> Thought that this would work but it actually doesn't.
> 
> \starttext
> \startlinenumbering
> 
> \chapter{First}
> 
> A paragraph
> 
> Another paragraph.
> 
> \chapter{Second}
> 
> Wait and see---nothing.
> 
> \stoplinenumbering
> \stoptext
> 
> 
> Is there a better/smarter way for doing this than typing a lot of
> \(start|stop)linenumbering around paragraphs of text? We need line
> numbers as part of our document review process for clearly referencing
> error spots.
> 
> - Matthias

I have some dim recollection that I asked a similar question some time
ago, and the answer was: you can't (but I can't find a reference in the
archive, so I may be wrong). You'll have to explicitly tell ConTeXt to
start line numbering after headings:

\starttext

\chapter{First}

\startlinenumbering
A paragraph

Another paragraph.
\stoplinenumbering

\chapter{Second}

\startlinenumbering
Wait and see---nothing.
\stoplinenumbering

\stoptext

Thomas



More information about the ntg-context mailing list