von u_fischer » Mo 25. Mär 2013, 10:24
Also [terminal=pdf] und "set terminal epslatex color" widerspricht sich.
Du solltest in der gnuplot-Umgebung auch keine Kommentare einfügen, die landen in der gnuplot-Datei und gnuplot mag die nicht.
Daneben muss du beim Kompilieren natürlich --shell-escape benutzen, gnuplot muss im Pfad sein und mit miktex braucht man die Miktex Option.
Bei mir (miktex 2.9) funktioniert daher das hier mit pdflatex --shell-escape:
\documentclass{article}
\usepackage{graphicx}
\usepackage{wallpaper}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage[miktex]{gnuplottex}
\begin{document}
\color{black}
\setlength{\oddsidemargin} {0cm}
\setlength{\topmargin} {0cm}
\normalsize
\begin{titlepage}
\title{Protokoll V408: Geometrische Optik}
\date{17.01.13}
\maketitle
\centering Proto
\end{titlepage}
\begin{figure}[!ht]
\begin{gnuplot}[terminal=pdf]
set nokey
plot sin(x)
\end{gnuplot}
\end{figure}
\end{document}
Also [terminal=pdf] und "set terminal epslatex color" widerspricht sich.
Du solltest in der gnuplot-Umgebung auch keine Kommentare einfügen, die landen in der gnuplot-Datei und gnuplot mag die nicht.
Daneben muss du beim Kompilieren natürlich --shell-escape benutzen, gnuplot muss im Pfad sein und mit miktex braucht man die Miktex Option.
Bei mir (miktex 2.9) funktioniert daher das hier mit pdflatex --shell-escape:
[code]\documentclass{article}
\usepackage{graphicx}
\usepackage{wallpaper}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage[miktex]{gnuplottex}
\begin{document}
\color{black}
\setlength{\oddsidemargin} {0cm}
\setlength{\topmargin} {0cm}
\normalsize
\begin{titlepage}
\title{Protokoll V408: Geometrische Optik}
\date{17.01.13}
\maketitle
\centering Proto
\end{titlepage}
\begin{figure}[!ht]
\begin{gnuplot}[terminal=pdf]
set nokey
plot sin(x)
\end{gnuplot}
\end{figure}
\end{document}[/code]