Changes

Jump to navigation Jump to search
Created
<cd:commandgroup name="sectionblockenvironment" type="environment" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The environment <tt>\startsectionblockenvironment ... \stopsectionblockenvironment</tt> allows values to be set that only apply within the named section block rather than globally.
</cd:shortdesc>
<cd:variants>
<cd:command category="structure" file="strc-sbe.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-sectionblock.xml" level="style" name="sectionblockenvironment" type="environment" variantnumber="1">
<cd:arguments>
<cd:keywords ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:name">The name of a section block, i.e. frontmatter, bodymatter, appendices, backmatter.</cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
</cd:variants>
<cd: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.
</cd:description>
<cd:examples><cd:example title="Chapter heading colored blue only in bodymatter"><pre>
% 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
</pre></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="strc-sbe.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage></cd:seealso>
</cd:commandgroup>
93

edits

Navigation menu