![](https://secure.gravatar.com/avatar/3228d50dcf7042aebac442e8ab41fc2b.jpg?s=120&d=mm&r=g)
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) thanks
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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 | pragma@wxs.nl 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 -------------------------------------------------------------------------
participants (2)
-
Hans Hagen
-
scarso luigi