Texmaker and TeXstudioInclusion of XFig Files

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Post Reply
Alaza
Posts: 5
Joined: Tue Dec 20, 2011 9:42 am

Inclusion of XFig Files

Post by Alaza »

Hi guys.

Is there any way that I can directly include .fig files from XFig in Texmaker?

I tried the figlatex package as a part of the latex-make bundle. However, when I do this it seems that Texmaker looks for a PDF version of my figure.

Thank you :)

Tore.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

Re: Inclusion of XFig Files

Post by mas »

Do you have transfig installed on your system? Generally, installing xfig does not pull in transfig. You have to install it separately.

My suggestion: Shift to TikZ or Inkscape for drawings.

Regards.

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
Alaza
Posts: 5
Joined: Tue Dec 20, 2011 9:42 am

Inclusion of XFig Files

Post by Alaza »

mas wrote:Do you have transfig installed on your system? Generally, installing xfig does not pull in transfig. You have to install it separately.

My suggestion: Shift to TikZ or Inkscape for drawings.

Regards.
I'm not sure whether I have transfig, as I'm using XFig on my work Ubuntu desktop and Texmaker on my own laptop Windows laptop.

But what would transfig gain me? Export options? I can already export to .eps and so forth, however I have experienced some weird issues in that regard, which would be helped by not having the conversion step.
mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

Inclusion of XFig Files

Post by mas »

Alaza wrote: But what would transfig gain me? Export options? I can already export to .eps and so forth,
Transfig is the program which does the conversion. From the README of the latex-make,

Code: Select all

* figlatex.sty: a LaTeX package to easily insert xfig figures (with
  \includegraphics{file.fig}). It can interact with LaTeX.mk so that the
  latter automatically invokes transfig if needed.
Transfig is needed if Xfig files need to be included directly.
Alaza wrote: however I have experienced some weird issues in that regard, which would be helped by not having the conversion step.
Can you elaborate?

Regards.

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
Alaza
Posts: 5
Joined: Tue Dec 20, 2011 9:42 am

Re: Inclusion of XFig Files

Post by Alaza »

Aha, but would that mean that I have to install the whole latex-make package?

The experienced having lines in my drawings in my printout of my PDF document, which wasn't in my xfig or eps drawing. To specify:

Draw in Xfig. Save as .fig -> Convert to eps. Both the .fig file and .eps are identical. Then export to .eps and display using Evince and in compiled PDF document using Texmaker. Everything is fine, and the drawings are identical. But when printing the PDF document to a physical paper, I suddenly had a three sided square, which was four sided.

I did as my boss about it, and he said that it's actually a known bug for many years back in the .eps conversion.

That's why I wanted to include .fig directly. :)
mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

Inclusion of XFig Files

Post by mas »

Alaza wrote: Draw in Xfig. Save as .fig -> Convert to eps. Both the .fig file and .eps are identical. Then export to .eps and display using Evince and in compiled PDF document using Texmaker. Everything is fine, and the drawings are identical. But when printing the PDF document to a physical paper, I suddenly had a three sided square, which was four sided.
Can you post the fig file which is giving you the problem on conversion?

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
Post Reply