At 06:17 PM 12/18/2002 +0100, scarso luigi wrote:
Is there any mode to get the total number of chapters (or sections
inside a chapter etc) as a counter, ie
\newcount\TotalChapterCount \TotalChapterCount=.....  ?

(I need this to make some operations with \textwidth and other
dimensions)

\starttext

\chapter{test}
\chapter{test}
\chapter{test}

\determinelistcharacteristics
[chapter]
[criterium=all]

surprise: there are \utilitylistlength\ chapters

\stoptext

you can use this trick to fetch the number of sections in a chapter etc as well

Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to