I need use repeatedly a list like this, with the same set of words (five or six of them), 'icon', 'coni', etc, \startitemize[width=3em,symstyle=bold] \sym{icon} blah \sym{coni} llla \stopitemize How to define a customized list so I can do: \startmylist \item blah \item llla \stopmylist to get the same result? Thanks, Michael
On Tue, 9 May 2006, Na Li wrote:
I need use repeatedly a list like this, with the same set of words (five or six of them), 'icon', 'coni', etc,
\startitemize[width=3em,symstyle=bold] \sym{icon} blah \sym{coni} llla \stopitemize
How to define a customized list so I can do:
\startmylist \item blah \item llla \stopmylist
to get the same result?
Does http://wiki.contextgarden.net/User-Defined_Enumerations help? Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008
On 9 May 2006, Aditya Mahajan wrote: On Tue, 9 May 2006, Na Li wrote: >
I need use repeatedly a list like this, with the same set of words (five or six of them), 'icon', 'coni', etc,
\startitemize[width=3em,symstyle=bold] \sym{icon} blah \sym{coni} llla \stopitemize
How to define a customized list so I can do:
\startmylist \item blah \item llla \stopmylist
to get the same result?
Does http://wiki.contextgarden.net/User-Defined_Enumerations help?
Thanks! This works fine: \defineconversion[s][icon,coni] \startitemize[s,packed][width=5em,stopper=:,style=bold] \item blah \item lla \stopitemize 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] Michael
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 Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
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
On Wed, 10 May 2006, Na Li wrote:
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?
Try \startitemize[n,broad,packed] \item \startitemize[n] \item test1 \item test2 \stopitemize \stopitemize Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008
participants (3)
-
Aditya Mahajan
-
Hans Hagen
-
Na Li