Difference between revisions of "Command/defineresetset"

From Wiki
Jump to navigation Jump to search
(new)
 
m (typo)
 
Line 12: Line 12:
 
     </cd:keywords>
 
     </cd:keywords>
 
     <cd:keywords list="yes" ordinal="2">
 
     <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: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 is used (first example).</cd:keywordsdoc>
 
     <cd:constant type="cd:number"></cd:constant>
 
     <cd:constant type="cd:number"></cd:constant>
 
     </cd:keywords>
 
     </cd:keywords>

Latest revision as of 03:31, 12 January 2021


\defineresetset

Summary

The command \defineresetset 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.

Settings

\defineresetset[...][...,...][...]
[...]name sectionblock:name
[...,...]number
[...]number

OptionExplanation
name of the reset set (default or your own)
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 is used (first example).
1 = reset, 0 = don’t reset (refering to the previous list or the current level)

Description

\definestructureresetset is an alias of this command for backward compatibility.

Examples

define for one section level

\defineresetset[mybook][][0]
\setuphead[chapter][sectionresetset=mybook]

define generally

\defineresetset[default][1,1,0][1] %% reset part, chapter, but not section
\setuphead[sectionresetset=default]

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: