1

I'm having some troubles while compiling my thesis with the tikz externalize feature in Texmaker. I created the user command:

"D:/laTex/texlive2014/bin/win32/pdflatex.exe" -synctex=1 -interaction=nonstopmode --shell-escape %.tex

I'm using this in my preamble:

\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}

but anyways it doesn't works.

I receive this in the error windows:

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.

but there is no log file in the folder I already created.

m0nhawk
  • 9,664
  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – Pier Paolo Feb 20 '15 at 14:17
  • Did I make any error? sorry, my english isn't so good. – em1lio189 Feb 20 '15 at 14:22
  • No errors, it's just that in this site there is no need to sign your questions or to explicitly thank other users (except for upvoting and accepting answers). Moreover, if you could provide a complete minimal working example (MWE) starting with \documentclass{...} and ending with \end{document} you would avoid the setup phase for the users willing to help. ;) – Pier Paolo Feb 20 '15 at 14:28
  • I succeded using texworks but not TexStudio. I don't know where is the problem .. but I would like to continue using it! Does not anyone know the solution? – em1lio189 Feb 20 '15 at 16:48
  • If the topic is actually about TeXStudio, please edit its title. This simple google search should list this thread in its first 5 results. – henry Feb 21 '15 at 17:05
  • I was using texmaker but I read a topic where a user was telling that texmaker is outdate and now the project goes under texstudio. So I tried texstudio too, that is about the same and still doesn't work. – em1lio189 Feb 22 '15 at 10:39
  • I tried the: '\tikzexternalize[optimize=false,prefix=tikz/]' but it's still not working. @henry – em1lio189 Feb 22 '15 at 10:59
  • Guys I solved reinstalling texlive, I noticed that typing in the cmd pdflatex.exe it didn't find anything. Now I have it working and the string I wrote in the upper part of the topic is the right one. It works even without the optimize=false. – em1lio189 Feb 22 '15 at 15:10
  • I had the exact same problem. You need to check the file 'tikz/minexample-figure0.log' to find the actual cause for the error. Besides, checking the link I posted might prove helpful. – henry Feb 22 '15 at 16:30
  • I checked the 'tikz/minexample-figure0.log' but no file were generated except for a .md5 file not being helpful. Now I solved as I told in the previous comment. I don't know if I can mark the question as solved. – em1lio189 Feb 23 '15 at 10:08
  • 4
    I'm voting to close this question as off-topic because it was due to an inability to find pdflatex (or something like that) and was solved by reinstalling the TeX distribution. – cfr Nov 28 '15 at 00:03

1 Answers1

0

I solved reinstalling texlive, I noticed that typing in the cmd pdflatex.exe it didn't find anything. Now I have it working and the string I wrote in the question is the right one. It works even without the optimize=false.

pdflatex.exe -synctex=1 -interaction=nonstopmode --shell-escape %.tex