Difference between revisions of "Command/hideblocks"
< Command
Jump to navigation
Jump to search
(Create reference page) |
|||
(12 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
{{Reference | {{Reference | ||
|name=hideblocks | |name=hideblocks | ||
Line 6: | Line 4: | ||
}} | }} | ||
+ | == [[Help:Reference|Syntax]] (autogenerated) == | ||
+ | <syntax>hideblocks</syntax> | ||
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == | ||
<table cellspacing="4" cellpadding="2" class="cmd"> | <table cellspacing="4" cellpadding="2" class="cmd"> | ||
Line 13: | Line 13: | ||
<tr valign="top" class="first"> | <tr valign="top" class="first"> | ||
<td class="cmd">[...,...,...]</td> | <td class="cmd">[...,...,...]</td> | ||
− | <td> | + | <td>names of block types to hide </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
<td class="cmd">[...,...,...]</td> | <td class="cmd">[...,...,...]</td> | ||
− | <td> | + | <td>tags to further specify what to hide</td> |
</tr> | </tr> | ||
</table> | </table> | ||
+ | == 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 | |
− | < | + | </context> |
== See also == | == See also == | ||
− | + | * {{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|nomoreblocks}} to allow one-pass compilation under certain conditions. | ||
+ | |||
+ | == Help from ConTeXt-Mailinglist/Forum == | ||
+ | All issues with: | ||
+ | {{Forum|{{SUBPAGENAME}}}} | ||
− | [[Category: | + | [[Category:Command/Blocks|hideblocks]] |
Latest revision as of 13:23, 13 October 2019
\hideblocks
Syntax (autogenerated)
\hideblocks[...,...][...,...] | |
[...,...] | name |
[...,...] | name |
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
\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
- \defineblock to define a new kind of block.
- \setupblock to set up block style.
- \keepblocks to start displaying blocks where they are defined.
- \hideblocks to stop displaying blocks where they are defined.
- \useblocks to display blocks.
- \selectblocks to display only blocks mentioned in the current section.
- \processblocks to process blocks without printing them.
- \forceblocks
- \nomoreblocks to allow one-pass compilation under certain conditions.
Help from ConTeXt-Mailinglist/Forum
All issues with: