From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1899 Path: main.gmane.org!not-for-mail From: pragma@wxs.nl Newsgroups: gmane.comp.tex.context Subject: Re: infinite iteration Date: Mon, 24 Apr 2000 07:15:05 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <773639A55E1.AAA4531@po03.wxs.nl> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035392700 4089 80.91.224.250 (23 Oct 2002 17:05:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:05:00 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:1899 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1899 >Hey! Right now I managed to induce an infinite (?) iteration >via texexec. Apparently I did it by reading in mpgraph.1 as an >external figure and having inline metapost code at the same time. >The strange thing is that in other circumstances, metapost won't be >run at all in between. I have to start it by hand to update mpgraph.1. Right, mpgraph is reserved for internal use. You can create a document namespace by saying: \protectbufferstrue this can go in your local cont-sys.tex file. Also, when \runMPgraphicstrue you can add \recycleMPslotstrue to limit the number of scratch mp files when using pdftex. >My current question is: How do I scale a graphic produced by inline >Metapost code? The (re)?useMPgraphics commands don't seem to provide >scale options, as far as I can tell from the code. The \useMPgraphic as well as \reuseMPgraphic and \uniqueMPgraphic commands are primarily meant for usage as backgrounds. There is startMPgraphic ... stopMPgraphic and some low level load and place stuff that does support scaling. Just browse around supp-mps.tex. Another one is: \startMPrun beginfig(10) ; .... endfig; \stopMPrun now you can use \externalfigure[mprun.10][width=10cm] and alike. Of course you can input existing stuff into the run. Hans