I am using Latex on Windows 10 with TexLive 2024. Latex documents are created with the TexWorks editor that comes with TexLive. I have installed Gnuplot and entered it in the path during installation. It works fine. In TexWorks I have created in the Menu > Edit > Preferences > Typesetting > Processing Tool > and added an entry with the following settings:
- Name: gnuplot
- Program: C:/Program Files/gnuplot/bin/gnuplot.exe
- Arguments: $basename
I have now created the following Latex file named untitled-1.tex
\documentclass{article}
\usepackage{gnuplottex}
\begin{document}
\section{Gnuplot}
\begin{gnuplot}[terminal=pdf]
%set terminal pdf
%set output "untitled-1.pdf"
plot sin(x)
\end{gnuplot}
\end{document}
First in TexWorks I first run LuaLatex which is fine. Next, in TexWorks I run gnuplot which now stops and comes up with the following message: line 0: Cannot load input from 'untitled-1'. A file called untitled-1-gnuplottex-fig1.gnuplot was created though. I have also changed the arguments to $basename-*.gnuplot but it makes no difference.
Thanks