Discussion:
xfig drawing in LyX 2.1.0 does not work
Jens Nellesen
2014-07-09 13:39:22 UTC
Permalink
Hello everyone,

after upgrading to LyX 2.1.0 on Win7
I realized that I cannot produce PDF output if an xfig drawing is included in the LyX document. (BUT the preview of the xfig drawing works. Strangely enough, PS output DOES work.)

In a fedora-vbox I do not experience this problem.

Thanks for help in advance.

Kind regards
Jens
Helge Hafting
2014-07-09 15:34:54 UTC
Permalink
Post by Jens Nellesen
Hello everyone,
after upgrading to LyX 2.1.0 on Win7
I realized that I cannot produce PDF output if an xfig drawing is included in the LyX document. (BUT the preview of the xfig drawing works. Strangely enough, PS output DOES work.)
In a fedora-vbox I do not experience this problem.
FIG conversion to EPS and PDF uses different software. One of them might
be set up wrongly. First, try Tools->Reconfigure, and restart lyx.

If that did not help, Tools->Preferences, select "File Handling"
You will find a list of converters between various file formats. You
should find FIG->EPS (which works for you) and FIG->PDFTEX which
doesn't. Check that the software mentioned is installed, and is
available in the PATH.

In my case, the converter is
python -tt $$s/scripts/fig2pdftex.py $$i $$o

So "python" must exist in the path somewhere. (Try typing python on the
command line. If it fails with unknown command, then you know why it
doesn't work for LyX.) Install the software. If it is installed, either
fix the PATH setting, or give the full path to the converter instead of
just the filename. (I.e. C:\programs\something\python )
Jens Nellesen
2014-10-02 23:22:43 UTC
Permalink
FIG conversion to EPS and PDF uses different software. One of them might be set up
wrongly. First, try Tools->Reconfigure, and restart lyx.
If that did not help, Tools->Preferences, select "File Handling"
You will find a list of converters between various file formats. You should find
FIG->EPS (which works for you) and FIG->PDFTEX which doesn't. Check that the software
mentioned is installed, and is available in the PATH.
In my case, the converter is
python -tt $$s/scripts/fig2pdftex.py $$i $$o
So "python" must exist in the path somewhere. (Try typing python on the command line.
If it fails with unknown command, then you know why it doesn't work for LyX.) Install
the software. If it is installed, either fix the PATH setting, or give the full path
to the converter instead of just the filename. (I.e. C:\programs\something\python )
I checked all settings in Tools->Preferences->File Handling in a native Win7 LyX installation (version 2.1.2)
but I could not find any mistake.

These are the converter commands:
for FIG->EPS: fig2dev -L eps $$i $$o
for FIG->PDFTEX: python -tt $$s/scripts/fig2pdftex.py $$i $$o

As stated before, the preview in LyX works perfectly.
If I hit the shortcut key CTRL+T for PS preview I realize a command beginning with "python -tt ..." in the status bar and immediately the ghostview is launched to display the temporarily produced PS file.
In LyX the path prefix starts with "$LyXDir\bin;$LyXDir\Python;$LyXDir\Python\Lib; ... ".

However, if I try to generate the PDF file I always get the pdfTeX error "... .pdftex_t' not found."

As stated before, in a fedora-vbox I do not experience this problem (with LyX 2.1.1).

Thanks for help in advance.

Jens
Helge Hafting
2014-10-03 14:17:14 UTC
Permalink
Post by Jens Nellesen
I checked all settings in Tools->Preferences->File Handling in a native Win7 LyX installation (version 2.1.2)
but I could not find any mistake.
for FIG->EPS: fig2dev -L eps $$i $$o
for FIG->PDFTEX: python -tt $$s/scripts/fig2pdftex.py $$i $$o
As stated before, the preview in LyX works perfectly.
If I hit the shortcut key CTRL+T for PS preview I realize a command beginning with "python -tt ..." in the status bar and immediately the ghostview is launched to display the temporarily produced PS file.
In LyX the path prefix starts with "$LyXDir\bin;$LyXDir\Python;$LyXDir\Python\Lib; ... ".
However, if I try to generate the PDF file I always get the pdfTeX error "... .pdftex_t' not found."
As stated before, in a fedora-vbox I do not experience this problem (with LyX 2.1.1).
Thanks for help in advance.
Jens
I have looked at the conversion script fig2pdftex.py
I am not sure what the problem is, but the script seems to rely on a
sufficient new version of "fig2dev".
You may try the command
fig2dev -h
This yields a few pages of help text. It should mention support for
"pdftex_t". If it doesn't, then your fig2dev migh be too old.

Or there may be a bug so this doesn't work with windows. Do windows
users use xfig much?

Helge Hafting

Loading...