I'm currently using Matlab R2012a + Inkscape 0.48 + Texlive 2014 + Texmaker 4.4.2 (W7 64) to produce my scientific documents... Basically I create figures in Matlab, export them in .eps, edit them in Inkscape and export my "creation" in eps. I compile my tex files like this : Latex + Bibtex + Latex (x2) + dvips + ps2pdf. I use GhostScript 9.10.

With one of my figures I encounter an issue. The output of ps2pdf produces wrong colors. Furthermore, the bounding box is too big (but I can edit the file to fix it up)... When I export from Inkscape directly in pdf, I have no unsolved problem (except that inkscape set the Interpolate property to true, so I have to edit the eps file to set it false)

Bad ps2pdf output:

ps2pdf output (wrong colors and bounding box)

Direct pdf export from Inkscape:

Inkscape pdf output

I do not want to solve my problem by using a non-vector format. Please could somebody help me (I apologize for my poor english) ? Thanks...

  • Welcome to TeX.Sx. There are alternatives to postscript which are still vector format. Are you okay with those? – 1010011010 Mar 21 '15 at 20:01
  • I don't know... I thought that the way I compile my document I have to use .eps for all my figures, am I wrong ? – user74680 Mar 21 '15 at 20:07
  • 1
    Can you check whether the color look different in Acrobat reader and another PDF reader (such as xpdf or evince)? I recall that there was a problem with the Acrobat Reader with some PDFs produced by LaTeX. The problem is fixable, however. – DCTLib Mar 21 '15 at 20:24
  • 1
    It is not because these are eps files that they store information in a vector format. Raster images can be encapsulated in an eps file. – pluton Mar 21 '15 at 23:07
  • 1
    There are two ways to create a heatmap in Matlab: image & Co., which results in a bitmap embedded in the vector graphics, or patch, surf etc., which results in a vector rectangle created for every "pixel". Normally the first is the better approach, but maybe in your case the latter is more robust when edited in Inkscape. – Also, the pdf format does support compression of embedded bitmaps, so maybe one program along the chain exactly applies jpeg compression. – A. Donda Mar 22 '15 at 14:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.