Difference between revisions of "Command/hideblocks"

From Wiki
Jump to navigation Jump to search
(Closed <context tag.)
Line 5: Line 5:
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 +
<syntax>hideblocks</syntax>
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
   <tr>
 
   <tr>
Line 18: Line 19:
 
   </tr>
 
   </tr>
 
</table>
 
</table>
 
  
 
== Description ==  
 
== Description ==  

Revision as of 10:17, 6 October 2019

\hideblocks

Syntax

\hideblocks[...,...][...,...]
[...,...]name
[...,...]name


\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

\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

gives

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: