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.


Thanks for any help with this!

3 Answers 3


use package mathtools. There is also a drcases environment


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

  • 1
    Many thanks for this! Loading mathtools and changing cases to drcases works perfectly! Mar 10, 2012 at 21:14

With the help of the aligned environment from amsmath, you can define your own environment:




  a &= b + c \\
  d &= e + f + g \\
  h &= i + j + k + l
\text{ three equations}


enter image description here

  • 2
    Hi. What can I do to have the brace on the left instead? What changed should I make? Thanks.
    – Steeven
    Nov 11, 2012 at 14:09
  • 3
    @Steeven in that case, you don't need anything special; you can use the cases environment from the amsmath package. Nov 13, 2012 at 22:33
  • What if I wan to write a text in body. I have wrote a text in different font ($ \begin{rcases} ${\sffamily {to love}}$ \\ \end{rcases}$ ) and compiler has written me 'Missing }'. Why and where? Thanks. Oct 4, 2016 at 21:27

Maybe something like this:


\end{aligned}\right\} = stuff

enter image description here

  • 3
    Did you read my answer? :-) Mar 10, 2012 at 21:26
  • 1
    @Gonzalo yes I did now, you were faster than I. I saw your solution after having formatted my answer. Sorry. Mar 10, 2012 at 21:29

You must log in to answer this question.

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