Difference between revisions of "Command/setupnumbering"
< Command
Jump to navigation
Jump to search
m (cleanup) |
|||
(12 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
|attributes= | |attributes= | ||
}} | }} | ||
+ | |||
+ | == [[Help:Reference|Syntax]] (autogenerated) == | ||
+ | <syntax>setupnumbering</syntax> | ||
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == | ||
Line 10: | Line 13: | ||
</tr> | </tr> | ||
<tr valign="top" class="first"> | <tr valign="top" class="first"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:way|way]]</td> |
− | <td>[[ | + | <td>[[Command/value:bytext|bytext]] [[Command/value:bysection|bysection]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="first"> | <tr valign="top" class="first"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:state|state]]</td> |
− | <td>[[ | + | <td>[[Command/value:start|start]] [[Command/value:stop|stop]] </td> |
</tr> | </tr> | ||
</table> | </table> | ||
− | == 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 {{cmd|setupcaptions}} and {{cmd|setupformulae}} as follows: | ||
+ | <code> | ||
+ | \setupcaptions[way=bysection,prefixsegments=section]<br/> | ||
+ | \setupformulae[way=bysection,prefixsegments=section] | ||
+ | </code> | ||
== Example == | == Example == | ||
Line 28: | Line 41: | ||
== See also == | == See also == | ||
− | <!-- something like | + | <!-- something like {{cmd|goto}} --> |
+ | |||
+ | == Help from ConTeXt-Mailinglist/Forum == | ||
+ | All issues with: | ||
+ | {{Forum|{{SUBPAGENAME}}}} | ||
− | [[Category: | + | [[Category:Command/Numbers|setupnumbering]] |
Latest revision as of 13:52, 18 November 2019
\setupnumbering
Syntax (autogenerated)
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
Help from ConTeXt-Mailinglist/Forum
All issues with: