最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Gnuplot in Latex does not pass - Stack Overflow

programmeradmin3浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论