From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32520 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Problem using mptopdf with Metapost containing LaTeX Date: Thu, 04 Jan 2007 13:55:21 +0000 Message-ID: References: <459CC992.80908@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1167921110 3062 80.91.229.12 (4 Jan 2007 14:31:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Jan 2007 14:31:50 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 04 15:31:48 2007 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 lo.gmane.org with esmtp (Exim 4.50) id 1H2TdD-0005PP-Rm for gctc-ntg-context-518@m.gmane.org; Thu, 04 Jan 2007 15:31:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 25AA01FBE2; Thu, 4 Jan 2007 15:28:52 +0100 (CET) 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 32229-02-2; Thu, 4 Jan 2007 15:28:46 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D36191FFE5; Thu, 4 Jan 2007 15:28:45 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 952CA20093 for ; Thu, 4 Jan 2007 15:28:43 +0100 (CET) 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 32229-02 for ; Thu, 4 Jan 2007 15:28:38 +0100 (CET) Original-Received: from mraos.ra.phy.cam.ac.uk (mraos.ra.phy.cam.ac.uk [131.111.48.8]) by ronja.ntg.nl (Postfix) with ESMTP id E5E151FBE2 for ; Thu, 4 Jan 2007 14:52:34 +0100 (CET) Original-Received: from skye.ra.phy.cam.ac.uk ([131.111.48.158] ident=mail) by mraos.ra.phy.cam.ac.uk with esmtp (Exim 4.43) id 1H2T3x-00014G-EZ; Thu, 04 Jan 2007 13:55:21 +0000 Original-Received: from sanjoy by skye.ra.phy.cam.ac.uk with local (Exim 3.36 #1) id 1H2T3x-0002xJ-00; Thu, 04 Jan 2007 13:55:21 +0000 Original-To: mailing list for ConTeXt users In-Reply-To: Your message of "Thu, 04 Jan 2007 10:32:02 +0100." <459CC992.80908@wxs.nl> 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:32520 Archived-At: > does adding a --latex directive help? I also tried 'TEX=latex mptopdf thatfile.mp' but it didn't work, though 'TEX=latex mpost thatfile.mp' worked. Not sure if any of the included post to c.t.t. is relevant, although I can no longer reproduce this part -- not sure why: But setting the TEX env variable worked (without the %& line): TEX=latex mptopdf yourfile.mp -Sanjoy =========================================================== Date: 03 Jan 2007 16:47:11 GMT From: Sanjoy Mahajan Subject: Re: Problems using mptopdf To: comp.text.tex > I tried to add '%&LaTeX' after the verbatimtex line but it doesn't > change anything. Did you try %&latex ? Not sure if the MacOS filesystem is case sensitive, but on regular Unix/Linux it matters. Does 'mpost yourfile.mp' work? Even when I put in %&latex (lowercase) after the verbatimtex, it didn't work at first here (Ubuntu 6.10, mostly TeXLive 2005 with 2006.12.27 context, mpost 0.993, i386). This subcommand failed: tex --parse-first-line --interaction=nonstopmode mpxerr.tex Running it by hand shows where the failure is: This is TeXk, Version 3.141592 (Web2C 7.5.5) %&-line parsing enabled. ---! /var/lib/texmf/web2c/latex.fmt was written by pdftex (Fatal format file error; I'm stymied) The problem is that latex is nowadays a symlink to pdftex (or pdfetex) so when latex.fmt was generated, it was generated by pdfetex. Whereas 'tex' is still regular (non-pdf) tex, so when it reads the '%&latex' line, it loads latex.fmt and cannot understand it. So I made tex a symlink to pdfetex, and 'mpost yourfile.mp' worked then. But 'mptopdf yourfile.mp' fails in the same place as for you. Not sure why. But setting the TEX env variable worked (without the %& line): TEX=latex mptopdf yourfile.mp You might post your example to the context mailing list (ntg-context@ntg.nl), where you will get more expert assistance. -Sanjoy `Not all those who wander are lost.' (J.R.R. Tolkien)