1

What is the best(or recommended) figure format when export plots from Mathematica to Tex? *.eps or *.jpg ?

Thanks in advance.

6
  • 5
    Welcome to TeX SX! I would say .eps or .pdf, as they can be zoomed without loss of quality. This being said most plots can easily be done directly in LaTeX, via pstricks or TiKZ-pgf. Commented Aug 16, 2021 at 12:50
  • I'd avoid JPEG for plots (or anything other than pictures). JPEG compression doesn't behave well on anything containing text and results in artifacts. I'd second @Bernard's suggestions: Stick to vector formats if possible. If you have to use a pixel based format, for things containing text you should choose PNG (though it is horribly slow to be included in LaTeX, so better avoid it, or preconvert it to PDF if you only have a PNG file). Commented Aug 16, 2021 at 12:57
  • Thanks for the comments. If I convert many plots to many PDFs, how could I include those PDFs into my TeX file? Commented Aug 16, 2021 at 13:40
  • Use the graphicx package, which has a macro called includegrahipcs. See ctan.org/pkg/graphicx Commented Aug 16, 2021 at 14:19
  • 1
    Note that if you plot something with a large amount of points (several thousands or more) then a pdf plot may have a large file size but more importantly it may cause slow loading, zooming, scrolling of your final document, as all points are rendered individually. In such a case it may be better to use PNG, or to reduce the number of plotted points (you will not be able to see so many points anyway in the plot). Commented Aug 16, 2021 at 20:35

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.