auto-pst-pdf 抛出“MiKTeX GPL Ghostscript 9.05:无法恢复的错误,退出代码 1”

auto-pst-pdf 抛出“MiKTeX GPL Ghostscript 9.05:无法恢复的错误,退出代码 1”

在刚安装 MikTex 2.9 的机器上,每次编译使用auto-pst-pdf包的文件时都会生成以下错误,但随后可以正常生成 PDF。这需要采取任何纠正措施吗?

Process started: pdflatex.exe --shell-escape -synctex=1 -interaction=nonstopmode "forestmwe".tex

Process started: pdflatex.exe --shell-escape -synctex=1 -interaction=nonstopmode "forestmwe".tex

This is dvips(k) 5.993 Copyright 2013 Radical Eye Software (www.radicaleye.com) ' TeX output 2014.06.23:1729' -> forestmwe-autopp.ps <d:/Program Files (x86)/MiKTeX 2.9/dvips/base/tex.pro> <d:/Program Files (x86)/MiKTeX 2.9/dvips/misc/alt-rule.pro> <d:/Program Files (x86)/MiKTeX 2.9/dvips/pstricks/pstricks.pro> <d:/Program Files (x86)/MiKTeX 2.9/dvips/pstricks/pst-algparser.pro> <d:/Program Files (x86)/MiKTeX 2.9/dvips/pst-tools/pst-tools.pro> <d:/Program Files (x86)/MiKTeX 2.9/dvips/pstricks/pst-dots.pro> <C:/Users/user0/AppData/Roaming/MiKTeX/2.9/dvips/pst-barcode/pst-barcode.pro> <d:/Program Files (x86)/MiKTeX 2.9/fonts/enc/dvips/lm/lm-ec.enc> <d:/Program Files (x86)/MiKTeX 2.9/dvips/base/texps.pro> <d:/Program Files (x86)/MiKTeX 2.9/dvips/base/special.pro> <d:/Program Files (x86)/MiKTeX 2.9/dvips/base/color.pro>.

<d:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/lm/lmr5.pfb> <d:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/lm/lmr10.pfb> <d:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/lm/lmr8.pfb>[1] [1]

MiKTeX GPL Ghostscript 9.05: Unrecoverable error, exit code 1

Process exited normally

这个答案https://tex.stackexchange.com/a/119295/37570lpr最初看起来很相似,但我在文件中找不到config.ps,所以不适用。

答案1

总是使用

\usepackage[crop=off]{auto-pst-pdf}% With an onstalled Perl always crop=on!
\ifpdf
  \usepackage{forest}
\else
  \usepackage{pst-barcode}
\fi

相关内容