I have enabled write18 by telling TeXlipse to call pdfLaTeX using the --enable-write18 option. However, this does not seem to work properly. The code






    plot sin(x), cos(x)

    \draw[domain = -pi : pi] plot function{sin(x)};


produces the output

\ifeof18: flase, \pdfshellescape: true

so write18 seems to indeed be enabled, however instead of producing plots it gives me the errors

pdflatex.exe> Package pgf Warning: Plot data file `document.pgf-plot.table' not found.

pdflatex.exe> Package gnuplottex Warning: Shell escape not enabled.
pdflatex.exe> (gnuplottex)                You'll need to convert the graphs yourself..

pdflatex.exe> Package gnuplottex Warning: Please convert document-gnuplottex-fig1.gnuplot manually.

What did I do wrong and how can I fix this?

PS: gnuplot is installed and calling it from the command line works fine.


I found the following occurences of runsystem in the log file:

runsystem(touch w18-test-20145301175.tex)...executed.

runsystem(rm -f w18-test-20145301175.tex)...executed.

runsystem(gnuplot document.pgf-plot.gnuplot)...executed.
  • What TeX distribution are you running? Try --shell-escape instead of --enable-write-18 that's specific of MiKTeX, while the other one should work on every system.
    – egreg
    May 30 '14 at 16:18
  • @egreg: I am using MiKTeX and thus switching to --shell-escape didn't do anything. However, I noticed that \ifeof18 is false even without --shell-escape (or --enable-write18) whereas pdfshellescape changes as expected.
    – schtandard
    May 30 '14 at 16:24
  • You need to pass the option miktex: \usepackage[miktex]{gnuplottex} May 30 '14 at 16:26
  • \ifeof18 is false because the restricted shell escape is active. You should report what's near runsystem in the log file. But Ulrike's suggestion seems good.
    – egreg
    May 30 '14 at 16:28
  • @Ulrike: That didn't change anything. @egreg: I added the occurences of runsystem in the log file to my question.
    – schtandard
    May 30 '14 at 16:42

For the shell-excape test you need to pass the option miktex to gnuplottex:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.