Home › Category Archives › mactex

Why OSX Texstudio cannot compile this?

I have tried the following MWE on Windows 7 and OSX (Mavericks) with different front ends. Windows Tex system is Miktex 2.9 and on OSX it is MacTeX 2013. In all cases PdfLaTeX is run and write18 (or shell escape) is enabled. The result:

  1. Winedt+Miktex on windows, code compiles with no problem.
  2. Texstudio+Miktex on windows, code compiles with no problem.
  3. Texmaker+Miktex on windows, code compiles with no problem.
  4. Texshop+MacTex on Mavericks, code compiles with no problem.
  5. Texmaker+MacTeX on Mavericks, code compiles with no problem.
  6. Texstudio+MacTeX on Mavericks, code does not compile correctly, the figure does not show and is replaced by an empty square.

My guess is that there is something wrong with the way auto-pst-pdf operates when it is called via Texstudio under OSX. Probably in the first run that latex+dvips+ps2pdf is called via shell.

Can anyone verify this odd behavior of Texstudio under OSX or suggest a solution? Here is the MWE:

\documentclass{article}
\usepackage{graphicx}
\usepackage{microtype}
\usepackage{auto-pst-pdf}
\begin{document}
This is a test. 
\bigskip
\includegraphics[width=5in]{example-image-a.eps}
\end{document}