<html><head></head><body><div class="yahoo-style-wrap" style="font-family:verdana, helvetica, sans-serif;font-size:16px;"><div><div><div dir="ltr" style="font-family: verdana, helvetica, sans-serif; font-size: 16px;">Hi,</div><div dir="ltr" style="font-family: verdana, helvetica, sans-serif; font-size: 16px;">I am unable to call gnuplot from my tex documents.</div><div dir="ltr" style="font-family: verdana, helvetica, sans-serif; font-size: 16px;">I put in the following if statement</div><div dir="ltr" style="font-family: verdana, helvetica, sans-serif; font-size: 16px;"><div><div style="margin: 0px;"><br></div><div style="margin: 0px;">ifShellEscape</div><p style="margin: 0px;">Hello world - shell escape enabled</p><p style="margin: 0px;">else</p><p style="margin: 0px;">shell escape is NOT enabled</p><p style="margin: 0px;">fi</p></div><br></div><div dir="ltr" style="font-family: verdana, helvetica, sans-serif; font-size: 16px;">which resulted in 'shell escape NOT enabled' printed on my pdf.</div><div dir="ltr" style="font-family: verdana, helvetica, sans-serif; font-size: 16px;">I added --shell-escape to the pdflatex.exe from both the MikTex 'IDE', and the windows' cmd window.</div><div dir="ltr" style="font-family: verdana, helvetica, sans-serif; font-size: 16px;"><br></div><div dir="ltr" style="font-family: verdana, helvetica, sans-serif; font-size: 16px;">I am running TexWorks 0.6.3, MikTex 2.9.7300 under Windows 10 with all packages up to date. </div><div dir="ltr" style="font-family: verdana, helvetica, sans-serif; font-size: 16px;">gnuplot is installed, its path is in both user and admin $path and when called from the command line 'cmd' it starts up in its command line mode (not wgnuplot.exe).</div><div dir="ltr" style="font-family: verdana, helvetica, sans-serif; font-size: 16px;">what else can make pdflatex.exe refuse to accept the --shell-escape argument?</div><div dir="ltr" style="font-family: verdana, helvetica, sans-serif; font-size: 16px;">Any other idea for a solution?</div><div dir="ltr" style="font-family: verdana, helvetica, sans-serif; font-size: 16px;">regards,</div><div dir="ltr" style="font-family: verdana, helvetica, sans-serif; font-size: 16px;">Ovi</div></div><br></div></div></body></html>