Difference between revisions of "Command/setupnumbering"

From Wiki
Jump to navigation Jump to search
m (cleanup)
(→‎Description: Added notes on mkii versus mkiv)
Line 20: Line 20:
  
  
== Description ==  
+
== Description ==
 +
In mkii
 +
<code>
 +
\setupnumbering[way=bysection]
 +
</code>
 +
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:
  
 +
<code>
 +
\setupcaptions[way=bysection,prefixsegments=section]<br/>
 +
\setupformulas[way=bysection,prefixsegments=section]
 +
</code>
  
 
== Example ==
 
== Example ==

Revision as of 07:48, 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[way=bysection,prefixsegments=section]
\setupformulas[way=bysection,prefixsegments=section]

Example

See also