ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
Subject: Re: MPenvironment \def gives "Parameters must be numbered consecutively"
Date: Sat, 30 Sep 2006 16:50:32 +0100	[thread overview]
Message-ID: <E1GTh6m-0007Xi-00@skye.ra.phy.cam.ac.uk> (raw)
In-Reply-To: Your message of "Fri, 29 Sep 2006 09:29:19 +0200." <451CCB4F.6090409@wxs.nl>

> 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.

  reply	other threads:[~2006-09-30 15:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-29  5:07 Sanjoy Mahajan
2006-09-29  7:29 ` Hans Hagen
2006-09-30 15:50   ` Sanjoy Mahajan [this message]
2006-10-05  7:10   ` Aditya Mahajan
2006-09-29 16:29 ` Mojca Miklavec
2006-09-30 15:46   ` Sanjoy Mahajan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1GTh6m-0007Xi-00@skye.ra.phy.cam.ac.uk \
    --to=sanjoy@mrao.cam.ac.uk \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).