From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27619 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: mp file not compiling Date: Wed, 3 May 2006 12:14:47 -0400 (EDT) Message-ID: References: <6faad9f00605030746q1a0d7502wf71361b78adb74c8@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1146676581 16457 80.91.229.2 (3 May 2006 17:16:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 May 2006 17:16:21 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed May 03 19:16:18 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FbKxK-0002D7-Ge for gctc-ntg-context-518@m.gmane.org; Wed, 03 May 2006 19:16:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3588612797; Wed, 3 May 2006 19:16:06 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19501-01; Wed, 3 May 2006 19:16:05 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4B68F127A5; Wed, 3 May 2006 18:41:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 09BF9127B2 for ; Wed, 3 May 2006 18:41:06 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12538-02 for ; Wed, 3 May 2006 18:41:03 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by ronja.ntg.nl (Postfix) with SMTP id 1B55612797 for ; Wed, 3 May 2006 18:14:48 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY hellskitchen.mr.itd.umich.edu ID 4458D6F6.44434.23618 ; 3 May 2006 12:14:47 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: <6faad9f00605030746q1a0d7502wf71361b78adb74c8@mail.gmail.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:27619 Archived-At: On Wed, 3 May 2006, Mojca Miklavec wrote: > On 5/3/06, Aditya Mahajan wrote: >> Hi, >> Is the mp support for btex...etex broken in the latest context >> (ConTeXt ver: 2006.04.27 15:59) The following does not compile, >> >> \starttext >> \startMPpage >> label(btex This is a test etex, origin) ; >> \stopMPpage >> \stoptext >> >> I get an error >> >> ! Unable to make mpx file. >> l.123 label(btex >> This is a test etex >> >> Even an mp file >> >> beginfig(1) >> label(btex hello world etex, origin) ; >> endfig >> end; >> >> with texexec --mptex gives the same error message. >> >> Can somebody confirm this? Or is something broken at my end? > > First of all: > 1. in case you are using windows, update "texmfstart.exe" from > cont-win.zip (you have to do that every now and then) I am indeed using windows. I deleted my entire tree and downloaded the latest mswincontext.zip, uninstalled it. I verified that texmfstart.exe is in the path and ran texmfstart newtexexec --mptex and get the same error. > 2. check that "texexec" is a synonym (for example texexec.bat under > windows or an executable) for running "texmfstart [new]texexec" I did check that. texexec is a synonym for texmfstart newtexexec. Infact, the example does not compile on live.contextgarden.net I get the same error message when I compile the tex file there. > 3. Hans would say that you have to use "textext" instead of btex ... etex with \startMPpage label(textext("This is a test"),origin) ; \stopMPpage I get || >> test1-mpgraph.mp || >> test1-mpgraph.mpx || ! Unable to make mpx file. || l.124 texpictures[1] := btex || This is a test etex ; as textext internally uses btex/etex. In the pdf file I get *unknown* instead of *This is a test*. I guess that unknown is textext's fallback mechanism. > I doubt that this came with the latest distribution. The btex/etex and > textext functionality is a bit broken anyway: sometimes it works and > sometimes it doesn't. This is the first time I found it to be broken. > It depends a lot on the system that you use > (MikTeX/tetex/standalone), on texexec that you run (texexec or > newtexexec), how you run it (a batch/shell script with "texmfstart > [new]texexec" or from linux/windows binaries that come with other > distributions than the standalone one). I am using the standalone distribution from pragma on windows. > It might also be that "write18" is set to off, it might be that some > \runMP[TEX]graphic[s]true, \forceMP[TEX]graphic[s]true are set to > false (chech your cont-usr.tex file). (I don't know which variable > does what, but if you try to use an undefined one, TeX will complain > anyway. Check the sources or try to switch on all the possible > combinations of the commands mentioned above.) I had \runMPgraphicstrue and \runMPTEXgraphicstrue in cont-sys.tex I added \forceMPTEXgraphictrue to cont-sys.tex and remade the formats. Still, I get the same error. I checked in texmf.cnf and mpxcommand is set to makempx If I run makempx.exe test.mp test.mpx I get dvitomp.exe: mpx3568.dvi: No such file or directory makempx: Command failed: dvitomp mpxerr.dvi test.mpx makempx: can't move mpx3568.dvi to mpxerr.dvi: No such file or directory mpx3568.mp has one line "end." and mpxerr.log is empty. The help of makempx says that makempx is equivalent to mpto -tex, texexec --batch --once --nomp, and dvitomp If I follows these steps manaually, adding --dvi to texexec I get an mpx file. My guess that the error is because 1. texmfstart texexec calls newtexexec 2. On the standalone distribution, newtexexec produces pdf by default. To check this, I created a texexec.bat file in my current directory so that it calls texmfstart texexec.pl and everything works fine now. Thus, for the time being, I have changed my texexec.bat to call texexec.pl. To use newtexexec, makempx should be changed to call texexec --batch --once --nomp --dvi ^^^^^^ Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008