Am 04.03.2013 um 14:57 schrieb Peter Münster <[email protected]>:
> Hi,
>
> How could I embed \startletter/\stopletter in a macro please?
>
> This does not work:
>
> --8<---------------cut here---------------start------------->8---
> \usemodule[letter]
> \def\myStartLetter{\startletter}
> \def\myStopLetter{\stopletter}
> \myStartLetter
> \input tufte
> \myStopLetter
> --8<---------------cut here---------------end--------------->8---
The module uses a buffer to store the content of the letter environment.
What you can do is to create a new buffer for your environment and feed
the content of this buffer to the letter module.
\usemodule[letter]
\startsetups[letter:section:content]
\getbuffer[MyLetter]
\stopsetups
\setuplettersection[content][alternative=setups]
\def\StartLetter
{\starttext
\grabbufferdata[MyLetter][StartLetter][StopLetter]}
\def\StopLetter
{\placeletter
\stoptext}
\StartLetter
\input tufte
\StopLetter
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________