[NTG-context] Buffers and commands with optional arguments

Hans Hagen pragma at wxs.nl
Sat May 31 12:51:37 CEST 2008


Wolfgang Schuster wrote:
> Hi Hans,
> 
> I got yesterday a bug report for my letter module if the \startletter
> command takes no arguments.
> 
> The following example show the problem without the module.
> 
> \def\startletter
>   {\dosingleempty\dostartletter}
> 
> \def\dostartletter[#1]%
>   {\dostartbuffer[letter][startletter][stopletter]}

either use \definebuffer, or do

\def\startletter
   {\bgroup\obeylines\dosingleempty\dostartletter}

\def\dostartletter[#1]%
   {\egroup\dostartbuffer[letter][startletter][stopletter]}



-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------


More information about the ntg-context mailing list