From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28570 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Using metapost figures in context (offlist) Date: Tue, 13 Jun 2006 22:03:02 -0400 (EDT) Message-ID: References: <448DDFEB.9080104@wxs.nl> <448E8794.5030907@wxs.nl> <448F1D10.9010904@wxs.nl> <448F2B2A.2060503@wxs.nl> 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 1150368937 8000 80.91.229.2 (15 Jun 2006 10:55:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Jun 2006 10:55:37 +0000 (UTC) Cc: c Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 15 12:55:34 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 1FqpVS-0005Ss-Tb for gctc-ntg-context-518@m.gmane.org; Thu, 15 Jun 2006 12:55:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 492D712816; Thu, 15 Jun 2006 12:52:11 +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 31285-05-56; Thu, 15 Jun 2006 12:52:10 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9EB7D12834; Thu, 15 Jun 2006 12:51:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AC11D127B1 for ; Wed, 14 Jun 2006 04:03:29 +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 25602-04-4 for ; Wed, 14 Jun 2006 04:03:27 +0200 (CEST) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by ronja.ntg.nl (Postfix) with SMTP id 170D5127A0 for ; Wed, 14 Jun 2006 04:03:25 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY skycaptain.mr.itd.umich.edu ID 448F6E6A.14290.8215 ; 13 Jun 2006 22:03:22 -0400 Original-To: Hans Hagen In-Reply-To: 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:28570 Archived-At: On Tue, 13 Jun 2006, Aditya Mahajan wrote: > On Tue, 13 Jun 2006, Hans Hagen wrote: > >> Aditya Mahajan wrote: >>> On Tue, 13 Jun 2006, Hans Hagen wrote: >>> >>>> Aditya Mahajan wrote: >>>>> On Tue, 13 Jun 2006, Hans Hagen wrote: >>>>> >>>>>> Aditya Mahajan wrote: >>>>>> >>>>>> > n lines deleted >>>>>> >>>>>> I added to texexec: >>>>>> >>>>>> texexec --mpgraphic somefile.mp >>>>>> >>>>>> which will run mp and make a pdf file. >>>>> >>>>> Something is wrong with the new beta. I downloaded the zip and >>>>> regenerated the formats, but only metafun format is created. I am >>>>> attaching the output of >>>>> >>>>> texmfstart --verbose texexec --verbose --make --all >>>> actually, the problem is that the latest pdfetex is not called pdftex; >>>> can you remove all traces or pdftex[.exe] in your bin path and see what >>>> happens then? >>> >>> No pdftex is in the path. >>> >>> I call context by using >>> set PATH=E:\Ruby\bin >>> call E:\isoimage\usr\local\context\tex\setuptex.bat >>> E:\isoimage\usr\local\context\tex >>> >>> so there should not be any mismatched executables. >> ah ... typo in base/tex.rb: >> >> @@pdftex = 'pdftex' # new default, pdfetex is gone >> >> ENV['PATH'].split(File::PATH_SEPARATOR).each do |p| >> ^^^^^^^^^^^^^^^^^^^^^^ >> >> Can you test that? > > Yes, this works. The formats are generated correctly. However, > texmfstart texexec --mpgraphic file.mp > > does not give me a pdf file. I do understand why this is happening. I will > dig into it a bit more and see what is going wrong. In tex.rb def processmpgraphic ... if data =~ /output files written\:\s*(.*)$/mois then .... However, if the mp file contains only one figure, the output in the log is 1 output file written: figures-axis.1 Notice /file/ instead of /files/. So the regex should be changed according. Then everything works. Aditya