[texhax] Problem with XFig picture.

Aethon aethon at gmail.com
Fri Jan 20 01:56:15 CET 2006


Hi,

I was working on some homework, and was using XFig to make a figure. I
imported it using the graphicx package  invoked by
"\includegraphics[scale=0.69]{hw1-3}", with hw1-3.fig being the name
of my FIG from XFig. I use rubber[0] to invoke invoke all the various
programs, which including transfig, latex, and finally dvips. When I
opened the ps in KGhostView, instead of the graphic as I expected was
a box with thin border and "hw1-3.eps" in it. I then told rubber to
output to PDF and got the same result. At this point I tried to make a
minimal test case.

----test.tex----
\documentclass[letterpaper,12pt,draft]{article}
\usepackage{graphicx}
\begin{document}
\begin{center}
  \includegraphics{figure}
\end{center}
\end{document}
----test.tex----
----figure.fig----
#FIG 3.2  Produced by xfig version 3.2.5-alpha5
Landscape
Center
Metric
A4
100.00
Single
-2
1200 2
5 1 0 1 0 7 50 -1 -1 0.000 0 1 0 0 4394.792 5521.749 3015 5805 4365
6930 5670 6120
1 3 0 1 0 7 50 -1 -1 0.000 1 0.0000 4500 5310 2520 2520 4500 5310 4500 2790
1 3 0 1 0 7 50 -1 -1 0.000 1 0.0000 3510 4500 363 363 3510 4500 3555 4140
1 3 0 1 0 7 50 -1 -1 0.000 1 0.0000 5400 4545 415 415 5400 4545 5490 4140
----figure.fig----

I then ran rubber to output to ps/pdf and obtained the same error.
This is the output from rubber:
---test with output ps----
$ rubber -vv -p -W all test
This is Rubber version 1.0.
parsing test.tex
built-in module graphicx registered
[graphics] graphics `figure' found
dependencies: ['test.tex', 'figure.eps']
built-in module dvips registered
converting figure.fig to EPS...
executing: fig2dev -L eps figure.fig figure.eps
process 12447 (fig2dev) returned 0
checking if compiling is necessary...
building additional files...
compiling test.tex...
executing: latex \nonstopmode \input{test.tex}
process 12449 (latex) returned 0
running post-compilation scripts...
running dvips on test.dvi...
executing: dvips -o test.ps test.dvi
process 12451 (dvips) returned 0
---test with output ps----
I then deleted all files except for test.tex and figure.fig
----test with output pdf----
$ rubber -vv -d -W all test
This is Rubber version 1.0.
built-in module pdftex registered
parsing test.tex
built-in module graphicx registered
[graphics] graphics `figure' found
dependencies: ['test.tex', 'figure.pdf']
converting figure.fig to PDF...
executing: fig2dev -L pdf figure.fig figure.pdf
process 12466 (fig2dev) returned 0
checking if compiling is necessary...
building additional files...
compiling test.tex...
executing: pdflatex \nonstopmode \input{test.tex}
process 12469 (pdflatex) returned 0
running post-compilation scripts...
----test with output pdf----

I'm running Debian (amd64) using tetex (3.0-13). Some version numbers
in case they are relevant:

$ latex --version
pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4)
kpathsea version 3.5.4
<...snip copyright info...>
$ dvips --version
dvips(k) 5.95a
kpathsea version 3.5.4
<...snip copyright info...>
$ gs --version
8.15

According to apt, the version of transfig is 1:3.2.5-alpha7-1

Does anyone have any ideas why the graphic is not showing up?

Thanks,
Will Mitchell

[0] http://www.pps.jussieu.fr/~beffara/soft/rubber/



More information about the texhax mailing list