Enrico Forestieri 91afc2430d Protect underlined \ref{} commands by enclosing them in \mbox{}.
This is the same protection used for \cite{}. Although "ulem" commands
don't strictly need this protection with \ref{} and friends, this helps
when one wants to use another package souch as "soul".
Indeed, ulem's \uline{} doesn't hyphenate words, while soul's \ul{} does,
and thus the output is much nicer.

With this patch, replacing ulem with soul is as simple as adding
\usepackage{soul}
\renewcommand{\uline}[1]{\ul{#1}}
to the preamble, without worrying about manually enclosing in \mbox the
\ref commands. In any case, the output from ulem remains unchanged.

Another possibility offered by soul is that of typesetting as
"yellow highlighted" the underlined text. This is achieved by adding
\usepackage{color,soul}
\renewcommand{\uline}[1]{\hl{#1}}
to the preamble.
2012-08-30 14:09:23 +02:00
..
2011-07-14 17:00:35 +00:00
2011-07-14 17:00:35 +00:00
2011-10-29 15:34:06 +00:00
2011-10-29 15:34:06 +00:00
2011-12-03 22:15:11 +00:00
2011-12-03 22:15:11 +00:00
2011-10-29 15:34:06 +00:00
2012-04-22 12:32:41 +02:00
2012-07-01 08:38:54 +02:00
2012-04-10 20:21:01 +02:00
2011-10-25 23:22:55 +00:00
2012-07-10 17:11:58 -04:00