Why it gives an error when using tikzexternalize?











up vote
1
down vote

favorite












The message "Package tikz Error: Sorry, the system call 'pdflatex -hell-escape -halt-on-e" appears when I compile with pdflatex and also when I compile with pdflatex-shell-escape.



If I remove tikzexternalize from the preamble it compiles correctly, but where I know it must be used if one wishes to include tikz images in other text files. Which function has exactly tikzexternalize because this case does not need to be used.



PS: taken from How to properly include tikz pictures in other tex files?



Main file



documentclass{book}
usepackage{pgf}
usepackage{tikz}

usetikzlibrary{shapes,external}
tikzexternalize

usepackage{lipsum}

tikzset{naming/.style={align=center,font=footnotesize}}
tikzset{area/.style = {draw, shape = regular polygon, regular polygon sides = 10, thick, minimum width = 5cm}}

begin{document}
lipsum[1]

input{tikzcode}

lipsum[2]


end{document}


Simplified file (tikzcode)



begin{figure}[htb]
centering
begin{tikzpicture}[font=footnotesize]
node [area] at (0,0) (cell1) {};
end{tikzpicture}
caption{test}
label{fig:test}
end{figure}


Edited:



Correct has a space after pdflatex (see image 1) the configuration is for TeXstudio in MikTex.



enter image description here



In the image 2 the error appears but it produces the document.



enter image description here










share|improve this question
























  • @marmot See good edition.
    – Samuel Diaz
    1 hour ago










  • I just double checked and used precisely pdflatex -synctex=1 -interaction=nonstopmode -shell-escape, and there is no error on my machine. Of course, I do not question that you get an error, but I cannot reproduce it.
    – marmot
    1 hour ago















up vote
1
down vote

favorite












The message "Package tikz Error: Sorry, the system call 'pdflatex -hell-escape -halt-on-e" appears when I compile with pdflatex and also when I compile with pdflatex-shell-escape.



If I remove tikzexternalize from the preamble it compiles correctly, but where I know it must be used if one wishes to include tikz images in other text files. Which function has exactly tikzexternalize because this case does not need to be used.



PS: taken from How to properly include tikz pictures in other tex files?



Main file



documentclass{book}
usepackage{pgf}
usepackage{tikz}

usetikzlibrary{shapes,external}
tikzexternalize

usepackage{lipsum}

tikzset{naming/.style={align=center,font=footnotesize}}
tikzset{area/.style = {draw, shape = regular polygon, regular polygon sides = 10, thick, minimum width = 5cm}}

begin{document}
lipsum[1]

input{tikzcode}

lipsum[2]


end{document}


Simplified file (tikzcode)



begin{figure}[htb]
centering
begin{tikzpicture}[font=footnotesize]
node [area] at (0,0) (cell1) {};
end{tikzpicture}
caption{test}
label{fig:test}
end{figure}


Edited:



Correct has a space after pdflatex (see image 1) the configuration is for TeXstudio in MikTex.



enter image description here



In the image 2 the error appears but it produces the document.



enter image description here










share|improve this question
























  • @marmot See good edition.
    – Samuel Diaz
    1 hour ago










  • I just double checked and used precisely pdflatex -synctex=1 -interaction=nonstopmode -shell-escape, and there is no error on my machine. Of course, I do not question that you get an error, but I cannot reproduce it.
    – marmot
    1 hour ago













up vote
1
down vote

favorite









up vote
1
down vote

favorite











The message "Package tikz Error: Sorry, the system call 'pdflatex -hell-escape -halt-on-e" appears when I compile with pdflatex and also when I compile with pdflatex-shell-escape.



If I remove tikzexternalize from the preamble it compiles correctly, but where I know it must be used if one wishes to include tikz images in other text files. Which function has exactly tikzexternalize because this case does not need to be used.



PS: taken from How to properly include tikz pictures in other tex files?



Main file



documentclass{book}
usepackage{pgf}
usepackage{tikz}

usetikzlibrary{shapes,external}
tikzexternalize

usepackage{lipsum}

tikzset{naming/.style={align=center,font=footnotesize}}
tikzset{area/.style = {draw, shape = regular polygon, regular polygon sides = 10, thick, minimum width = 5cm}}

begin{document}
lipsum[1]

input{tikzcode}

lipsum[2]


end{document}


Simplified file (tikzcode)



begin{figure}[htb]
centering
begin{tikzpicture}[font=footnotesize]
node [area] at (0,0) (cell1) {};
end{tikzpicture}
caption{test}
label{fig:test}
end{figure}


Edited:



Correct has a space after pdflatex (see image 1) the configuration is for TeXstudio in MikTex.



enter image description here



In the image 2 the error appears but it produces the document.



enter image description here










share|improve this question















The message "Package tikz Error: Sorry, the system call 'pdflatex -hell-escape -halt-on-e" appears when I compile with pdflatex and also when I compile with pdflatex-shell-escape.



If I remove tikzexternalize from the preamble it compiles correctly, but where I know it must be used if one wishes to include tikz images in other text files. Which function has exactly tikzexternalize because this case does not need to be used.



PS: taken from How to properly include tikz pictures in other tex files?



Main file



documentclass{book}
usepackage{pgf}
usepackage{tikz}

usetikzlibrary{shapes,external}
tikzexternalize

usepackage{lipsum}

tikzset{naming/.style={align=center,font=footnotesize}}
tikzset{area/.style = {draw, shape = regular polygon, regular polygon sides = 10, thick, minimum width = 5cm}}

begin{document}
lipsum[1]

input{tikzcode}

lipsum[2]


end{document}


Simplified file (tikzcode)



begin{figure}[htb]
centering
begin{tikzpicture}[font=footnotesize]
node [area] at (0,0) (cell1) {};
end{tikzpicture}
caption{test}
label{fig:test}
end{figure}


Edited:



Correct has a space after pdflatex (see image 1) the configuration is for TeXstudio in MikTex.



enter image description here



In the image 2 the error appears but it produces the document.



enter image description here







tikz-pgf externalize






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago









Zarko

117k865155




117k865155










asked 2 hours ago









Samuel Diaz

26918




26918












  • @marmot See good edition.
    – Samuel Diaz
    1 hour ago










  • I just double checked and used precisely pdflatex -synctex=1 -interaction=nonstopmode -shell-escape, and there is no error on my machine. Of course, I do not question that you get an error, but I cannot reproduce it.
    – marmot
    1 hour ago


















  • @marmot See good edition.
    – Samuel Diaz
    1 hour ago










  • I just double checked and used precisely pdflatex -synctex=1 -interaction=nonstopmode -shell-escape, and there is no error on my machine. Of course, I do not question that you get an error, but I cannot reproduce it.
    – marmot
    1 hour ago
















@marmot See good edition.
– Samuel Diaz
1 hour ago




@marmot See good edition.
– Samuel Diaz
1 hour ago












I just double checked and used precisely pdflatex -synctex=1 -interaction=nonstopmode -shell-escape, and there is no error on my machine. Of course, I do not question that you get an error, but I cannot reproduce it.
– marmot
1 hour ago




I just double checked and used precisely pdflatex -synctex=1 -interaction=nonstopmode -shell-escape, and there is no error on my machine. Of course, I do not question that you get an error, but I cannot reproduce it.
– marmot
1 hour ago















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462893%2fwhy-it-gives-an-error-when-using-tikzexternalize%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462893%2fwhy-it-gives-an-error-when-using-tikzexternalize%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Accessing regular linux commands in Huawei's Dopra Linux

Can't connect RFCOMM socket: Host is down

Kernel panic - not syncing: Fatal Exception in Interrupt