[Tex/LaTex] How to write multiple lines in a subscript

amsmathline-breakingmath-mode

Is there a way to force a line break inside a math mode text?

My example:

\[
  \underbrace{....}_\text{Some long text that should be multiline}
\]

Trying

\text{Some long text that\\ should be multiline}

Didn't do the trick.

Best Answer

You can use the \substack command, from the amsmath package, just like \text.

\[
  \underbrace{...}_{\substack{\text{Some long text that} \\ \text{should be multiline}}}
\]

The output:

Example of LaTeX output

Related Question