Difference between revisions of "Command/startsectionblockenvironment"
< Command
Jump to navigation
Jump to search
BruceH2020 (talk | contribs) (Created) |
(No difference)
|
Revision as of 11:37, 20 March 2022
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