Command/definecounter

From Wiki
< Command
Revision as of 05:31, 7 December 2019 by Thangalin (talk | contribs)
Jump to navigation Jump to search

Creates a new numeric counter.

Example

The following partial example adds a picture at the end of each chapter:

\definecounter[EventCount]
  [
    way=bytext,
    prefix=no,
  ]

\startTEXpage
  \incrementcounter[EventCount]
  \externalfigure[{\rawcountervalue[EventCount]}]
                 [
                   height=\paperheight,
                   orientation=90,
                 ]
\stopTEXpage

The pictures are numbered sequentially, starting at 1.

See Also

Source Code

View the source for more details:

https://source.contextgarden.net/tex/context/base/mkiv/strc-num.mkiv