Menu

terminal pslatex problem bug ?!

Help
2003-10-24
2003-11-06
  • gebhard matt

    gebhard matt - 2003-10-24

    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.

     
    • Hans-Bernhard Broeker

      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.

       
    • gebhard matt

      gebhard matt - 2003-10-29

      thx
      manually setting the title works of course. But the
      pslatex driver should replace the underscore with
      \_ for filenames when setting automatically the legend

       
      • Hans-Bernhard Broeker

        The latest version actually does that, though in another way: it turns off enhanced processing for legend entries that are filenames.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.