From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/2489 Path: main.gmane.org!not-for-mail From: pragma@wxs.nl Newsgroups: gmane.comp.tex.context Subject: Re: Inline MP Date: Wed, 16 Aug 2000 09:13:21 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <7736D2C7529.AAA369C@po03.wxs.nl> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035393279 9281 80.91.224.250 (23 Oct 2002 17:14:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:14:39 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Nagy Balazs Xref: main.gmane.org gmane.comp.tex.context:2489 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:2489 >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