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.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityAs 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}
\begin{align}...\end{align}
, but this is not the issue.\parbox
inside the\underbrace
. Inside theparbox
you can use\\
.aligned
env inside the\underbrace
instead of\parbox