
我試圖了解如何將使用 gnuplot 的 epslatex 終端機產生的圖形添加到投影機簡報中。我有以下 gnuplot 程式碼:
set terminal epslatex size 3.5,2.62
set output 'introduction.tex'
set xlabel '$x$'
set ylabel '$y$'
set format '$%g$'
set xtics ('$-2\pi$' -2*pi,'$-\pi$' -pi,0,'$\pi$' pi,'$2\pi$' 2*pi)
plot sin(x) title '$\sin(x)$' with lines linestyle 1
我有以下 .tex 文件
\documentclass{beamer}
\usepackage{amsmath,graphicx,epstopdf}
\begin{document}
\begin{frame}
\begin{itemize}
\item Test
\input{introduction}
\end{itemize}
\end{frame}
\end{document}
不幸的是,我無法在投影機框架中產生任何繪圖。我確信我犯了一個錯誤。你能幫我了解一下在哪裡嗎?提前致謝。