|
From: Ethan M. <merritt@u.washington.edu> - 2007-06-01 00:51:37
|
On Thursday 31 May 2007 17:43, Mojca Miklavec wrote: > On 6/1/07, Ethan Merritt wrote: > > But to show that it works in principle, try the following: > > > > set term latex > > set output 'test.tex' > > set title "One line\nTwo lines\nThree lines" > > plot x > > No, I didn't have that in mind. That's nonsense, since TeX ignores > newlines anyway (and considers them equal to spaces). Did you actually try it? Gnuplot itself interprets the newlines, and splits the label up into three parts fed individually to the latex driver. It works reasonably well, actually. It's only the line spacing that is imperfect. The primary drawback is the difficulty of getting the escape sequences right for the LaTeX mark-up inside double quotes. > It's obvious > that in LaTeX one is ready to put extra effort into labels by placing > extra markup, so one might want to use '\\' for newlines, but that > doesn't work inside \hbox (I assume that \makebox is only an hbox). Yes. \newline doesn't work either. > What gnuplot could do is to create such output that '\\' would work > out of the box (by replacing \makebox with something that accepts and > respects '\\' as a newline). > > I would need to dig out the proper syntax though, since I abandoned > LaTeX some years ago. > > Mojca > -- Ethan A Merritt Courier Deliveries: 1959 NE Pacific Dept of Biochemistry Health Sciences Building University of Washington - Seattle WA 98195-7742 |