Changes

Jump to navigation Jump to search
44 bytes removed ,  11:45, 10 August 2004
m
Ups -- that's an itemize in LaTeX
To change the general layout of enumerations, there is <tt>\setupitemize</tt>. Itaccepts an integer as its first parameter to denote for which level of itemization the subsequent settings should apply. There is an example below.
For finer control, it is advisable to create new types of itemization, using the command <tt>\defineitemgroup</tt> (which unfortunately seems undocumented). For example, something similar to the LaTeX <tt>enumerateitemize</tt> environment can be defined as follows:
\defineitemgroup[enumerateltxitm][levels=5]
%
\setupitemgroup[enumerateltxitm][1][1] \setupitemgroup[enumerateltxitm][2][2] \setupitemgroup[enumerateltxitm][3][3,packed] \setupitemgroup[enumerateltxitm][4][4,packed] \setupitemgroup[enumerateltxitm][5][5,packed]
%
\starttext
%
\startenumeratestartltxitm
\item Consider
\startenumeratestartltxitm
\item this part
\item and also these subpoints:
\startenumeratestartltxitm
\item one
\item two
\item three
\startenumeratestartltxitm
\item threeandahalf
\stopenumeratestopltxitm
\item four
\stopenumeratestopltxitm \stopenumeratestopltxitm \stopenumeratestopltxitm
%
\stoptext
9

edits

Navigation menu