On Fri, 29 May 2009, Xan wrote:
Hi,
I have my environment of context that defines the theorems and lemmas like
amsthm in latex. For example, for lemmas, I have:
\defineenumeration
[lemma]
[text={Lemma},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,style=italic]
The question is how can I get the typical argument of lemmas: "Lema 4.1
(superadditive lemma)"? How can I add the possibility that lemma _could_ have
one argument (the phrase in parentesis)?.
I'm not a TeX programmer, such a ConTeXt user.
Any hint?
Use [title=yes] and then
\startlemma[reference]{A brilliant result}
...
\stoplemma
For details, see my article in last year's MAPS.
Theorems in ConTeXt (English), MAPS 36, 2008, 27-32
(http://www.ntg.nl/maps/36/index.html)
Unfortunately, the issue is not available online yet.
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________