[Tex/LaTex] How to put a brace on the right, not left, to group cases

bracescasesmath-mode

How can I get a brace on the right, not the left, to group cases, using cases? (I know actual cases look better with the brace on the left, but the items I need to group are not literally cases. They are a set of steps in an algorithm which I want to consider as an item.)

The following puts the brace on the left. All I need to do is to flip it to the right.

\begin{align}
\begin{cases}
a&=bbb\\
c&=ddddddd\\
e&=ffffffffff
\end{cases}
\end{align}

Thanks for any help with this!

Best Answer

use package mathtools. There is also a drcases environment

\documentclass{article}
\usepackage{mathtools}
\begin{document}

\[
\begin{rcases*}
E = m c^2 & foo \\
\int x-3\, dx & barbaz
\end{rcases*} y=f(x)
\]

\end{document}
Related Question