thx
manually setting the title works of course. But the
pslatex driver should replace the underscore with
\_ for filenames when setting automatically the legend
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
this example "stops" latex
set terminal pslatex auxfile
set output "test.tex"
plot "data_2.dat" using ($2):($1) lt 1
works of course and with
\documentclass{minimal}
\begin{document}
\input{test.tex}
\end{document}
producing the final ps
latex gives errors:
This is TeX, Version 3.14159 (Web2C 7.4.5)
(./temp.tex
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, g
reek, latin, russian, spanish, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/minimal.cls
Document Class: minimal 2001/05/25 Standard LaTeX minimal class
) (./temp.aux) (./test.tex
! Missing $ inserted.
<inserted text>
$
l.9 ...ebox(0,0)[r]{"data_2.dat" using ($2):($1)}}
the problem is the underscore in the filename.
I tried also with awk to replace _ with \_ but
then I cannot use _ anymore for setting formulas.
looks like a bug.
The problem is your lack of knowledge about the 'title' option of the (s)plot command:
plot 'data_2.dat' title 'data\_2.dat'
would work nicely.
thx
manually setting the title works of course. But the
pslatex driver should replace the underscore with
\_ for filenames when setting automatically the legend
The latest version actually does that, though in another way: it turns off enhanced processing for legend entries that are filenames.