Math & Sciencemulti-line underset text

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
whoburg
Posts: 6
Joined: Mon Nov 29, 2010 11:03 pm

multi-line underset text

Post by whoburg »

Hi All,
I am undersetting some text under an equation, and I would like that text to span multiple lines. Here is my specific example:

Code: Select all

\begin{equation}
\label{CD}
C_D \geq  \underbrace{\frac{C_L^2}{\pi e AR}}_{\textrm{induced drag}} + \underbrace{c_d(C_L, Re, \tau)}_{\textrm{wing profile drag}} + \underbrace{\frac{CDA_0}{S}}_{\textrm{non-wing form drag}}
\end{equation}
I would like the text 'non-wing form drag' to be split into two lines, so that it fits under that term in the equation better. I have tried adding a \newline and adding a \\ between 'wing' and 'form', to no avail.

Thank you for any ideas!
Last edited by whoburg on Mon Apr 04, 2011 9:39 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

multi-line underset text

Post by localghost »

You can put the concerned text into a \parbox of a certain width to enable automatic line break.


Thorsten
whoburg
Posts: 6
Joined: Mon Nov 29, 2010 11:03 pm

Re: multi-line underset text

Post by whoburg »

That successfully created the line break; thanks very much for the advice! I do have a follow on question though. The vertical spacing between lines is quite large. Is there any way to decrease that within the parbox?

\begin{equation}
\label{CD}
C_D \geq \underbrace{\frac{C_L^2}{\pi e AR}}_{\textrm{induced drag}} + \underbrace{c_d(C_L, Re, \tau)}_{\textrm{\parbox{.8in}{\vspace{4pt} wing profile drag}}} + \underbrace{\frac{CDA_0}{S}}_{\textrm{\parbox{.47in}{non-wing form drag}}}
\end{equation}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

multi-line underset text

Post by localghost »

The interline spacing inside the \parbox is determined by the default font size. You can try another approach to balance that.

Code: Select all

\begin{equation}\label{CD}
  C_D \geq \underbrace{\frac{C_L^2}{\pi e AR}}_{\textrm{induced drag}} + \underbrace{c_d(C_L, Re, \tau)}_{\textrm{\parbox{.8in}{\vspace{4pt} wing profile drag}}} + \underbrace{\frac{CDA_0}{S}}_{\textrm{\shortstack{non-wing\\[-1ex] form drag}}}
\end{equation}
whoburg
Posts: 6
Joined: Mon Nov 29, 2010 11:03 pm

Re: multi-line underset text

Post by whoburg »

That is perfect. Thank you so much for your help.
Post Reply