Am 04.03.2009 um 23:38 schrieb Marcin Borkowski:
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
I don't think this will work without problems for a complete document.
Enclosing each paragraph with \bpar ... \epar allows you to count the
paragraph
number since the last chapter and you can save \prevgraf at the end
with twopass
data for the next run.
But wouldn't a direct \lettrine at the begin of the first paragraph be
easier.
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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________