Command/hideblocks

From ConTeXt wiki
< Command
Revision as of 07:45, 24 April 2012 by Esteis (talk | contribs) (Description, example, category)
Jump to navigationJump to search

\hideblocks

Syntax

\hideblocks[...,...,...][...,...,...]
[...,...,...] names of block types to hide
[...,...,...] tags to further specify what to hide


Description

From here on, do not print blocks where they are defined.

Example

<context source=yes text=gives> \starttext

\defineblock[myblock]


\section{Defining blocks}

\beginmyblock In Mk II, blocks are kept by default; in Mk IV, blocks are hidden by default. \endmyblock

\hideblocks[myblock] \beginmyblock Potato (hidden where defined) \endmyblock

\keepblocks[myblock]

\beginmyblock Tomato (shown where defined) \endmyblock

\section{Recalling blocks} \useblocks[myblock]

\stoptext

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: