My question is quite similar to a previous question on inserting a right brace around a set of equations. However, I do not wish to wrap the brace around the entire aligned environment yet I would like to maintain the same alignment throughout.
I would like to avoid a tikz-based solution if possible.
Any help would be appreciated.
Edit: This example demonstrates that I lose the alignment I would like once I attempt to span some of the equations with a right brace.
\documentclass{beamer}
\usepackage{amsmath}
\begin{document}
\begin{frame} \frametitle{An ILP Approach}
A 0-1 model:
\begin{align*}
\onslide<2->{
\mathrm{maximize} \quad & \sum_{e \in E} w_e y_e \\
}
\onslide<3->{
\text{subject to} & \\
\left.\begin{aligned}
x_{il} + x_{jl} + y_e &\leq 2 \\
x_{il} - x_{jl} &\leq y_e \\
x_{jl} - x_{il} &\leq y_e \\
\end{aligned}\right\} \text{for} e \in E, l \in [k]\\
}
\onslide<4->{
\sum_{l \in [k]} x_{il} & = 1 & i \in V \\
}
x_{ul}&\in \{0,1\} &\quad \forall u \in V, l \in [k] \\
y_e &\in \{0,1\} &e \in E
\end{align*}
\end{frame}
\end{document}
aligned
environment yet I would like to maintain the same alignment throughout." This isn't easy to parse. Please provide more information about what it is you do want to achieve.\left.\begin{aligned}
and\end{aligned}\right\} \text{for} e \in E, l \in [k]
lines were commented out. I then wanted to plant a\rbrace
that spanned the three\leq
inequalities. Thanks for your patience.