Alan Stone wrote:
Another idea...
How do you make this line counter work ?
\newcount\parnumber
\newcount\linenumber
\def\myCounters{%
\EveryPar{%
\advance\parnumber by 1
(P\the\parnumber)
\EveryLine{%
% (L\the\prevgraf)}}
\advance\linenumber by 1
(L\the\linenumber)}
\linenumber=0\relax}
\parnumber=0\relax}
\setuphead[chapter][page=,after={\myCounters}]
\starttext
\chapter{Chapter 0}
Only one line.
\dorecurse{2}{\chapter{Chapter #1}\input knuth}
\stoptext
\startlinenumbering
\input tufte
\stoplinenumbering
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________