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

Sanjoy Mahajan sanjoy at mrao.cam.ac.uk
Sat Sep 30 17:50:32 CEST 2006

> 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 MPenvironment just for font and size switching
(e.g. to use a different size for figures than for main text).

> (i didn't expect users to cook up all kind of commands in
> environments; when i have to do that, I normally put them in an
> environment and load that in the mp graphic (since one loads tex
> files there)

I hadn't thought of that.  Do you mean something like (which I
couldn't get to compile):

\starttext

\startreusableMPgraphic{fig}
\def\hello{hhh}  % perhaps in an environment file
label(\sometxt{\hello}, origin);
\stopreusableMPgraphic

\reuseMPgraphic{fig}

\stoptext

-Sanjoy

Never underestimate the evil of which men of power are capable.'
--Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
`