The macro ul
provided by soul
works great, allowing linebreaks within an underlined text block. It even supports macros - if they were registered with soulregister
.
But if these registered macros produce text on their own, it isn't underlined:
\documentclass{article}
\usepackage{soul}
\newcommand{\one}[1]{\ul{#1}}
\newcommand{\two}[1]{not underlined #1}
\soulregister{\two}{1}
\begin{document}
test1 \one{test2 \two{test3}}.
\end{document}
How can I make sure this text is underlined correctly?
soul
and notulem
? – Chris H Jul 31 '13 at 18:07ulem
seems to handle this perfectly - thanks! – fefrei Jul 31 '13 at 18:16