[NTG-context] customized itemize

Na Li nali at umn.edu
Wed May 10 17:37:53 CEST 2006


On  9 May 2006, Hans Hagen wrote:

Na Li wrote: >
> > Is there a way of defining an itemize style without having to specify
> > the same set of options to \startitemize every time?  Something like:
> > 
> > \defineitemize[myitemize][s,packed][width=5em,stopper=:,style=bold]
> > 
> \defineitemgroup

That does the trick.  Thanks.

This is not in the manual.  I only found one example through Google.  So
I'll repeat it here

\defineitemgroup[mylist]
\setupitemgroup[mylist][each][s,packed]
\setupitemgroup[mylist][each][width=5em,stopper=:,style=bold]

Another question, if I do

\startitemize[n]
\item
  \startmylist
  \item
  \stopmylist
\stopitemize

The numbers, '1', '2', etc, from the outer list does not line up with 
the first line of the inner list.  How can that be fixed?  Also how to
prevent a page break between the number/bullet from the outer list and
the nested list?

Michael



More information about the ntg-context mailing list