Difference between revisions of "Command/startsectionblockenvironment"

From Wiki
Jump to navigation Jump to search
(Created)
 
 
Line 39: Line 39:
  
 
\stoptext
 
\stoptext
</pre></cd:example></cd:examples>
+
</pre></cd:example><cd:example title="Suppress page numbering for ToC pages">See [[Table_of_Contents#Suppressing_page_numbering_for_the_ToC_pages|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).
 +
 
 +
</cd:example></cd:examples>
 
<cd:notes></cd:notes>
 
<cd:notes></cd:notes>
 
<cd:seealso>
 
<cd:seealso>

Latest revision as of 18:15, 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

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).


Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: