Changes

Jump to navigation Jump to search
no edit summary
<!-- please remove this and the following line if you have checked this page -->
{{Reference_Cleanup}}
{{Reference
|name=setupheadnumber
|attributes=
}}
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>setupheadnumber</syntax>
== [[Help:Reference|Syntax]] ==
== Description == Allows manipulation of the current heading counters.The first argument determines which heading is to be changed, e.g. <tt>section</tt>, <tt>chapter</tt>.The second argument takes an integer; if unsigned, the section number will be <em>set</em> to this value.Nota bene: with the next call to the heading the numberwill be incremented again.Thus, in order for the next heading to carry a specific number <em>n</em> it would be necessary to set itsnumber to <em>n-1</em>. If the second argument is signed, the heading’s numberwill be <em>increased</em> or <em>decreased</em> by the specified amount instead. == Example ==<context source="yes">\starttext\section{First}
\setupheadnumber[section][+4]
\section{Second?}
\setupheadnumber[section][-5]
\section{Second!}
== Example ==\setupheadnumber[section][41]\section{Forty-second}\stoptext<!-- Please fill in an example if you can --/context>
== See also ==
<!-- something like [[{{cmd:goto|\goto]] }} --> == Help from ConTeXt-Mailinglist/Forum ==All issues with:{{Forum|{{SUBPAGENAME}}}}
[[Category:ReferenceCommand/enNumbers|setupheadnumber]]

Navigation menu