![gnuplottex 和 shell 轉義](https://rvso.com/image/328439/gnuplottex%20%E5%92%8C%20shell%20%E8%BD%89%E7%BE%A9.png)
我正在嘗試gnuplottex
在這個 MWE 中運行:
\documentclass[a4paper, 11pt]{article}
\usepackage[cm]{fullpage}
\usepackage{gnuplottex}
\begin{document}
\begin{figure}%
\centering%
\begin{gnuplot}[terminal=epslatex]
plot sin(x) w l
\end{gnuplot}
\caption{This is a simple example using the epslatex-terminal.}%
\end{figure}%
\end{document}
人物環境出現了,但沒有劇情!
我已經包含了一個新的排版選項...
...日誌檔案\write18 enabled
在第三行顯示。
儘管如此,日誌檔顯示:
這是 pdfTeX,版本 3.14159265-2.6-1.40.15 (TeX Live 2014/W32TeX)(預先載入格式=pdflatex 2014.9.22) 2016 年 2 月 18 日 12:014.9.22) 2016 年 2 月 18 日 12:01
進入啟用模式
。[...]
軟體包 gnuplottex 警告:未啟用 Shell 轉義。
(gnuplottex) 您需要自行轉換圖表。[...]
軟體包 gnuplottex 警告:請手動轉換 gnuplot-gnuplottex-fig1.gnuplot
[...]
gnuplot 原始檔已建立。我正在使用 TeX Live 2014、TeXworks、Windows 7(64 位元)和 gnuplot 5.0(路徑變數已設定 -gnuplot
在控制台中輸入時啟動 gnuplot )。
編輯:我對如何使用\gnuplotexe
來直接指向gnuplot
可執行檔有些困惑...
答案1
(與OP在評論中交流後更新)
通讀gnuplottex
原始碼,它似乎測試是否-shell-escape
通過首先創建臨時文件來啟用。為此,它使用 unix 命令,除了 option 下miktex
。因此,我建議也嘗試使用該選項,儘管事實上您不在 MikTeX 下。手指交叉...
(請注意,儘管在該選項下gnuplottex
設定為 true\ifmiktex
布林值,但具有全域範圍)
原答案:
只是為了確認它可以在啟用 shell 轉義的情況下工作。由於我不在 Windows 上,我無法提供更多幫助...
\documentclass[a4paper, 11pt]{article}
\usepackage[cm]{fullpage}
\usepackage{gnuplottex}
\begin{document}
\begin{figure}
\centering
\begin{gnuplot}[terminal=epslatex]
plot sin(x) w l
\end{gnuplot}
\caption{This is a simple example using the epslatex-terminal.}
\end{figure}
\end{document}