Probleme zwischen includepdf{test} und pgfplot
Verfasst: Fr 2. Aug 2013, 18:14
Hallo,
ich möchte mithilfe von pgfplots Grafiken als pdf-Dateien erstellen. Dazu benutze ich folgenden Code (Minimalbeispiel), und das ein aktuell geupdatetes MikTex 2.9
und rufe pdflatex mit dem Befehl "pdflatex -shell-escape test.tex auf.
Das funktioniert und ich erhalte die Grafik als externe Datei test-figure0.pdf
Benutze ich allerdings den Befehl \includepdf{test}, so funktioniert die externe pdf-Ausgabe nicht mehr und ich erhalte folgende Fehlermeldung:
===== 'mode=convert with system call': Invoking 'pdflatex -enable-write18 -halt
-on-error -interaction=batchmode -jobname "test02-figure0" "\def\tikzexternalre
aljob{test02}\input{test02}"' ========
runsystem(pdflatex -enable-write18 -halt-on-error -interaction=batchmode -jobna
me "test02-figure0" "\def\tikzexternalrealjob{test02}\input{test02}")...execute
d.
! Package tikz Error: Sorry, the system call 'pdflatex -enable-write18 -halt-on
-error -interaction=batchmode -jobname "test02-figure0" "\def\tikzexternalrealj
ob{test02}\input{test02}"' did NOT result in a usable output file 'test02-figur
e0' (expected one of .pdf:.jpg:.jpeg:.png:). Please verify that you have enable
d 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 fail
ed? Error messages can be found in 'test02-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.
...
Für Hilfe/eventuelle Ratschläge bin ich dankbar.
Grüße
ich möchte mithilfe von pgfplots Grafiken als pdf-Dateien erstellen. Dazu benutze ich folgenden Code (Minimalbeispiel), und das ein aktuell geupdatetes MikTex 2.9
\documentclass{scrbook} \usepackage{pgfplots}%Für schöne Latex interne Grafiken \pgfplotsset{compat=1.8}%pgfplot-Version \usepgfplotslibrary[external]%aus Diagrammen pdf erzeugen 01 \tikzexternalize[shell escape=-enable-write18]%aus Diagrammen pdf erzeugen 02 \usepackage{pdfpages} \begin{document} %\includepdf{test} \begin{tikzpicture} \begin{axis}[ xlabel=Cost, ylabel=Error] \addplot[color=red,mark=x] coordinates { (2,-2.8559703) (3,-3.5301677) (4,-4.3050655) (5,-5.1413136) (6,-6.0322865) (7,-6.9675052) (8,-7.9377747) }; \end{axis} \end{tikzpicture} \end{document}
Das funktioniert und ich erhalte die Grafik als externe Datei test-figure0.pdf
Benutze ich allerdings den Befehl \includepdf{test}, so funktioniert die externe pdf-Ausgabe nicht mehr und ich erhalte folgende Fehlermeldung:
===== 'mode=convert with system call': Invoking 'pdflatex -enable-write18 -halt
-on-error -interaction=batchmode -jobname "test02-figure0" "\def\tikzexternalre
aljob{test02}\input{test02}"' ========
runsystem(pdflatex -enable-write18 -halt-on-error -interaction=batchmode -jobna
me "test02-figure0" "\def\tikzexternalrealjob{test02}\input{test02}")...execute
d.
! Package tikz Error: Sorry, the system call 'pdflatex -enable-write18 -halt-on
-error -interaction=batchmode -jobname "test02-figure0" "\def\tikzexternalrealj
ob{test02}\input{test02}"' did NOT result in a usable output file 'test02-figur
e0' (expected one of .pdf:.jpg:.jpeg:.png:). Please verify that you have enable
d 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 fail
ed? Error messages can be found in 'test02-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.
...
Für Hilfe/eventuelle Ratschläge bin ich dankbar.
Grüße