Dear Wolfgang, Am Mittwoch, den 13.07.2011, 15:11 +0200 schrieb Wolfgang Schuster:
Am 13.07.2011 um 07:15 schrieb Andreas Richter:
[…]
After browsing the documentation on the web, focussing on \defineenummeration, I'm still nowhere near the solution. Could anyone please give examples of how to do this?
You can change the style, color and spacing with \setupenumerations but for the rules etc. you need other commands.
\defineenumeration[theorem][text=Theorem,title=yes] \defineenumeration[example][text=Example] \defineenumeration[remark] [text=Remark]
\setupenumerations [theorem] [ before={\startframedtext[frame=off,topframe=on,bottomframe=on,width=broad,offset=.5ex]}, after=\stopframedtext, inbetween={\blank[small]}]
the first off topic question is, what editor do you use and what commands to align the options at the »=«?
\setupenumerations [example] [ command=\textrule, after=\textrule, inbetween={\blank[nowhite]}]
\setupenumerations [remark] [style=italic]
[…] My second question is, what is the recommended way to define theorems? The Wiki [1] says `\setupenumarations` as you did, but if I am not mistaken there was a thread where your module `annotations` was used. What is more “future proof” and recommended? Thanks, Paul [1] http://wiki.contextgarden.net/Latex_Packages#theorem