[NTG-context] Help on \dostartbuffer needed

2010-04-27 Thread Antoine Cailliau
Hi,

I'm trying to deal with \dostartbuffer.

I found an old message on the ML about \dostartbuffer
http://www.mail-archive.com/ntg-context@ntg.nl/msg08222.html
and its is pretty what I want except that I do not know how can I get
access to the buffer :)

For instance,
\def\startLST[#1]%
{\def\stopLST{End of #1}%
 \dostartbuffer[LST][startLST][stopLST]}

  \starttext
  \startLST[whatever]
  bla bla
  \stopLST
  alb alb
  \stoptext

will print End of whateveralb alb. I just want to get the content blabla in 
\stopLST.

I guess, it should not be hard :)

Antoine

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Help on \dostartbuffer needed

2010-04-27 Thread Antoine Cailliau
Mmm... \getbuffer[LST] obviously

Sorry for the noise

On 27 April 2010 15:04, Antoine Cailliau antoinecaill...@gmail.com wrote:
 Hi,

 I'm trying to deal with \dostartbuffer.

 I found an old message on the ML about \dostartbuffer
 http://www.mail-archive.com/ntg-context@ntg.nl/msg08222.html
 and its is pretty what I want except that I do not know how can I get
 access to the buffer :)

 For instance,
 \def\startLST[#1]%
    {\def\stopLST{End of #1}%
     \dostartbuffer[LST][startLST][stopLST]}

  \starttext
  \startLST[whatever]
  bla bla
  \stopLST
  alb alb
  \stoptext

 will print End of whateveralb alb. I just want to get the content blabla in 
 \stopLST.

 I guess, it should not be hard :)

 Antoine


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___