Command/defineresetset

From Wiki
< Command
Revision as of 11:39, 7 January 2021 by Hraban (talk | contribs) (new)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


\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: