From: Alan BRASLAU <alan.braslau@cea.fr>
To: Taco Hoekwater <taco@elvenkind.com>
Cc: ntg-context@ntg.nl
Subject: Re: Metapost+mpgraph and mkiv
Date: Sat, 7 Nov 2009 18:58:00 +0100 [thread overview]
Message-ID: <200911071858.00367.alan.braslau@cea.fr> (raw)
In-Reply-To: <4AF59E70.1020705@elvenkind.com>
On Saturday 07 November 2009 17:21:04 Taco Hoekwater wrote:
>
> 1. You should load the MP packages you need in \startMPinclusions (this
> is where the code really belongs, even in mkii) instead of inside each
> separate graphic.
>
> 2. You have to make sure that you do not re-state equations that were
> already solved in a previous graphic.
>
> These are in fact the excact same rules that you have to adhere to in
> mkii if \runMPgraphicsfalse is active.
So, for the mailing list, here is a working solution (mkii & mkiv):
%% minimal example %%
\starttext
\startMPinclusions
input graph
\stopMPinclusions
\startuseMPgraphic{test}
draw begingraph(16cm,12cm);
setrange(whatever,whatever,whatever,whatever);
gdraw (0,0) -- (1,1) ;
endgraph;
\stopuseMPgraphic
\startTEXpage
\useMPgraphic{test}
\stopTEXpage
\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2009-11-07 17:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-22 12:44 Metapost " Otared Kavian
2009-09-22 16:03 ` Hans Hagen
2009-09-22 16:45 ` Aditya Mahajan
2009-11-07 12:25 ` Metapost+mpgraph " Alan BRASLAU
2009-11-07 12:39 ` Taco Hoekwater
[not found] ` <200911071613.35924.alan.braslau@cea.fr>
[not found] ` <4AF59E70.1020705@elvenkind.com>
2009-11-07 17:58 ` Alan BRASLAU [this message]
2009-11-07 18:00 ` Wolfgang Schuster
2009-11-08 15:17 ` Alan BRASLAU
2009-11-08 15:31 ` Metapost+mpgraph withcolor Alan BRASLAU
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=200911071858.00367.alan.braslau@cea.fr \
--to=alan.braslau@cea.fr \
--cc=ntg-context@ntg.nl \
--cc=taco@elvenkind.com \
/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).