Difference between revisions of "Command/startsectionblockenvironment"

From Wiki
Jump to navigation Jump to search
(Created)
(No difference)

Revision as of 11:37, 20 March 2022


\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

OptionExplanation
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

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: