From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/487 Path: main.gmane.org!not-for-mail From: David Arnold Newsgroups: gmane.comp.tex.context Subject: Inlcuding Metapost Date: Wed, 02 Jun 1999 13:29:18 -0700 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.5.32.19990602132918.00a5ee80@mail.northcoast.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035391343 24455 80.91.224.250 (23 Oct 2002 16:42:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:42:23 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:487 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:487 All, I want to put metapost graphics in my file. This works, but I have to run texexec twice. Hmmm... Why? % interface=en output=pdf \starttext \setuppapersize[S6][S6] \setupbodyfont[pos,14.4pt] \setupcolors[state=start] \setupinteraction[state=start] There is a \gotobox {\tooltip {last page} {indeed, klicking here will bring you to the last page}} [nextpage] too in this document. \MPinclusions{input mp-tool} \startreusableMPgraphic{pb} path squares[]; numeric side; side=10cm; squares0=unitsquare scaled side; draw squares0; y1=0;x2=side; x1=side/25;y2=x1; d=angle(z2-z1); r=abs(z2-z1)/side; for i:=1 upto 80: squares[i]:=squares[i-1] shifted (-side/2,-side/2) rotated d scaled r shifted (side/2,side/2); draw squares[i] withcolor (i/100)[blue,green]; endfor \stopreusableMPgraphic \reuseMPgraphic{pb}\reuseMPgraphic{pb}\reuseMPgraphic{pb}\reuseMPgraphic{pb} \quad \page >>From this it follows that there is also a \gotobox {\tooltip {first page} {this button lets you go to the first page}} [firstpage]. \stoptext Also, this is probably not the right way to do things, so I am open to suggestion from the Maestros. Please advise. Also, I would like to center, scale, float the MP graphic, etc. I would love to see how.