[NTG-context] MPenvironment

2010-10-04 Thread Patrick Gundlach
Hi, I would like to get the Metapost Abcd to be bigger then the TeX Abcd (for all Metapost graphics). I thought that the command is \startMPenvironment .. \stopMPenvironment !?!? \startMPenvironment \switchtobodyfont[16pt] \stopMPenvironment

Re: [NTG-context] MPenvironment

2010-10-04 Thread Hans Hagen
On 4-10-2010 12:41, Patrick Gundlach wrote: Hi, I would like to get the Metapost Abcd to be bigger then the TeX Abcd (for all Metapost graphics). I thought that the command is \startMPenvironment .. \stopMPenvironment !?!? \startMPenvironment

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

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

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);

Re: [NTG-context] MPenvironment ignored for btex..etex (or should I use sometxt)?

2006-09-29 Thread Hans Hagen
Sanjoy Mahajan wrote: Oh, wait, if metapost is fine with the file but ConTeXt isn't, then the error above must be from ConTeXt parsing the metapost code and seeing the \2, then complaining. So am I supposed to use the global option to \startMPenvironment? If it's needed in this case, I think

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 functions

[NTG-context] MPenvironment ignored for btex..etex (or should I use sometxt)?

2006-09-28 Thread Sanjoy Mahajan
I'm not sure what's going on here, but this file fails (2006.09.28 beta): [well I have a better idea now after writing out the whole email, see the end...] === 3.tex = \starttext \startMPenvironment \def\2{hello} \stopMPenvironment \startreusableMPgraphic{fig}

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