ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Michal Kvasnička" <quasar@econ.muni.cz>
Subject: Offtopic: TeX in MetaPost?
Date: Mon, 19 Dec 2005 16:28:37 +0100	[thread overview]
Message-ID: <43A6D1A5.9010902@econ.muni.cz> (raw)

Good evening.

I apologize that I dare to post here such offtopic, but I feel this is 
the right place to get an answer.
I try to write some general-purpose MetaPost macros for me with 
ConTeXt-like interface. For instance, I'd like something like this:
    label(point, "label=$A$, xlabel=$x_A$, ylabel=$y_A$, 
ylabelshift=left, lines=no, dotstyle=bigdot, ...");
I've done a lot of work and it almost works, but ... I failed to notice 
that TeX sequences are in normal cases included between btex ... etex 
and are preprocessed. In other words, they cannot be typeset as a 
string. I could use TEX macro, but it slows the process down in a 
horrible way.

I think the best way is this: In the first run of MetaPost to flush out 
all TeX codes, then process it with TeX (texexec), and then to include 
it in the second MetaPost run. But I don't know how to do it? Can you 
help me or at least hint where I could find an answer? And BTW, is this 
a good idea at all? Isn't there a better/faster way?

Many thanks for you kind help.
Michal Kvasnicka

             reply	other threads:[~2005-12-19 15:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-19 15:28 Michal Kvasnička [this message]
2005-12-19 15:06 ` John R. Culleton
2005-12-21 12:36   ` Michal Kvasnička
2005-12-21 13:27     ` Hans Hagen

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=43A6D1A5.9010902@econ.muni.cz \
    --to=quasar@econ.muni.cz \
    --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).