I want to use gnuplottex
to draw graphs in a LaTeX document.
The problem is, gnuplottex
doesn't accept any options.
A mwe would be like
\documentclass[a4paper,11pt,titlepage,twoside,openright,toc=listof, toc=bibliography]{scrreprt}
\usepackage[a4paper, left=4cm, right=2cm, top=2.5cm, bottom=2.5cm]{geometry}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage[shell]{gnuplottex}
\begin{document}
\begin{figure}[hbt]
\centering
\begin{gnuplot}[terminal=epslatex,terminaloptions=color]
set xrange[0:3.1415]
set yrange[-1:1]
set grid
plot sin(x)
\end{gnuplot}
\end{figure}
\end{document}
The [shell]
option doesn't bother pdflatex
, but doesn't help with converting the files either (I have to use pdflatex --shell-escape mwe.tex
to compile).
The [subfolder]
option is even worse, this produces:
! LaTeX Error: Unknown option `subfolder' for package `gnuplottex'.
See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ...
l.54 \ProcessOptions\relax
?
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
Any ideas what might cause this strange behaviour of gnuplottex
?
\gnuplotloadfile
causes an undefined control sequence... :-/