[texhax] Line break inside \makebox
Donald Arseneau
asnd at triumf.ca
Wed Nov 21 02:01:52 CET 2007
Dan Hatton <vi5u0-texhax at yahoo.co.uk> writes:
> I have the following two snippets of LaTeX code (automatically
> generated by getting two different versions of a plotting program to
> produce the same graph.) In case anyone wonders what \ut is,
> \newcommand{\ut}[1]{\,\mathrm{#1}}.
(units)
> \makebox(0,0)[b]{\shortstack{Dissolution\\{}rate
> $\Lambda{}/(\ut{nm}/\ut{s})$}}%
\shortstack is a good way to get multiple lines compactly.
Also tabular.
> \makebox(0,0){\strut{}Dissolution\\{}rate
> $\Lambda{}/(\ut{nm}/\ut{s})$}%
No, \makebox puts its argument in "lr" mode, not "paragraph" mode,
so it only has a single line. You can use a \parbox for paragraph
mode, and multiple lines.
--
Donald Arseneau asnd at triumf.ca
More information about the texhax
mailing list