« Return to Thread: New line not working for latex math mode?

New line not working for latex math mode?

by Miguel Rubio Roy :: Rate this Message:

Reply to Author | View in Thread

Hi,

Maybe I'm doing something wrong, but I cannot make the latex newline to work.

*Only* the *first* label of all these:

set term epslatex standalone color size 9cm,9cm
set output "test.tex"
set label "a \n b" at 0,90
set label 'a \\ b' at 0,70
set label "a \\\\ b" at 0,60
set label '$a \\ b$' at 0,50
set label "$a \\\\ b$" at 0,40
set label '$\displaystyle a \\ b$' at 0,30
set label "$\\displaystyle a \\\\ b$" at 0,20
f(x) = x**2
plot f(x)
unset output

will produce two lines of text, and whenever I'll try to use \n in math mode like
set label "$a \n b$"

pdflatex will give me an error

Is all these normal? How can I introduce a new line in math mode?

I'm using gnuplot 4.2.5

Miguel

------------------------------------------------------------------------------

_______________________________________________
gnuplot-beta mailing list
gnuplot-beta@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-beta

 « Return to Thread: New line not working for latex math mode?