Changes

Jump to navigation Jump to search
1,099 bytes added ,  07:15, 24 April 2012
Description, example, category
<tr valign="top" class="first">
<td class="cmd">[...,...,...]</td>
<td>name ''names of block classes (defined with \defineblock)''</td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[...,...,...]</td>
<td>''tags to keep, or keyword'' all name </td>
</tr>
</table>
== 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 ==
<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 (first, hidden where defined)
\endmyblock
== Example ==\keepblocks[myblock] \beginmyblockTomato (second, shown where defined)\endmyblock \section{Recalling blocks}\useblocks[myblock] \stoptext<!-- Please fill in an example if you can --/context>
== See also ==
<!-- something like * {{cmd|defineblock}} to define a new kind of block.* {{cmd|setupblock}} to set up block style.* {{cmd|keepblocks}} to start displaying blocks where they are defined.* {{cmd|hideblocks}} to stop displaying blocks where they are defined.* {{cmd|useblocks}} to display blocks.* {{cmd|selectblocks}} to display only blocks mentioned in the current section.* {{cmd|processblocks}} to process blocks without printing them.* {{cmd|forceblocks}}* {{cmd|gotonomoreblocks}} to allow one-->pass compilation under certain conditions.
== Help from ConTeXt-Mailinglist/Forum ==
{{Forum|{{SUBPAGENAME}}}}
[[Category:CommandsCommand/Blocks|keepblocks]]

Navigation menu