Math & ScienceSpread underbrace text over two lines

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
nich
Posts: 14
Joined: Fri Aug 13, 2010 8:22 am

Spread underbrace text over two lines

Post by nich »

Is there a way to spread the text which an under-brace refers to over two lines?

For example, I have the code:

Code: Select all

\[ \underbrace{\int_0^1 J_t^2 dN_t}_\text{discontinuous component}
and I would like to have the word `continuous' on one line and `discontinuous' immediately below it.

Thanks
Last edited by nich on Fri Sep 17, 2010 3:45 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Spread underbrace text over two lines

Post by gmedina »

Hi,

if I understood your question, you could use a \parbox:

Code: Select all

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\[ 
  \underbrace{\int_0^1 J_t^2 dN_t}_\text{\parbox{4cm}{\centering continuous\\[-4pt] discontinuous component}} 
\]

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
nich
Posts: 14
Joined: Fri Aug 13, 2010 8:22 am

Re: Spread underbrace text over two lines

Post by nich »

Brilliant, I had tried \parbox but didn't realize that I could set the width of the parbox.

Thanks a lot
Post Reply