Command/keepblocks

From Wiki
< Command
Revision as of 07:15, 24 April 2012 by Esteis (talk | contribs) (Description, example, category)
Jump to navigation Jump to search

\keepblocks

Syntax

\keepblocks[...,...,...][...,...,...]
[...,...,...] names of block classes (defined with \defineblock)
[...,...,...] tags to keep, or keyword all


Description

From here on, typeset blocks where they are defined, as well as when recalled. This is on by default in Mk II, and off by default in Mk IV.


Example

\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 (first, hidden where defined)
\endmyblock

\keepblocks[myblock]

\beginmyblock
Tomato (second, shown where defined)
\endmyblock

\section{Recalling blocks}
\useblocks[myblock]

\stoptext

gives

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: