views:

361

answers:

4
+1  Q: 

Inkscape + pdftex?

I have a small drawing in Inkscape and I want to embed it in a LaTeX document which I compile using pdftex. pdftex seem to have an oddity of not accepting .eps. infact if what I understood is correct the only vector graphics format it accepts is pdf. When I save my drawing in Inkscape as pdf then what I get is a pdf with a full page with my drawing in the upper corner.
Is there a way to import an Inkscape drawing to pdftex and ignoring this page size? Or do I need to start fiddling with the page settings to make the page size exactly fit the size of my drawing?

+1  A: 

Are you giving the optional scaling parameters to \includegraphics? PDF handles bounding boxes differently from encapsulated postscript, and auto-sizing does not seem to work as well.

dmckee
+1  A: 

As far as I know, you have to adjust the bounding box resp. paper size in your PDF. There are tools like eps2pdf to convert EPS to PDF with the same bounding box.

Svante
+2  A: 

Yes, pdftex does not accept eps.

I have used inkscape to make figures that I incorporate into .tex documents that I then process with pdflatex. And yes, I set the page size in inkscape so that the figure fits.

You could also try to export to .eps from inkscape, then convert to pdf with the "epstopdf" tool.

janneb
Are you *sure* the bringing in actual experience with the actual problem at hand is allowed around here?
dmckee
+3  A: 

So it turns out that Inkscape has a button on the Document properties titled "Fit page to selection" which makes this easier. Oh well.

shoosh