我正在处理一个相当大的文档,但 tikz externalize 已停止工作。由于我一直在处理格式问题,我希望这是我的问题,而不是故障。以下 MWE 给出错误。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize[]
\begin{document}
\pagestyle{empty}
\begin{tikzpicture}[domain=0:4]
\draw[very thin,color=gray] (-0.1,-1.1) grid (3.9,3.9);
\draw[->] (-0.2,0) -- (4.2,0) node[right] {$x$};
\draw[->] (0,-1.2) -- (0,4.2) node[above] {$f(x)$};
\draw[color=red] plot[id=x] function{x}
node[right] {$f(x) =x$};
\end{tikzpicture}
Text.
\end{document}
这是它给出的错误
Sorry, the system call 'pdflatex -shell-escape -halt-on-error -
interaction=batchmode -jobname ""Honors Template"-figure0"
"\def\tikzexternalrealjob{"Honors Template"}\input{"Honors Template"}"'
did NOT result in a usable output file '"Honors Template"-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
'"Honors Template"-figure0.log'. If you continue now, I'll try
to typeset the picture.
我在 OS X 上使用(最新版)Texpad。我始终允许 shell 转义,为此项目启用了 shell 转义,并禁用了隐藏文件。任何帮助都非常感谢。