So, I just needed an underbrace in a formula in a Beamer presentation and ended up with some weird spacing between the two plus signs. Any clues how to fix? I looked online already for solutions but haven't found one.

Here's the code:

\begin{block}{Second stage:}
\centering $Y_i = \beta_0 + \beta_1 \widehat{D_i}+ \underbrace{\delta(score_i)}_\text{\parbox{4cm}{\centering Continuous\\[-4pt] function}}+\epsilon_i$

And here's how it looks.enter image description here

  • 4
    With \parbox{4cm} you are requesting 4cm of horizontal space and that is what you get. – Henri Menke Feb 25 at 23:00

You could use \substack.


  \begin{block}{Second stage:}
      Y_i = \beta_0 + \beta_1 \hat{D}_i + \underbrace{\delta(\text{score}_i)}_{\substack{\text{Continuous} \\ \text{function}}} + \epsilon_i


enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.