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