
Texmaker의 tikz 외부화 기능을 사용하여 논문을 컴파일하는 동안 몇 가지 문제가 있습니다. 사용자 명령을 만들었습니다.
"D:/laTex/texlive2014/bin/win32/pdflatex.exe" -synctex=1 -interaction=nonstopmode --shell-escape %.tex
나는 서문에서 이것을 사용하고 있습니다 :
\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usepgfplotslibrary{external} %if I comment this
\tikzexternalize[prefix=tikz/] %and this the process goes fine
\usepackage[mmddyyyy]{datetime}
\begin{document}
\today
\begin{tikzpicture}
\begin{axis}[
xlabel=$x$,
ylabel={$f(x) = x^2 - x +4$}
]
% use TeX as calculator:
\addplot {x^2 - x +4};
\end{axis}
\end{tikzpicture}
\end{document}
하지만 어쨌든 그것은 작동하지 않습니다.
오류 창에 다음이 표시됩니다.
Package tikz Error: Sorry, the system call 'pdflatex -halt-on-error -interact
ion=batchmode -jobname "tikz/minexample-figure0" "\def\tikzexternalrealjob{mine
xample}\input{minexample}"' did NOT result in a usable output file 'tikz/minexa
mple-figure0' (expected one of .pdf:.jpg:.jpeg:.png:). Please verify that you h
ave enabled system calls. For pdflatex, this is 'pdflatex -shell-escape'. Somet
imes it is also named 'write 18' or something like that. Or maybe the command s
imply failed? Error messages can be found in 'tikz/minexample-figure0.log'. If
you continue now, I'll try to typeset the picture.
See the tikz package documentation for explanation.
Type H <return> for immediate help.
그런데 이미 생성한 폴더에는 로그 파일이 없습니다.
답변1
texlive 재설치를 해결했는데 cmd pdflatex.exe를 입력해도 아무것도 찾지 못하는 것을 발견했습니다. 이제 작동하고 있으며 질문에 쓴 문자열이 올바른 것입니다. 이는optim=false 없이도 작동합니다.
pdflatex.exe -synctex=1 -interaction=nonstopmode --shell-escape %.tex