Am 04.03.2013 um 14:57 schrieb Peter Münster
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