5

When I try to import TeX/LaTeX produced pdf code in Inkscape, then I loose a lot of the interletter and interword spacing, almost all interword spacing is shown wrong, the exponents are not at their normal place, glyphs interlap and so on. Is there anything in the pdf code that TeX produces that can cause that strange behaviour? I use pdftex.

6
  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. Apr 2, 2014 at 7:54
  • 5
    Sounds like an Inkscape problem. Can you make a minimal pdf available somewhere for testing? Apr 2, 2014 at 7:55
  • 1
    Out of interest, why do you want to import TeX generated pdf into Inkscape? Apr 2, 2014 at 8:18
  • 1
    According to the Inkscape FAQ, it should support pdf natively. However in earlier versions they used some kind of converter. What version are you using and what operating systems? Although they should be fully compatible, the implementation might differ a little. Apr 2, 2014 at 8:19
  • 1
    I've experienced issues with spacing in inkscape generally - it doesn't normally make outlines unless you tell it to, but the letter spacing can go wrong quite easily. If you import a .pdf from origin or a .pdf or even a .svg from matplotlib (check font settings) then change the font size by dialog box you will see that the spacing doesn't scale appropriately - letters overlap etc. It may have more work to do on TeX output but I think text is one of the things inkscape doesn't do so well.
    – Chris H
    Apr 2, 2014 at 8:29

2 Answers 2

4
  1. Check if inkscape can access the font used by pdftex.

  2. Try a lower version of pdf (pdftex command \pdfminorversion ).

  3. See what happens when you convert .pdf to .svg with gsview (menu edit--convert to vector format) or get pstoedit and say pstoedit -f plot-svg <input-file> <output-file> (from inkscape wiki).

1
  • 3
    I had the same issue. I found pdf2svgto work perfectly.
    – Mageek
    Jun 8, 2017 at 2:11
2

I believe the problem may be that Inkscape currently imports text from PDF "as text", replacing fonts by fonts available to inkscape.

If this is the origin of your problem, one approach can be to install Latex fonts for Inkscape. You can follow instructions on http://typethinker.blogspot.fr/2008/06/integrating-inkscape-graphics-in-latex.html.

Not the answer you're looking for? Browse other questions tagged .