After resolving the problem on my previous question, I applied to finally install Gnuplot 4.6; and after a successful installation I had to allow the --shell-escape
option on TeXworks, so I added a new Typesetting Tool on the Preferences menu, called pdfLaTeX+ShellEscape
.
The lines of code inserted into the tool configuration are listed below:
$synctexoption
-undump=pdflatex
--shell-escape
$fullname
The problem is that when I try to compile my MWE (MYname.tex) with the above specified option:
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
%
\begin{document}
\begin{tikzpicture}
%
\begin{axis}[no markers,samples=30]
\addplot gnuplot{atanh(x)};
\end{axis}
%
\end{tikzpicture}
%
\end{document}
I get this messge:
! Package pgfplots Error: Sorry, the gnuplot-result file 'MYname.pgf-plot.table'
could not be found. Maybe you need to enable the shell-escape feature? For
pdflatex, this is '>> pdflatex -shell-escape'. You can also invoke
'>> gnuplot <file>.gnuplot' manually on the respective gnuplot file..
See the pgfplots package documentation for explanation.
Type H <return> for immediate help.
...
l.7 \addplot gnuplot{atanh(x)};
?
I am running TeXworks 0.44, and until now it didn't show this kind of stubbornness because I compiled every document without problems.
I did also some research and I found that I could write -enable-write18
but even after this try I get the same errmsg and so I'm stuck again with the plots problem (although I discovered a powerful program like Gnuplot I don't know how to set LaTeX properly).
P.S. : Sorry for the deleted question with the same title, that issue was created by a simple human error.
.gnu
file with the name of the.tex
file. It may be even a.dot
something else but it wont beaux
,log
, and the standardLaTeX
ones.MYname.pgf-plot.gnuplot
on the same folder, in addition to the classicaux
andlog
files, but at this point I don't know what to do.gnu
didn't process the file. If you process this file now, you will have the.table
or it may name it a.tex
file and then all will work. This happens sometimes with shell escape enabled. It has to do with something you havent set inTeXworks
I presume.MYname.pgf-plot.gnuplot
, r-click and select wgnuplot program to open the specific extension, after that theMYname.pgf-plot.table
was created and it all worked like a charm. Now the only question is if I've set the Typesetting tool correctly, because I don't know if I've done some mistake