Difference between revisions of "Command/setupnumbering"

From ConTeXt wiki
Jump to navigationJump to search
(→‎Description: Added notes on mkii versus mkiv)
(→‎Description: Added cross-references to setupcaptions and setupformulae)
Line 27: Line 27:
 
causes all numbered items to restart from 1 for each new section <i>and</i> prefix numbers with the section numbering.
 
causes all numbered items to restart from 1 for each new section <i>and</i> prefix numbers with the section numbering.
  
In mkiv <code>\setupnumbering</code> does not work, so to get the same effect you need to use:
+
In mkiv <code>\setupnumbering</code> does not work, so to get the same effect you need to use [[cmd:setupcaptions|\setupcaptions]] and [[cmd:setupformulae|\setupformulae]] as follows:
  
 
<code>
 
<code>
 
\setupcaptions[way=bysection,prefixsegments=section]<br/>
 
\setupcaptions[way=bysection,prefixsegments=section]<br/>
\setupformulas[way=bysection,prefixsegments=section]
+
\setupformulae[way=bysection,prefixsegments=section]
 
</code>
 
</code>
  

Revision as of 07:56, 18 May 2010

\setupnumbering

Syntax

\setupnumbering[...,...=...,...]
way bytext bysection
state start stop


Description

In mkii \setupnumbering[way=bysection] causes all numbered items to restart from 1 for each new section and prefix numbers with the section numbering.

In mkiv \setupnumbering does not work, so to get the same effect you need to use \setupcaptions and \setupformulae as follows:

\setupcaptions[way=bysection,prefixsegments=section]
\setupformulae[way=bysection,prefixsegments=section]

Example

See also