I just recently started to use Latex, so I'am having some problems with the equation environment. In specific, I want to put three different equations inside brackets, but I want then to be center aligned. In Word, It would be something like this:

enter image description here

The problem is that I'am having some trouble doing this with Latex. I've tried to use Gather, but it didn't work as I expected... Can someone help me, please? Thank you very much.

Here is part of the code that I'am using:

    1, \mbox{ if } \pi_{t}^{e}=\pi_{t}^c \\
    0, \mbox{ if } \pi_{t}^{e}>\pi_{tMAX}^{*} \mbox{ ou } \pi_{t}^{e}<\pi_{tMIN}^{*}


2 Answers 2


I wouldn't use a gather environment. Instead, I'd load the mathtools package and use its dcases* environment.

enter image description here

\usepackage{mathtools} % for 'dcases*' env.
  1 & if $\pi_t^{e}=\pi_t^c$ \\
  0 & if $\pi_t^{e}>\pi_{t_{\max}}^{*}$ or $\pi_t^{e}<\pi_{t_{\min}}^{*}$

Addendum to address the OP's follow-up comment: You could use a Bmatrix environment to achieve the stated formatting objective:

enter image description here

x = \begin{Bmatrix}
  1, \text{ if } \pi_t^{e}=\pi_t^c \\
  0, \text{ if } \pi_t^{e}>\pi_{t_{\max}}^{*} \text{ or } \pi_t^{e}<\pi_{t_{\min}}^{*}
  • I understand Nico, but I want my equations to be aligned in the center of the brackets... That's my problem. But thank you anyway!
    – Jackaba
    May 14, 2020 at 0:28
  • @PedroCrispim - Please see the addendum I just posted.
    – Mico
    May 14, 2020 at 3:32
  • @PedroCrispim I get that you want it centered, but I find the non-centered part, where the equations are aligned on the beginning of the conditional statement, far easier to read.
    – Tristan
    May 14, 2020 at 17:38
  • @Mico, thank you very much for your attention! And Tristan, thank you for your comment, I will consider it!. Regards!
    – Jackaba
    May 14, 2020 at 21:34

Bmatrix can be used to center equations between braces.


\begin{frame}{Frame Title}
  1, \text{ if } \pi_{t}^{e}=\pi_{t}^c \\
  0, \text{ if } \pi_{t}^{e}>\pi_{t_{\max}}^{*} \text{ ou } \pi_{t}^{e}<\pi_{t_{\min}}^{*}


enter image description here


You must log in to answer this question.

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