[texhax] Line break inside \makebox

Dan Hatton vi5u0-texhax at yahoo.co.uk
Mon Nov 19 16:05:40 CET 2007


Dear All,

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}}.

Snippet 1:

\put(200,2458){%
\special{ps: gsave currentpoint currentpoint translate
270 rotate neg exch neg exch translate}%
\makebox(0,0)[b]{\shortstack{Dissolution\\{}rate
$\Lambda{}/(\ut{nm}/\ut{s})$}}%
\special{ps: currentpoint grestore moveto}%
}%

Snippet 2:

   \put(200,2458){%
   \special{ps: gsave currentpoint currentpoint translate
270 rotate neg exch neg exch translate}%
   \makebox(0,0){\strut{}Dissolution\\{}rate
   $\Lambda{}/(\ut{nm}/\ut{s})$}%
   \special{ps: currentpoint grestore moveto}%
   }%

In the first, the line break "\\{}" is respected, while in the second,
it's ignored.  Does anyone know why, please?

-- 

Thanks,

Dan Hatton


More information about the texhax mailing list