From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14303 Path: main.gmane.org!not-for-mail From: David Arnold Newsgroups: gmane.comp.tex.context Subject: Re: MetaPost with etex/btex Date: Sun, 14 Dec 2003 11:47:06 -0800 Sender: ntg-context-admin@ntg.nl Message-ID: <3.0.5.32.20031214114706.0094b100@mail.northcoast.com> References: <20031214080317.GA13908@callisto.jupiter.qc.ca> <20031214080317.GA13908@callisto.jupiter.qc.ca> <3FDC511E.8090706@boede.nl> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1071435284 16354 80.91.224.253 (14 Dec 2003 20:54:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 14 Dec 2003 20:54:44 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Sun Dec 14 21:54:41 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AVdGD-0002xt-00 for ; Sun, 14 Dec 2003 21:54:41 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 43A6A10B28; Sun, 14 Dec 2003 21:54:34 +0100 (MET) Original-Received: from smtp.inreach.com (smtp.inreach.com [209.142.2.34]) by ref.ntg.nl (Postfix) with SMTP id E101510B1D for ; Sun, 14 Dec 2003 21:46:18 +0100 (MET) Original-Received: (qmail 7797 invoked from network); 14 Dec 2003 20:46:15 -0000 Original-Received: from unknown (HELO newmicronpc) (209.209.15.118) by smtp.inreach.com with SMTP; 14 Dec 2003 20:46:15 -0000 X-Sender: darnold@mail.northcoast.com (Unverified) X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Original-To: ntg-context@ntg.nl In-Reply-To: <3FDC511E.8090706@boede.nl> Original-References: <20031214080317.GA13908@callisto.jupiter.qc.ca> <20031214080317.GA13908@callisto.jupiter.qc.ca> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:14303 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14303 Hmmm,... I haven't tried this sort of thing for a while, so I downloaded the new beta into my Miktex system, regenerated formats, and attempted to compile the code below. I got the following error: ! Undefined control sequence. l.1 \global \loadfontfileoncetrue % ! You can't use a prefix with `\shipout'. \shipout l.2 \shipout \hbox{\smash{\hbox{\hbox{% line 226 C:\temp\junk-mpgraph.mp [1] ) (see the transcript file for additional information) I have write18 enabled in miktex.ini, and adjusted cont-sys.tex: % Enabling run time \METAPOST\ (also enable \write18 in % texmf.cnf): \runMPgraphicstrue \runMPTEXgraphicstrue % This saves some runtime, but needs a format, which you can % make with 'texexec --make --alone metafun'. Make sure that % the mem files are moved to the used web2c path (locate with % 'kpsewhich plain.mem'). \useMETAFUNformattrue % Enabling nested pretty printing: \newprettytrue % This can be a way to get things working on system with % name clashes. (Some \TeX's tend do search system wide.) \protectbufferstrue Anyone have an idea what I am doing wrong? At 01:01 PM 12/14/03 +0100, you wrote: >Hi David, > >The use of the different possibilities of including metapost graphics in >ConTeXt are described in the METAFUN-manual on pages 9, 81-82, 115 > >For your refernce I attach a small demo file using your code ... > >Kind regards Willi > > > >David Munger wrote: > >> Hello, >> >> The following code results in no label output: >> >> \starttext >> \startMPcode >> label.top(btex Some label etex, (1cm,1cm)) ; >> \stopMPcode >> \stoptext >> >> I'm using ConTeXt 2003.12.12. >> >> >> By the way, why don't \startMPgraphic and \stopMPgraphic do anything? >> > >\setupoutput[pdftex] >\starttext > >\section{Including the MPcode in the placefigure mechanism} > >\placefigure > [here] > [] > {the label} > {\startMPcode > label.top(btex Some label 1 etex, (1cm,1cm)) ; > \stopMPcode} > >\section{startMPgraphic -- placeMPgraphic} > >\startMPgraphic > label.top(btex Some label 2 etex, (1cm,1cm)) ; >\stopMPgraphic > >\loadcurrentMPgraphic{width=15cm} >\placeMPgraphic > >\section{startuseMPgraphic -- useMPgraphic} > >\startuseMPgraphic{Label2} > label.top(btex Some label 3 etex, (1cm,1cm)) ; >\stopuseMPgraphic > >\useMPgraphic{Label2} > >\section{startreusableMPgrpahic -- reuseMPgraphic} > >\startreusableMPgraphic{Label3} > label.top(btex Some label 4 etex, (1cm,1cm)) ; >\stopreusableMPgraphic > >\reuseMPgraphic{Label3} > >\stoptext