Hello,
I'm trying to include gnuplot graphs in my latex document using the
epslatex terminal, but I get the \gplbacktext error. I've searched for
a solution, but I haven't been able to find any. Here are my files:
enc1.p:
set terminal epslatex
set output "enc1.tex"
set key below right
set autoscale
unset log
unset label
set xtic auto
set ytic auto
set title "Memory used in encoding with one thread"
set xlabel "Time (s)"
set ylabel 'Size\\(MB)' offset -1
set style line 1 lc rgb "red" lw 2
set style line 2 lc rgb "blue" lw 2
plot "./enc1.dat" using ($1):($2/1000) ls 1 with lines title
"Required memory", \
"./enc1.dat" using ($1):($3/1000) ls 2 with lines title
"Resident Set Size"
test.tex:
\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{color}
\begin{document}
\begin{figure}
\begin{center}
\input{enc1}
\end{center}
\end{figure}
\end{document}
Gnuplot generates the enc1.tex file, but pdflatex prints the following
error (I post the full pdflatex trace, I don't know if it's of any
help):
This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, arabic, armenian
, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutch, u
kenglish, usenglishmax, esperanto, estonian, farsi, finnish, french, galician,
german, ngerman, swissgerman, monogreek, greek, hungarian, icelandic, assamese,
bengali, gujarati, hindi, kannada, malayalam, marathi, oriya, panjabi, tamil,
telugu, indonesian, interlingua, irish, italian, kurmanji, lao, latin, latvian,
lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, polish, portuguese, roma
nian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, turkish,
turkmen, ukrainian, uppersorbian, welsh, loaded.
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/size12.clo))
(/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/local/texlive/2010/texmf-dist/tex/latex/pdftex-def/pdftex.def)))
(/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/latexconfig/color.cfg))
(./test.aux) (/usr/local/texlive/2010/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/grfext.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))
(/usr/local/texlive/2010/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
(./enc1.tex
! LaTeX Error: Something's wrong--perhaps a missing \item.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.105 \gplbacktext
?
Thanks, Roger.
|