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

2004-08-02 Thread Patrick Gundlach

[...]

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

\starttext
\startfoo
World
\stopfoo
\startfoo
Brooks
\stopfoo
\startfoo
some

lines
\stopfoo
\stoptext
--

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
texshow-web:  http://texshow.contextgarden.net
List archive: http://archive.contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


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

2004-08-02 Thread Brooks Moses
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
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context