ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: pragma@wxs.nl
Cc: ntg-context@ntg.nl
Subject: Re: Inline MP
Date: Wed, 16 Aug 2000 09:13:21 +0200	[thread overview]
Message-ID: <7736D2C7529.AAA369C@po03.wxs.nl> (raw)

>Hi,
>
>I have a problem about inline metapost definition.  Here's a
snippet:
>
>\def\MPlogo#1#2{%
>  \startreusableMPgraphic{lg#1#2}
>    color outside; outside = black;
>    color inside; inside = (1,.6,0);
>     ...
>    pickup pencircle scaled ll;
>    drawlogo(outside);
>    pickup pencircle scaled bl;
>    drawlogo(inside);
>  \stopreusableMPgraphic
>  \reuseMPgraphic{lg#1#2}
>}

This can be done more efficiently (and maybe even possible in
your version): 

\startuniqueMPgraphic{...}
  ...
\stopuniqueMPgraphic

....

\uniqueMPgraphic{...}

The new metafun manual will explain this [and other new tricks]
in more detail. 

>ll and bl are counted from #1 and #2.
>
>Everytime when I run texexec (the first line is %
interface=english
>output=pdftex paper=a4 pdf mptex), it stops at mpost with a * 
                        ^^^^^^^^^
                        not needed  

prompt saying
>'type end' or similar.  Of course it generates mpoutput.1 but 

You may want to use texexec from the latest distribution
although proper use of \starttext ... \stoptext should handle
this.

Hans


             reply	other threads:[~2000-08-16  7:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-16  7:13 pragma [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-08-14 18:41 Nagy Balazs
2000-08-15 11:21 ` Nagy Balazs
2000-08-21  9:45 ` 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=7736D2C7529.AAA369C@po03.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).