In a lengthy document, \underbar occasionally has no effect. From the wiki, I have learned that this can be rectified using \inframed[frame=off]{\underbar{….}}. The problem is that this only works for short text: lengthy text, say a paragraph, gets printed as a single line.

Is there a way (a key?) that will allow \underbar to work with \inframed or perhaps another way of getting \underbar to work 100% of the time?

Alan