Changes

Jump to navigation Jump to search
306 bytes removed ,  10:51, 19 November 2021
no edit summary
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\head<span class="first" style="color:red;">[ref,ref,...]</span>\par</td>
</tr>
<tr>
== Description ==
Used in itemizations. Prints the first paragraph of an item in the <code>headstyle</code> specified in {{cmd|startitemize}}, and prevents a pagebreak from occurring between the head and the next item. By default, the <code>headstyle</code> is simply the normal style. An empty line or a A {{cmd|par}} after a <code>\head</code> is required, so that ConTeXt may distinguish between the header line and the rest of the head item.
Because the occasional bold item in a list still does not look very much like a head, the items under the head are often printed in a nested {{cmd|startitemize}}.
=== Referring to the head ===
The syntax \head[ref] probably do does not work - it is necessary to use \starthead[ref] ... \stophead([https://mailman.ntg.nl/pipermail/ntg-context/2018/091593.html])
== Example ==
<context source=yes>
\startitemize[packed][headstyle=bold]
\head Birds % empty line is required between first \par and rest of head % item, or one will get a very long header 
What is water? This is a difficult question to answer,
because water is impossible to define. One could ask
\stopitemize
\head Mammals \par % The \par has the same function as the empty line
\startitemize[continue]
\item Anteater

Navigation menu