On Mon, 5 Mar 2012, Kip Warner wrote:
On Sun, 2012-03-04 at 23:26 -0500, Aditya Mahajan wrote:
On Sun, 4 Mar 2012, Kip Warner wrote:
Hey list,
I'd like an itemized list using the following format...
Article I ...
Article II ...
Article III ...
...and so on. I've tried defining the behaviour with...
\defineenumeration[article]
[location=top,
text=Article,
between=\blank,
before=\blank,
after=\blank]
\setupenumerations[article][R]
...but the problem is that after a list of items provided with matching
\startarticle \stoparticle pairs, the last count persists to the next
list of items which should start at 'I' again. I am assuming I am not
doing this correctly and would appreciate any suggestions.
Use itemgroup rather than enumerations.
Thanks Aditya, but could you give me an example of how to do this? As
usual, I am not able to take much away from the ConTeXt wiki. Sorry.
\defineitemgroup[article]
\setupitemgroup
[article]
[
left={Article },
stopper=,
symbol=R,
before=\blank,
after=\blank,
distance=0.5em,
]
\setupitemgroup
[article]
[broad,fit]
\starttext
\startarticle
\item First article
\item Second article
\stoparticle
Again
\startarticle
\item First article
\item Second article
\stoparticle
\stoptext
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________