texlive, Package pdftex.def: File `xx-eps-converted-to.pdf‘ not found: using draft setting.

在latex的编译中,eps文件不会主动转换成pdf,造成的报错。 错误报告 Package pdftex.def: File `xx-eps-conver

在latex的编译中,eps文件不会主动转换成pdf,造成的报错。

错误报告

Package pdftex.def: File `xx-eps-converted-to.pdf' not found: using draft setting.

解决方案

在setting.json的文件里添加 “–shell-escape”,

 "latex-workshop.latex.tools": [{"name": "latexmk","command": "latexmk","args": ["-synctex=1","-interaction=nonstopmode","-file-line-error","--shell-escape","-pdf","%DOC%"]}, {"name": "xelatex","command": "xelatex","args": ["-synctex=1","-interaction=nonstopmode","-file-line-error","%DOC%"]}, {"name": "pdflatex","command": "pdflatex","args": ["--shell-escape","-synctex=1","-interaction=nonstopmode","-file-line-error","%DOC%"]},