Shell Escape für tikzexternalize in Texmaker

Editoren wie TexWorks, TeXmaker, TeXstudio, TeXnicCenter, Kile, LyX, vi, Emacs und Co.


Greenwich

Shell Escape für tikzexternalize in Texmaker

Beitrag von Greenwich »

Hallo zusammen,

ich verwende auf meinem Mac TexLive-2015 und Texmaker. Da ich tikzexternalize für pgfplots verwenden möchte, muss ich Shell Escape bei der Kompilierung erlauben.

Für folgendes Minimalbeispiel
\documentclass[a4paper,12pt]{scrreprt}
\usepackage[english,ngerman]{babel}	
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}	

\usepackage{pgfplots}				
\pgfplotsset{compat=1.12}

\usepgfplotslibrary{external}
\tikzexternalize

\begin{document}

\begin{tikzpicture}
	\begin{axis}[stack plots=y,stack dir=minus,every axis plot/.append style=very thick]
		\addplot coordinates {(0,1) (0.5,1) (1,1)};
		\addplot coordinates {(0,1) (0.5,1) (1,1)};
		\addplot coordinates {(0,1) (0.5,1) (1,1)};
	\end{axis}
\end{tikzpicture}

\end{document}
funktioniert das mit dem Kommandozeilenbefehl
pdflatex --shell-escape test.tex
auch hervorragend.

Ich möchte aber wie gewohnt in Texmaker kompilieren und habe deshalb nach Lektüre etlicher Forenbeiträge in den Einstellungen zum PdfLaTeX-Befehl aus
"/Library/TeX/texbin/pdflatex" -synctex=1 -interaction=nonstopmode %.tex
"/Library/TeX/texbin/pdflatex" -synctex=1 -interaction=nonstopmode --shell-escape %.tex
gemacht. Darauf erhalte ich aber folgende Fehlermeldung:
! Package tikz Error: Sorry, the system call 'pdflatex -shell-escape -halt-on-e
rror -interaction=batchmode -jobname "test-figure0" "\def\tikzexternalrealjob{t
est}\input{test}"' did NOT result in a usable output file 'test-figure0' (expec
ted one of .pdf:.jpg:.jpeg:.png:). Please verify that you have enabled system c
alls. For pdflatex, this is 'pdflatex -shell-escape'. Sometimes it is also name
d 'write 18' or something like that. Or maybe the command simply failed? Error
messages can be found in 'test-figure0.log'. If you continue now, I'll try to t
ypeset the picture.
See the tikz package documentation for explanation.
Ob ein oder zwei Striche vor dem Kommando macht keinen Unterschied. Woran könnte es denn jetzt noch liegen?!

Für jede Hilfe wäre ich sehr dankbar.

Greenwich

Beitrag von Greenwich »

Entschuldigung, die Frage hätte wahrscheinlich in das Editoren-Unterforum gesollt.

Greenwich

Beitrag von Greenwich »

...und erledigt. Es lag an einer alten Version von Texmaker, die falsche Pfadangaben zum LaTeX-Pfad in OS X El Capitan hatte.

Antworten