Difference between revisions of "Command/setupcounter"
< Command
(renewed from non-template page) |
m (add wiki link) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<cd:commandgroup name="setupcounter" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807"> | <cd:commandgroup name="setupcounter" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807"> | ||
<cd:shortdesc><!-- a short command summary goes here --> | <cd:shortdesc><!-- a short command summary goes here --> | ||
− | The command <tt>\setupcounter</tt> is used | + | The command <tt>\setupcounter</tt> is used to configure a counter. |
</cd:shortdesc> | </cd:shortdesc> | ||
<cd:variants> | <cd:variants> | ||
Line 150: | Line 150: | ||
<cd:commandref name="setupuserpagenumber"></cd:commandref> | <cd:commandref name="setupuserpagenumber"></cd:commandref> | ||
<cd:commandref name="convertnumber">for the predefined `numberconversion` names that can be used here</cd:commandref> | <cd:commandref name="convertnumber">for the predefined `numberconversion` names that can be used here</cd:commandref> | ||
− | <cd:commandref name="setupnotation"></cd:commandref></cd:seealso> | + | <cd:commandref name="setupnotation"></cd:commandref> |
+ | <cd:wikipage page="Counters"></cd:wikipage></cd:seealso> | ||
</cd:commandgroup> | </cd:commandgroup> |
Latest revision as of 21:44, 28 October 2023
Contents
\setupcounter
Summary
The command \setupcounter is used to configure a counter.
Settings
\setupcounter[...,...][...=...,...] | |
[...,...] | name |
start | number |
number | number |
counter | name |
method | page |
state | start stop |
way | bypage byblock bytext byhead bysection |
prefix | yes no |
prefixseparatorset | name |
prefixconversion | name |
prefixconversionset | name |
prefixstarter | command processor->command |
prefixstopper | command processor->command |
prefixset | name |
prefixsegments | number number:number number:* number:all section section:section section:* section:all current |
numberorder | reverse |
numberseparatorset | name |
numberconversion | name |
numberconversionset | name |
numberstarter | command processor->command |
numberstopper | command processor->command |
numbersegments | number number:number number:* number:all |
type | first previous next last number |
criterium | strict positive all |
prefixconnector | command processor->command |
Option | Explanation | ||||||||
---|---|---|---|---|---|---|---|---|---|
way |
| ||||||||
numberconversion |
|
Description
Examples
Notes
See also
- \definecounter
- strc-num.mkiv
- \setupuserpagenumber
- \convertnumber for the predefined
numberconversion
names that can be used here - \setupnotation
- Counters