I'm using Gnuplot 4.2 and want to use the plots in Latex. Therefore I use
"set terminal epslatex"
But when including the file in latex via
\documentclass{article}
\usepackage{graphics} % needed for epslatex terminal
\usepackage{color}
\begin{document}
\begin{figure}
\begin{center}
\scalebox{1.0}{\input{gnuplotfigure.tex}}
\caption{Enter caption here}
\label{Enter label here}
\end{center}
\end{figure}
\end{document}
I get the following error messages:
[LaTeX] finished with exit status 1
./gnuplotfigure.tex:94:Missing $ inserted. \gplbacktext
./gnuplotfigure.tex:94:Extra }, or forgotten $. \gplbacktext
./gnuplotfigure.tex:94:Missing $ inserted. \gplbacktext
./gnuplotfigure.tex:94:Missing } inserted. \gplbacktext
./gnuplotfigure.tex:94:Missing $ inserted. \gplbacktext
./gnuplotfigure.tex:94:Extra }, or forgotten $. \gplbacktext
./gnuplotfigure.tex:94:Missing $ inserted. \gplbacktext
./gnuplotfigure.tex:94:Missing } inserted. \gplbacktext
./test.tex:9:Overfull \hbox (16.34033pt too wide) in paragraph
the relevant part in the tex file is
\setlength{\unitlength}{0.0500bp}%
\begin{picture}(7200.00,5040.00)%
\gplgaddtomacro\gplbacktext{%
\csname LTb\endcsname%
\put(990,660){\makebox(0,0)[r]{\strut{} 0}}%
\put(990,1689){\makebox(0,0)[r]{\strut{} 0.5}}%
\put(990,2718){\makebox(0,0)[r]{\strut{} 1}}%
\put(990,3747){\makebox(0,0)[r]{\strut{} 1.5}}%
\put(990,4776){\makebox(0,0)[r]{\strut{} 2}}%
\put(1122,440){\makebox(0,0){\strut{} 0}}%
\put(2263,440){\makebox(0,0){\strut{} 2000}}%
\put(3404,440){\makebox(0,0){\strut{} 4000}}%
\put(4544,440){\makebox(0,0){\strut{} 6000}}%
\put(5685,440){\makebox(0,0){\strut{} 8000}}%
\put(6826,440){\makebox(0,0){\strut{} 10000}}%
\put(220,2718){\rotatebox{90}{\makebox(0,0){\strut{}m_{10}/m_{0}}}}%
\put(3974,110){\makebox(0,0){\strut{}m_{0} (GeV)}}%
}%
\gplgaddtomacro\gplfronttext{%
}%
\gplbacktext
\put(0,0){\includegraphics{gnuplotfigure}}%
\gplfronttext
\end{picture}%
does anyone know why this error occurs? Thank you very much
--
View this message in context: http://www.nabble.com/epslatex-error-tp17327348p17327348.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|