From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/3551 Path: main.gmane.org!not-for-mail From: "Denis B. Roegel" Newsgroups: gmane.comp.tex.context Subject: is there a problem with local definitions in metafun? Date: Fri, 8 Dec 2000 17:41:42 +0100 (MET) Sender: owner-ntg-context@let.uu.nl Message-ID: <200012081641.RAA27218@bar.loria.fr> 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 1035394282 18062 80.91.224.250 (23 Oct 2002 17:31:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:31:22 +0000 (UTC) Cc: roegel@lorraine.loria.fr (Denis B. Roegel) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:3551 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:3551 When porting a standard metapost example to context, I noticed that there was a problem with local definitions. For instance, in my original file, I had beginfig(1); ... def ... vardef ... other code endfig; end But I first naively translated this into \startuseMPgraphic{dummy} ... def ... vardef ... other code \stopuseMPgraphic (as it works for an example in the metafun manual) It didn't work with my example and I had to split the code: \startMPinclusions ... def ... vardef ... \stopMPinclusions \startuseMPgraphic{dummy} other code \stopuseMPgraphic Is there an explanation for this? Thanks, Denis