ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: MPgraphic
Date: Tue, 26 Oct 1999 11:07:44 +0100	[thread overview]
Message-ID: <38157D70.6909B4F0@wxs.nl> (raw)
In-Reply-To: <0F3313EC125AD311981100105AB3A75D1079BE@N0795.mdf.fvbb.de>

"Haseloff, Lutz" wrote:
> 
> I like it VERY much, to have METAPOST-code
> and the TeX-code in the one and only sourcefile.
> But an error occurs, when i want to process labels.

> Does ConTeXt insert an extra ´;´ to the METAPOST-code?

indeed:

\long\def\dodowriteMPgraphicline#1btex#2#3etex#4\MPend%
  {\ifx\next\empty\else\ifx\next\relax\else
     \bgroup
     \let\par=\empty
     \ifx#2\relax
       \immediate\write\MPwrite{#1;}%
       \egroup
     \else
       \convertargument#2#3\to\ascii
       \immediate\write\MPwrite{#1btex \ascii etex;}%
       \egroup
       \dowriteMPgraphicline#4btex\relax etex\MPend
     \fi
   \fi\fi}

you may remove the                              ^^; before etex and see
what happens. As you may notice, the text between btex etex is passed
unexpanded. (a pretty hard coded fontname in you file btw; if you know
what tex you run, you can say \rm or so). 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


  reply	other threads:[~1999-10-26 10:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-26  5:31 MPgraphic Haseloff, Lutz
1999-10-26 10:07 ` Hans Hagen [this message]
2009-05-05  8:47 MPgraphic R. Bastian

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=38157D70.6909B4F0@wxs.nl \
    --to=pragma@wxs.nl \
    --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).