Marcin Borkowski wrote:
Dnia Wed, Mar 04, 2009 at 05:02:40PM +0100, Alan Stone napisał(a):
How do you access the first paragraph of each chapter ?
... to calculate its number of lines ?
If not possible with ConTeXt commands, is this possible with LuaTeX commands?
Maybe redefine \par to do something like
\def\nooflines{\prevgraf}\let\par=\oldpar
where previously you hd \let\oldpar=\par
messing around with \par is dangerous and asking for trouble
-----------------------------------------------------------------
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
___________________________________________________________________________________