1

I am trying to compile a tex file containing an eps image using XeLaTeX, here is a minimal example:

\documentclass[]{article}
\usepackage{graphicx}

\begin{document}

\begin{figure}
    \centering
    \includegraphics[width=0.7\linewidth]{sim}
    \caption{}
    \label{fig:sim}
\end{figure}

\end{document}

On my friend's laptop(Same Windows 10, The very same TeXLive and XeLaTeX version) it works OK but on my laptop, it produces a blank figure as below:

blank figure

I am using XeLaTeX with the following build command:

xelatex.exe -synctex=1 -interaction=nonstopmode %.tex
  • I’m not sure this is your problem but do you have Ghostscript installed on you System? – Herb Schulz Jan 7 at 19:10
  • @HerbSchulz I didn't. I just installed it and the problem is still here. – MH.Tavakoli Bina Jan 7 at 19:14
  • First your title says Xelatex (good) which will work showing a blank figure if sim.eps is blank but body of question says Xetex which wont work and wil give other errors, suggest you find an.eps file you know is good and place that as sim.eps in same directory as .tex – user170109 Jan 7 at 19:52
  • @KJO sim.eps is not a blank eps, It appears blank in the generated pdf file though. I've compiled this example on two other PC's, none of them make it blank, just my own PC has got this problem. – MH.Tavakoli Bina Jan 7 at 21:02
  • Helps to know editor (version) my default included texworks will show eps but some other editors may not, Also are there any errors appearing from running xelatex via command line from the tex folder ? see tex.stackexchange.com/questions/439958/… – user170109 Jan 7 at 21:16

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.