From Wiki
Jump to navigation Jump to search



\head ... \par
\starthead[ref,ref,...]{Title} ... \stophead


Used in itemizations. Prints the first paragraph of an item in the headstyle specified in \startitemize, and prevents a pagebreak from occurring between the head and the next item. By default, the headstyle is simply the normal style. A \par after a \head 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 \startitemize.

Referring to the head

The syntax \head[ref] does not work - it is necessary to use \starthead[ref] ... \stophead


    \head Birds \par
        What is water? This is a difficult question to answer, 
        because water is impossible to define. One could ask 
        the same question about birds. What {\em are} birds? 
        We just don't know.
            \item Toucan
            \item Quetzal
            \item Cassowary

    \head Mammals \par 
            \item Anteater
            \item Sloth
            \item Capybara

In LMTX, the preferred syntax is:

\startitemize[packed, headintext][headcolor=red]
    What is water? This is a difficult question to answer. 

Example of a reference

    \item[TheItem] Item


      Some text


  See point \in[TheItem] or \in[TheHead].

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: