From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/7946 Path: main.gmane.org!not-for-mail From: Nigel King Newsgroups: gmane.comp.tex.context Subject: Re: MetaPost input boxes Date: Tue, 21 May 2002 21:28:19 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035398382 23579 80.91.224.250 (23 Oct 2002 18:39:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:39:42 +0000 (UTC) Original-To: In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:7946 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:7946 Replying to my own earlier message in order not to confuse and explain my error. (Silly now I see it.) > > A feature of MetaPost I have made a lot of use of in the past is the macros > enabled by input boxes. Such macros as boxjoin, boxit, circleit I have found > very useful. Is there any intention to make these facilities compatible with > MetaFun? > Minimal working testfile below --start---testboxes.tex---- \setupoutput[pdftex] \startMPinclusions input boxes \stopMPinclusions \startuseMPgraphic{graphicname} boxit.a(btex test box etex); drawboxed (a); \stopuseMPgraphic \starttext \useMPgraphic{graphicname} \stoptext ---end---testboxes.tex---- My error was that I placed the input boxes line in the \startuseMPgraphic....\stopuseMPgraphic which is then between beginfig(1);...endfig; rather than before the beginfig(1); Since it had not worked I assumed that it would not work. I now realise this is a poor assumption in ConTeXt since most things actually work if you can only find the right way to make it work! Thanks for an excellent system -- Nigel