# combination of \underset{} and \ul{} prevents linebreak

Here is the MWE. I am sorry for not putting it earlier.

\documentclass [11pt,letterpaper,twoside,openright]{book}
\usepackage{amsmath}
\usepackage{soul}
\begin{document}

This is the example to show that whether the use of underset" is correct. If underlined text is $\underset{1}{\text{\ul{one or two words}}}$ it is fine; however if it is $\underset{2}{\text{\ul{very very long text, such as this, the underlined text does not break line, see this. The line from here is not published.}}}$ \\

$\underset{3}{\text{\ul{Second request is that if the underlined text shows up in two lines,}}}$

$\underset{3}{\text{\ul{the numeral below that, in this case 3' should also show up in each line.}}}$

\end{document}

• Please provide a working example,not just fragments of code in the running text ;- – user31729 Nov 18 '15 at 10:01
• \underset is not really appropriate for long sentence. Perhaps you may write it in the main text? – Romain Picot Nov 18 '15 at 10:03
• Thank you for the responses. I have a long passage and at multiple places, a word/phrase/very long sentence is underlined and beneath that a numeral as a question marker is placed. \underset works well for me till the string length is short. I do not know which is the best way to get this. Could you pl help. Thank you in anticipation. – Shalabh Jain Nov 18 '15 at 15:36
• Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}`. – jarauh Nov 18 '15 at 19:14
• Pl. see the MWE with output. I am sorry for not putting it up earlier. – Shalabh Jain Nov 19 '15 at 7:42