Aditya Mahajan wrote:
On Tue, 27 Jun 2006, Hans Hagen wrote:
David Arnold wrote:
Hans (please CC Jacob), here is the whole environment file. My student did this for me, but if you'd like to make some changes, that would be ok.
He has in another environment file:
[code snipped]
less tricky, cleaner, etc
\defineframedtext[MyBox]
\setuplabeltext[definition=Definition] \setuplabeltext [example=Example] \setuplabeltext [warning={\tfb !}] \setuplabeltext [key=\bigstar] \setuplabeltext [tip=\checkmark] \setuplabeltext [summary=\bigstar\quad Summary]
\definemeasure[BoxWidth][.8\textwidth]
\defineblank[BoxBlank][1em plus 1em minus 1em]
Wow. Did not know about labeltexts. This goes one more step in separating content from presentation.
well, the code in the lang-* files is pretty old (therw you can see how do deal with languages as well; there is also left/right lable stuff, as needed for chinese), actually, this is the oldest code ... (reminds of frustrations with latex due to hard coded Chapter in the styles in those days) 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 -----------------------------------------------------------------