Difference between revisions of "Command/head"

From Wiki
Jump to navigation Jump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
(Fill in entire page)
Line 13: Line 13:
 
   </tr>
 
   </tr>
 
</table>
 
</table>
 
  
 
== Description ==  
 
== Description ==  
  
 +
Used in itemizations. Prints an item in the <code>headstyle</code> specified in {{cmd|startitemize}}. (By default, this is simply the normal style.) 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}}.
  
 +
== Example ==
  
== Example ==
+
<context source=yes>
<!-- Please fill in an example if you can -->
+
\startitemize[packed][headstyle=bold]
 +
    \head Birds \par % The \par prevents an error from the nested \startitemize
 +
    \startitemize[a]
 +
        \item Toucan
 +
        \item Quetzal
 +
        \item Cassowary
 +
    \stopitemize
 +
    \head Mammals \par
 +
    \startitemize[continue]
 +
        \item Anteater
 +
        \item Sloth
 +
        \item Capybara
 +
    \stopitemize
 +
\stopitemize
 +
</context>
  
 
== See also ==
 
== See also ==
<!-- something like {{cmd|goto}} -->
+
* {{cmd|startitemize}}
 +
* {{cmd|item}} to print ordinary items
 +
* {{cmd|sym}} to print an item with a custom symbol
 +
* {{cmd|mar}} to print an item with margin text
 +
* {{cmd|sub}} to print an item with a continuation mark
 +
* {{cmd|its}} to print an item with a row of marks (for response ranges)
 +
* {{cmd|ran}} to print a range for the {{cmd|its}} row
 +
* {{cmd|head}} to print a head within the list
 +
* {{cmd|but}} to print an item whose mark is an interactive button
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==
Line 29: Line 52:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|head]]
+
[[Category:Command/Itemizations|head]]

Revision as of 14:29, 28 May 2012

\head

Syntax

\head[ref,ref,...]
[ref,ref,...]

Description

Used in itemizations. Prints an item in the headstyle specified in \startitemize. (By default, this is simply the normal style.) 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.

Example

\startitemize[packed][headstyle=bold]
    \head Birds \par % The \par prevents an error from the nested \startitemize
    \startitemize[a]
        \item Toucan
        \item Quetzal
        \item Cassowary
    \stopitemize
    \head Mammals \par
    \startitemize[continue]
        \item Anteater
        \item Sloth
        \item Capybara
    \stopitemize
\stopitemize

See also

  • \startitemize
  • \item to print ordinary items
  • \sym to print an item with a custom symbol
  • \mar to print an item with margin text
  • \sub to print an item with a continuation mark
  • \its to print an item with a row of marks (for response ranges)
  • \ran to print a range for the \its row
  • \head to print a head within the list
  • \but to print an item whose mark is an interactive button

Help from ConTeXt-Mailinglist/Forum

All issues with: