From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1890 Path: main.gmane.org!not-for-mail From: "Richard Hensh" Newsgroups: gmane.comp.tex.context Subject: Metapost and graphics Date: Sat, 22 Apr 2000 20:06:21 -0400 Sender: owner-ntg-context@let.uu.nl Message-ID: Reply-To: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035392692 4034 80.91.224.250 (23 Oct 2002 17:04:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:04:52 +0000 (UTC) Original-To: Xref: main.gmane.org gmane.comp.tex.context:1890 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1890 Hello, I'm new to ConTeXt and interested in including graphs in my documents. Since PSTricks doesn't appear to be supported I've turned to METAPOST. I have some questions about the code below. 1. I've tried some of the examples from the MP docs and occasionally, the "test" graphic fails when the beginfig(1)/endfig pair is included. 2. Which is the preferred way to call the "test" image, (1) or (2) (see below)? 3. What is the purpose of the pair \startMPgraphic...\stopMPgraphic? It doesn't seem to do anything. In the docs that I've found, there doesn't seem to be much on METAPOST info. For example, the "graph" package isn't supported. Is there a more extensive discussion of ConTeXt support of METAPOST somewhere? thanks in advance ricky +++++++++++++++++++++++++++++++++++++++++++++ \startuseMPgraphic{test} beginfig(1); u=1cm; draw (2u,2u)--(0,0)--(0,3u)--(3u,0)--(0,0); pickup pencircle scaled 4pt; for i=0 upto 2: for j=0 upto 2: draw (i*u,j*u); endfor endfor endfig; \stopuseMPgraphic %1 \useMPgraphic{test} %2 \externalfigure[mpgraph.1] %3 \startMPgraphic %same mp code as above. \stopMPgraphic +++++++++++++++++++++++++++++++++++++++++++++++++