ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: c <ntg-context@ntg.nl>
Subject: Re: Using metapost figures in context (offlist)
Date: Wed, 14 Jun 2006 09:35:06 +0200	[thread overview]
Message-ID: <448FBC2A.1060402@wxs.nl> (raw)
In-Reply-To: <Pine.WNT.4.63.0606132158360.644@nqvgln>

Aditya Mahajan wrote:
> 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.

                if data =~ /output files* written\:\s*(.*)$/mois then

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

  reply	other threads:[~2006-06-14  7:35 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-12 18:48 Using metapost figures in context Aditya Mahajan
2006-06-12 21:43 ` Hans Hagen
2006-06-12 23:29   ` Aditya Mahajan
2006-06-13  0:16     ` Aditya Mahajan
2006-06-13  8:12     ` Hans Hagen
2006-06-14 15:00       ` Aditya Mahajan
2006-06-13  9:38     ` Hans Hagen
     [not found]       ` <Pine.WNT.4.63.0606131213490.892@nqvgln>
2006-06-13 20:16         ` Using metapost figures in context (offlist) Hans Hagen
2006-06-13 20:33           ` Aditya Mahajan
2006-06-13 21:16             ` Hans Hagen
2006-06-14  1:52               ` Aditya Mahajan
2006-06-14  2:03                 ` Aditya Mahajan
2006-06-14  7:35                   ` Hans Hagen [this message]
2006-06-14 14:41                     ` Aditya Mahajan
2006-06-16  9:47                     ` Uwe Koloska
2006-06-16 10:10                       ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=448FBC2A.1060402@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).