
Ich habe einige Probleme beim Kompilieren meiner Abschlussarbeit mit der Tikz-Externalisierungsfunktion in Texmaker. Ich habe den Benutzerbefehl erstellt:
"D:/laTex/texlive2014/bin/win32/pdflatex.exe" -synctex=1 -interaction=nonstopmode --shell-escape %.tex
Ich verwende dies in meiner Präambel:
\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}
aber es funktioniert trotzdem nicht.
Ich erhalte Folgendes im Fehlerfenster:
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.
aber in dem Ordner, den ich bereits erstellt habe, befindet sich keine Protokolldatei.
Antwort1
Ich habe das Problem gelöst, indem ich Texlive neu installiert habe. Dabei ist mir aufgefallen, dass die Eingabe des Befehls pdflatex.exe nichts ergab. Jetzt funktioniert es und die Zeichenfolge, die ich in der Frage geschrieben habe, ist die richtige. Es funktioniert sogar ohne optimize=false.
pdflatex.exe -synctex=1 -interaction=nonstopmode --shell-escape %.tex