
要重現該錯誤:
建立
b.eps
包含任何內容的文件。例如,以下命令將建立b.eps
:asy -noV -o b -c 'draw((0, 0)--(1, 1));'
建立資料夾
./d/
,放入b.eps
其中。./a.tex
在目前目錄中建立內容:\documentclass{article} \usepackage{graphicx} \begin{document} \graphicspath{{d/}} \includegraphics{b} \end{document}
編譯用
pdflatex --shell-escape --recorder --output-directory=d/ a.tex
.請參閱錯誤。
我相信發生錯誤的原因是:當圖形位於輸出目錄中時,LaTeX 無法正確確定文件.eps
相對於當前目錄的路徑,以便傳遞到epstopdf
--- 因此,它無法轉換為pdf
.
這個問題有可能解決嗎?
作為解決方法,可以明確指定圖形的路徑:
\includegraphics{d/b}
但我也想知道是否有適當的解決方案。
上下文是我正在使用asypictureB
帶有一些補丁的包,以使其能夠與任意一起工作--output-directory
,並且該.asy
文件當然是在 中創建的output-directory
,這使得.eps
也在那裡生成。