Changes

Jump to navigation Jump to search
1,207 bytes added ,  19:19, 24 April 2012
Add example
<tr valign="top" class="second">
<td class="cmd">[[Command/keyword:before|before]]</td>
<td>[[Command/value:''command'' to place before each block, e.g. {{cmd|command]] startnarrower}}</td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[[Command/keyword:after|after]]</td>
<td>[[Command''command'' to place after each block, e.g. <code>\stopnarrower</value:command|command]] code></td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[[Command/keyword:inner|inner]]</td>
<td>[[Command/value:''command|command]] '' to perform in each block</td>
</tr>
<tr valign="top" class="second">
<tr valign="top" class="second">
<td class="cmd">[[Command/keyword:file|file]]</td>
<td>[[Command/value:''file|file]] '' in which to look for the blocks when displaying them.</td>
</tr>
</table>
== Description ==
Setup how blocks are displayed.
 
== Example ==
<context source=yes text="This gives:">
\defineblock[question]
\keepblocks[question] % We want to display blocks where we define them.
\setupbackground[background=color, color=red]
 
\subject{List of questions}
== Description == \beginquestion How much wood would a woodchuck chuck if a woodchuck could chuck wood?\endquestion
\subject{The questions again}
\setupblock[question][
%% if we had a file my_questions.tex containing \beginquestions, we would use:
% file=my_questions, % (works only under mkii?)
before=\startbackground,
after=\stopbackground,
inner=\margintitle{again}
]
== Example ==\useblocks[question]<!-- 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|setupblock]]

Navigation menu