我有一个如下的 MWE,我需要构建一个表面来将其外部化:
\documentclass{article}
\usepackage{tikz,pgfplots}
\usetikzlibrary{external}
\tikzexternalize[prefix=tikz/]
\begin{document}
\begin{tikzpicture}
\begin{axis}[
]
\addplot3[
surf,
%shader=interp,
domain=-2.3:2.3,
samples=90,
domain y=-2.3:2.3,
]
{x*exp(-x^2-y^2)};
\end{axis}
\end{tikzpicture}
\end{document}
我在其中定义了samples=90
。 在 overleaf 中,运行良好,结果如下:
但是,我在我的机器上编译时出现以下错误:
! Package tikz Error: Sorry, the system call 'pdflatex -shell-escape -halt-on-e
rror -interaction=batchmode -jobname "tikz/Externando_figuras-figure0" "\def\ti
kzexternalrealjob{Externando_figuras}\input{Externando_figuras}"' did NOT resul
t in a usable output file 'tikz/Externando_figuras-figure0' (expected one of .p
df:.jpg:.jpeg:.png:). Please verify that you have enabled system calls. For pdf
latex, 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 'tikz/Externando_figuras-figure0.log'. If you continue now, I'll tr
y to typeset the picture.
我的 texmaker 的配置如下:
是否需要修改某些选项或修改所提供代码中的任何内容?感谢您的帮助。