Changes

Jump to navigation Jump to search
2,311 bytes added ,  11:39, 7 January 2021
new
<cd:commandgroup name="defineresetset" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The command <tt>\defineresetset</tt> is used to configure the continuous numbering of sections of a lower level regardless of higher levels. E.g. if you use parts but want to have all chapters numbered continously.
</cd:shortdesc>
<cd:variants>
<cd:command category="counter" file="strc-ini.mkvi" interfacedate="2020-07-14T09:24" interfacefile="i-counter.xml" level="style" name="defineresetset" variantnumber="1">
<cd:arguments>
<cd:keywords ordinal="1">
<cd:keywordsdoc>name of the reset set (default or your own)</cd:keywordsdoc>
<cd:constant type="cd:name"></cd:constant>
<cd:constant method="range" prefix="cd:sectionblock" type="cd:name"></cd:constant>
</cd:keywords>
<cd:keywords list="yes" ordinal="2">
<cd:keywordsdoc>List of 1 or 0 for every section level, "0,1" means "part no, chapter yes" etc. (second example). If empty, affect just the section in whose setup the reset set s used (first example).</cd:keywordsdoc>
<cd:constant type="cd:number"></cd:constant>
</cd:keywords>
<cd:keywords optional="yes" ordinal="3">
<cd:keywordsdoc>1 = reset, 0 = don’t reset (refering to the previous list or the current level)</cd:keywordsdoc>
<cd:constant type="cd:number"></cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description><!-- the long description of the command goes here -->
<tt>\definestructureresetset</tt> is an alias of this command for backward compatibility.</cd:description>
<cd:examples><cd:example title="define for one section level"><texcode>
\defineresetset[mybook][][0]
\setuphead[chapter][sectionresetset=mybook]
</texcode></cd:example><cd:example title="define generally"><texcode>
\defineresetset[default][1,1,0][1] %% reset part, chapter, but not section
\setuphead[sectionresetset=default]
</texcode></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="strc-ini.mkvi" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Counter"></cd:wikipage>
<cd:wikipage page="Titles"></cd:wikipage>
<cd:commandref name="setuphead"></cd:commandref></cd:seealso>
</cd:commandgroup>

Navigation menu