Hi Christopher,

This was the right way. Thanks a lot!

Still, I don't understand how the \starttyping macro gets to work if ^^M
is redefined as ^^J.

I will tell Patrick to update the module on the garden. Meanwhile, you
can get the updated version on my site:
http://cfd.homelinux.org/tex/


David

Le Jeudi 22 septembre 2005 à 08:56 +0200, Christopher Creutzig a écrit :
> David Munger wrote:
> 
> > Unfortunately, the \StartLong macro is not meant only for producing
> > line-wise content. In the general case, it contains something else than
> > just \starttyping block.
> 
>  Please try this:
> 
> \bgroup
> 
> \catcode`\^^M=\active
> 
> \gdef\StartLong{\begingroup\obeylines\let^^M^^J\doStartLong}
> 
> \egroup
> 
> \def\doStartLong#1\StopLong{%
>   \setbuffer[x]#1\endbuffer
>   \endgroup
>   \getbuffer[x]
> }
> 
> 
> \starttext
> \StartLong
> \starttyping
> abcde
> \stoptyping
> 
> and now
> for something
> completely different
> 
> \StopLong
> \stoptext
> 
> 
> Christopher
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to