This time, it is not working, and I do not have any idea why.

\defineenumeration[ENUM][]
\definebuffer[Entity,before=\startENUM,after=\stopENUM]

\starttext

\startEntity
\input tufte
\stopEntity

\stoptext

fails with 

! Missing \endcsname inserted.
<to be read again> 
                   \let 
\noshowargumenterror ->\let 
                            \expectedarguments \noexpectedarguments 
\dodoubleempty #1->\noshowargumenterror 
                                        \doifnextcharelse
[{\dodoubletestemp...

\startENUM ->\dodoubleempty \@@startdescription 
                                                [ENUM]
<argument> \??bu Entity,before=\startENUM 
                                          ,after=\stopENUM \c!number 
\letvalue #1->\expandafter \let \csname #1
                                          \endcsname 
...
l.4 


On Tue, 2010-04-27 at 15:13 +0200, Antoine Cailliau wrote:
> 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
___________________________________________________________________________________

Reply via email to