[NTG-context] Re: Collecting command arguments in a startstop environment

Brooks Moses bmoses at stanford.edu
Mon Aug 2 10:46:15 CEST 2004


At 01:37 AM 8/2/2004, you wrote:
> > Anyhow, I'm finding myself wanting to do this in ConTeXt, with of
> > course replacing \newenvironment with \definestartstop.
>
>I didn't want to fiddle with \definestartstop, but here is a quick
>hack:
>
>--------------------------------------------------
>\long\def\foo#1{ Hello #1!}
>\long\def\startfoo #1 \stopfoo{\unskip \foo{#1}}
[...]

Oh, that's clever.  I'll have to ponder at whether it's got some drawbacks 
that mean it doesn't work for what I need, but it does seem promising.  Thanks!

- Brooks



More information about the ntg-context mailing list