I have text that I need to repeat quite a few times:
\newcommand{\repeatme}{text to repeat that is somewhat long and verbose}
I'd like to underline this text and have it not cause hbox overflow errors. Thus I try (using the soul package, as if I use ulem or underline it'll hbox):
Blah blah blah, \ul{\repeatme}
This gives this error:
I came across hyphenatable material enclosed in group braces,
which I can't handle. Either drop the braces or make the material
unbreakable using an \mbox (\hbox). Note that a space
also counts as possible hyphenation point. See page 4 of the manual.
My current workaround is this:
\newcommand{\repeatmeul}{\ul{text to repeat that is somewhat long and verbose}}
and
Blah blah blah, \repeatmeul
But that fails... wrong. Surely there's a more elegant way!