1

How can I have something like the following in LaTeX?

\begin{align}

\underbrace{equation1 \\ (line break) equation 2}_{text}

\end{align}

The problem is the line break.

I don't seem to find any solution online.

4
  • You shouldn't leave blank lines in \begin{align}...\end{align}, but this is not the issue.
    – Skillmon
    Mar 23, 2017 at 9:25
  • You can use \parbox inside the \underbrace. Inside the parbox you can use \\ .
    – Skillmon
    Mar 23, 2017 at 9:27
  • @Skillmon since the material is probably math, might be better to use the aligned env inside the \underbrace instead of \parbox
    – daleif
    Mar 23, 2017 at 9:29
  • @daleif yeah, you're right. Didn't consider that.
    – Skillmon
    Mar 23, 2017 at 9:30

1 Answer 1

3

As daleif and I said, you should use an environment allowing linebreaks inside the \underbrace. If it's just going to be text \parbox or similar commands are fine. If it's going to be math, you should use an environment such as aligned:

\documentclass[]{scrartcl}
\usepackage{amsmath}

\begin{document}

\begin{align}
    \underbrace{\begin{aligned}&equation1 \\ &(line break) equation 2\end{aligned}}_{text}
\end{align}
\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .