Difference between revisions of "Command/setupheadnumber"
< Command
Jump to navigation
Jump to search
m (moved Reference/en/setupheadnumber to Command/setupheadnumber: Text replace - "Reference/en/" to "Command/") |
m (Text replace - "[[Category:Commands|" to "== ConTeXt-Forum == {{Forum|{{SUBPAGENAME}}}} [[Category:Commands|") |
||
Line 54: | Line 54: | ||
== See also == | == See also == | ||
<!-- something like [[cmd:goto|\goto]] --> | <!-- something like [[cmd:goto|\goto]] --> | ||
+ | |||
+ | == ConTeXt-Forum == | ||
+ | {{Forum|{{SUBPAGENAME}}}} | ||
[[Category:Commands|setupheadnumber]] | [[Category:Commands|setupheadnumber]] |
Revision as of 23:58, 14 March 2012
\setupheadnumber
Syntax
\setupheadnumber[...][...] | |
[...] | section |
[...] | number +number -number |
Description
Allows manipulation of the current heading counters. The first argument determines which heading is to be changed, e.g. section, chapter. The second argument takes an integer; if unsigned, the section number will be set to this value. Nota bene: with the next call to the heading the number will be incremented again. Thus, in order for the next heading to carry a specific number n it would be necessary to set its number to n-1.
If the second argument is signed, the heading’s number will be increased or decreased by the specified amount instead.
Example
\starttext \section{First} \setupheadnumber[section][+4] \section{Second?} \setupheadnumber[section][-5] \section{Second!} \setupheadnumber[section][41] \section{Forty-second} \stoptext