Eps 數字隨 XeTeX 移動

Eps 數字隨 XeTeX 移動

我有一個 .eps 圖形,是用 Julia 中的 PyPlot (~matplotlib) 產生的。我已將其轉換為 pdf,epstopdf fig.eps當我將其包含在文件中時,它會向上和向右移動。最小程式碼:

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}[t]
\fbox{\includegraphics[width=8cm]{fig.eps}}
\fbox{\includegraphics[width=8cm]{fig.pdf}}
\end{figure}
\end{document}

.eps 檔案不會被 xetex 自動轉​​換為 .pdf (我不知道為什麼)。 .pdf 檔案已正確放置,但我不想在乳膠之外轉換我的 .eps 檔案。 .eps 文件本身就有問題,我嘗試使用舊的 .eps 文件,它工作得很好,但我無法輸出新的 .eps 文件,PyPlot 可以正確顯示(我不知道為什麼)。

輸出: 在此輸入影像描述

原始.eps:https://ufile.io/2pfdk 轉換後的.pdf:https://ufile.io/513ee

有沒有辦法讓 xetex 自動將 .eps 轉換為 .pdf 以便它們正確顯示?或者有沒有辦法修復 PyPlot 輸出的錯誤 .eps 檔案? (與乳膠無關......)

相關內容