Re: [NTG-context] Using metapost figures in context (offlist)
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?
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 -----------------------------------------------------------------
On Tue, 13 Jun 2006, Hans Hagen 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
Aditya Mahajan wrote: 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. Aditya
Aditya Mahajan wrote:
On Tue, 13 Jun 2006, Hans Hagen 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
Aditya Mahajan wrote: 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? 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 -----------------------------------------------------------------
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. Aditya
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
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:
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
Aditya Mahajan wrote: 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 -----------------------------------------------------------------
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
Am Mittwoch, 14. Juni 2006 09:35 schrieb Hans Hagen:
if data =~ /output files* written\:\s*(.*)$/mois then
I am no ruby programmer, but although the above works, it should be if data =~ /output files? written ... Uwe
Uwe Koloska wrote:
Am Mittwoch, 14. Juni 2006 09:35 schrieb Hans Hagen:
if data =~ /output files* written\:\s*(.*)$/mois then
I am no ruby programmer, but although the above works, it should be if data =~ /output files? written ...
well, s* means zero or more s's so we also catch future typos in metapost, i.e. output filesssss -) 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 -----------------------------------------------------------------
participants (3)
-
Aditya Mahajan
-
Hans Hagen
-
Uwe Koloska