Re: [NTG-context] MPenvironment \def gives "Parameters must be numbered consecutively"

2006-10-05 Thread Aditya Mahajan
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{\startMPenvi

Re: [NTG-context] MPenvironment \def gives "Parameters must be numbered consecutively"

2006-09-30 Thread Sanjoy Mahajan
> works ok ; maybe i should add that command to the core but anyhow > you can wikify it Using btex..etex is becoming complex with all the interactions, so instead I wikified an example of converting from btex..etex to \sometxt -- preaching what I am trying to practice. Instead I'll use the MPenvi

Re: [NTG-context] MPenvironment \def gives "Parameters must be numbered consecutively"

2006-09-30 Thread Sanjoy Mahajan
> never try to do tricky stuff like definitions inside MPenvironement, > because it is parsed and changed slightly. I'm learning that lesson too. Another one: "don't use btex..etex instead use \sometxt". So I now try to use the MPenvironment only for font and size switching (e.g. if I want the f

Re: [NTG-context] MPenvironment \def gives "Parameters must be numbered consecutively"

2006-09-29 Thread Mojca Miklavec
On 9/29/06, Sanjoy Mahajan wrote: > This test file (beta 2006.09.28): > > 1.tex > \starttext > \startMPenvironment > \def\2#1#2{\vbox{\halign{\hfil##\hfil\cr #1\cr #2\cr}}} > \stopMPenvironment A lesson that I learned while trying to implement a few functi

Re: [NTG-context] MPenvironment \def gives "Parameters must be numbered consecutively"

2006-09-29 Thread Hans Hagen
Sanjoy Mahajan wrote: > This test file (beta 2006.09.28): > > 1.tex > \starttext > \startMPenvironment > \def\2#1#2{\vbox{\halign{\hfil##\hfil\cr #1\cr #2\cr}}} > \stopMPenvironment > > \startreusableMPgraphic{fig} > label(btex sun etex, origin); > \stopreu

[NTG-context] MPenvironment \def gives "Parameters must be numbered consecutively"

2006-09-28 Thread Sanjoy Mahajan
This test file (beta 2006.09.28): 1.tex \starttext \startMPenvironment \def\2#1#2{\vbox{\halign{\hfil##\hfil\cr #1\cr #2\cr}}} \stopMPenvironment \startreusableMPgraphic{fig} label(btex sun etex, origin); \stopreusableMPgraphic \reuseMPgraphic{fig} \sto