I would like to use the gnuplot's tikz terminal to create good looking graphs in pdf format. However, I have trouble compiling the resulting .tex file. My plot.gp file looks like:
clear
reset
set terminal tikz color standalone size 5in,3in
set output 'plot.tex'
plot sin(x)
I compile the resulting plot.tex file with:
pdflatex -shell-escape plot.tex
Then, the compilation halts at the following output:
Overfull \hbox (16.34975pt too wide) in paragraph at lines 96--96
[][]
Preview: Tightpage 0 0 0 0
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}])
*
At this point it leaves me the possibility to interact. Typing \end and then twice <RET> and then x seemingly aborts the process but the produces a working .pdf:
*\end
*
Runaway argument?
! Paragraph ended before \end was complete.
<to be read again>
\par
<*>
? x
</home/christian/.texmf-var/fonts/pk/ljfour/jknappen/ec/ecrm1000.600pk>
Output written on plot.pdf (1 page, 7343 bytes).
Transcript written on plot.log.
How could I compile the file without errors? Thanks a lot in advance!
P.S.: I am running Linux Mint 14 and TexLive 2012 from the official repositories.
set output 'plot2.tex'afterplot sin(x). In my case gnuplot doesn't end my files until I change the output. – Manuel Nov 26 '12 at 21:50set out, without a file name, to close the file properly. – Jake Nov 26 '12 at 21:52gnuplot(version 4.6 patchlevel 0), the output produced by thetikzdriver useslualatex... – Paul Gaborit Nov 26 '12 at 23:37set outas the last comment in the script did the trick, thank you very much! Newbie question: how can I mark this thread as answered? – user8878 Nov 27 '12 at 0:11