!包 pdftex.def 错误:找不到文件“./filename-eps-converted-to.pdf”

Mik*_*asa 6 latex image pdflatex

当我尝试编译它时

\documentclass{jprr}
\usepackage{url}
\usepackage{graphicx}
\usepackage[outdir=./]{epstopdf}
\begin{document}
\begin{figure}
\centering
\includegraphics{/home/name/taiwan.eps}
\end{figure}
\end{document}
Run Code Online (Sandbox Code Playgroud)

我一直收到这个错误

! Package pdftex.def Error: File `./taiwan-eps-converted-to.pdf' not found.

See the pdftex.def package documentation for explanation.
Type  H <return>  for immediate help.
...                                              
Run Code Online (Sandbox Code Playgroud)

我正在使用 Textworks,pdfLaTeX。

请帮忙。

小智 7

在 ubuntu 上,安装 texlive-font-utils 包为我解决了这个问题。

sudo apt install texlive-font-utils
Run Code Online (Sandbox Code Playgroud)

在“converted-to.pdf' not found”错误之前,我注意到“repstopf: not found system returned with code 32512”错误。我尝试运行“repstopf”,shell 给了我解决方案:

$ repstopdf

Command 'repstopdf' not found, but can be installed with:

sudo apt install texlive-font-utils
Run Code Online (Sandbox Code Playgroud)