14

Possible Duplicate:
How can I force a line break within \text{…}?

In the MWE below, is it possible to force a line break in the text under the Z so that the overall equation is more compact in the horizontal direction? I tried a normal linebreak, which I hoped would work since it's inside a \text, but that gave me errors.

Also, if there's a better way to make this sort of equation callout, please let me know. \underbrace and underset and variants thereon are the only methods I'm familiar with at present.

The Cauchy-Schwartz equation below from the Navier-Stokes Wiki article shows the kind of line breaks I was hoping to get in the underbrace.

MWE

\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\[
        \underbrace{z}_{\text{Initial Acceleration}} = x + y
\]
\end{document}

Underbrace linebreaks:

Equations with underbrace linebreaks

SSilk
  • 3,732
  • 1
    Or this one: http://tex.stackexchange.com/questions/30862/force-line-break-inside-a-lim-argument-in-align-environment/30864#30864 – cmhughes Oct 08 '11 at 18:47
  • The question linked by Torbjorn T. does answers my question. However, I did not find it through any searches, which is why I asked it here. Thanks. – SSilk Oct 08 '11 at 20:37
  • for future visitors, one can write a command similar to \text in a way shown by egreg's answer here: https://tex.stackexchange.com/questions/346990/text-inside-equation-with – D.R Sep 18 '22 at 01:37

1 Answers1

1

See chapter 7.5.4 on pp 129f. in http://tug.org/~hvoss for a better vertical alignment.