[NTG-context] Counter names

Hans Hagen j.hagen at xs4all.nl
Thu Jan 20 18:41:43 CET 2022


On 1/20/2022 2:24 PM, Joaquín Ataz López via ntg-context wrote:
> Good morning to all. I would like to ask where I can find information 
> about the name of the different counters that are handled in ConTeXt, in 
> order to manipulate them manually.
> 
> I guess the number of internal ConTeXt counters will be tremendous. But 
> I would like to know what the "most common" counters are called, for 
> example the ones that control the different structural units (chapter, 
> section...) or the elements of a structured list, etc.
> 
> I have tried to apply \incrementcounter or \decrementcounter to some 
> counters that also exist in TeX as, for example, chapter, section... but 
> I don't get any result.

most counters are 'protected' from messing them up and section related 
counters are kind of grouped anyway and have their own system

other counters, like those for floats are more directly accessible

\starttext

\chapter{test}

\setupheadnumber[chapter][+5]

\placefigure{}{}

\chapter{test}

\placefigure{}{}

\setcounter[figure][4]

\placefigure{}{}

\stoptext

chemical combination endnote figure footnote formula graphic
intermezzo itemgroup:itemize itemgroup:itemize:note linenote
paragraph realpage subpage table textnote:note userpage

otherw will be defined when you create instances

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list