On Fri, 29 Sep 2006, Hans Hagen wrote:

> environments are saved in macros, therefore  you end up  in  an argument
> mess
>
>
>
> \starttext
>
> \startbuffer[mp]
>  \def\2#1#2{\vbox{\halign{\hfil##\hfil\cr #1\cr #2\cr}}}
> \stopbuffer
>
> \def\useMPenvironmentbuffer[#1]%
>
> {\expanded{\startMPenvironment\noexpand\readfile{\TEXbufferfile{\jobname}}{}{}}\stopMPenvironment}

Shouldn't that be \readfile{\TEXbufferfile{#1}?


> \useMPenvironmentbuffer[mp]

> \startreusableMPgraphic{fig}
> label(btex sun etex, origin);

If you try

  label(btex \2{one}{two} etex, origin) ;

it does not work.

> \stopreusableMPgraphic
>
> \reuseMPgraphic{fig}
>
> \stoptext
>
> works ok ; maybe i should add that command to the core but anyhow you
> can wikify it

How about defining something like

\startMPTEX
   ....
\stopMPTEX

which writes everything to a file jobname-mp, so that the user does 
not need to be aware that he/she has to create a buffer with the name 
mp.

However, using \startbuffer[mp] is fragile as the user can also define 
a buffer with the name mp. How about a different/ less common word, 
say verbtaimtex?

Aditya

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

Reply via email to