[NTG-context] Using metapost figures in context (offlist)
Aditya Mahajan
adityam at umich.edu
Wed Jun 14 16:41:46 CEST 2006
On Wed, 14 Jun 2006, Hans Hagen wrote:
> 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
>
That does the trick. --mpgraphic is working correctly. However, there
is no message on the console saying that a pdf file is created. Can
you add
report ("{#name}.#{number} converted to #{filename}.#{number}.pdf")
and
report ("#{name}.#{number} converted to #{filename}.pdf")
after File.silentrename lines.
Aditya
More information about the ntg-context
mailing list