Command/startsectionblockenvironment
< Command
Jump to navigation
Jump to search
Revision as of 18:15, 20 March 2022 by BruceH2020 (talk | contribs)
Contents
\startsectionblockenvironment ... \stopsectionblockenvironment
Summary
The environment \startsectionblockenvironment ... \stopsectionblockenvironment allows values to be set that only apply within the named section block rather than globally.
Settings
\startsectionblockenvironment[...] ... \stopsectionblockenvironment | |
[...] | name |
Option | Explanation |
---|---|
name | The name of a section block, i.e. frontmatter, bodymatter, appendices, backmatter. |
Description
Setup commands that normally have a global effect can be limited to only apply to a named section block, thus allowing different settings in different blocks.
Examples
Chapter heading colored blue only in bodymatter
% Global settings for all chapters \setuphead[chapter][style=\ssc] % Different settings for chapter in the bodymatter block \startsectionblockenvironment[bodypart] \setuphead[chapter][color=blue] \stopsectionblockenvironment \starttext \startfrontmatter \title{Table of contents} % This toc header would also be blue if the \setuphead above were global \placecontent \stopfrontmatter \startbodymatter \chapter{Knuth} \input knuth \chapter{Zapf} \input zapf \stopbodymatter \stoptext
Suppress page numbering for ToC pages
See Table of Contents - Suppressing page numbering for the ToC pages for an example of how to stop page numbers from being shown on the table of contents page(s).