Dear All,
I have been using xfig for ages, but unfortunately, with my new Mac PC, I am not able to insert figures. Hope this problem can be fixed soon. Let me share with you a script (see attachment) that converts xfig with latex stuff inside into a clean pdf image. Enjoy! The synthax is:
Note, though, that the epic, eepic, pict2e, pstricks and tikz output drivers of fig2dev have the "-P" option, to produce a complete document. With tikz output, any fig file can be rendered, while, e.g., the pict2e output can not fill objects with patterns. With epic and eepic, postscript fonts are not used. After creating a figure, try
The commands I suggested rely on latex (pdflatex, lualatex, xelatex, ...) to be able to read the image format. png, pdf, jpeg might work, but not tiff.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear All,
I have been using xfig for ages, but unfortunately, with my new Mac PC, I am not able to insert figures. Hope this problem can be fixed soon. Let me share with you a script (see attachment) that converts xfig with latex stuff inside into a clean pdf image. Enjoy! The synthax is:
./xfig2pdf file_name.fig
and it generates the equivalent file_name.pdf
Note, though, that the epic, eepic, pict2e, pstricks and tikz output drivers of fig2dev have the "-P" option, to produce a complete document. With tikz output, any fig file can be rendered, while, e.g., the pict2e output can not fill objects with patterns. With epic and eepic, postscript fonts are not used. After creating a figure, try
fig2dev -L tikz -P drawing.fig drawing.tex
lualatex drawing.tex
to generate drawing.pdf.
! ==> Fatal error occurred, no output PDF file produced!%
the script I suggested worked great for the same xfig file, which has latex math, a tiff image and arrows and squares.
The commands I suggested rely on latex (pdflatex, lualatex, xelatex, ...) to be able to read the image format. png, pdf, jpeg might work, but not tiff.
In this sense, the script I shared with the community looks more general.