![TikZ externalize 未将 shell-escape 视为已启用](https://linux22.com/image/331160/TikZ%20externalize%20%E6%9C%AA%E5%B0%86%20shell-escape%20%E8%A7%86%E4%B8%BA%E5%B7%B2%E5%90%AF%E7%94%A8.png)
我正在尝试使用 TikZ externalize 和 eps2pdf 编译文档,这两者都需要 shell-escape 才能工作。我正在使用带有 AUCTeX 的 Emacs,并且想单独使用编辑器。但是,以下各种各样的启用 shell 逃逸的方法仍然给我众所周知的
ERROR: Package tikz Error: Sorry, the system call 'pdflatex -halt-on-error -interaction=batchmode -jobname "Article-figure0" "\def\tikzexternalrealjob{Article}\input{Article}"' did NOT result in a usable output file 'Article-figure0' (expected one of .pdf:.jpg:.jpeg:.png:). Please verify that you have enabled system calls. For pdflatex, this is 'pdflatex -shell-escape'. Sometimes it is also named 'write 18' or something like that. Or maybe the command simply failed? Error messages can be found in 'Article-figure0.log'. If you continue now, I'll try to typeset the picture.
当我从命令行运行时,一切正常pdflatex -shell-escape Article.tex
。我已经测试过 shell-escape 是否真正启用,方法是使用
\verb|\pdfshellescape|:
\ifnum\pdfshellescape=1
true
\else
false
\fi
在我的 Tex 文档中,当我启用 shell-escape 时,它始终显示 1。
我运行的是 Windows 7 Enterprise、Emacs 24.4.1、TeXLive 2014
有谁能建议问题可能出在哪里吗?