LaTeX forum ⇒ Math & ScienceMulti-line right brace Topic is solved

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
AkkawiRS
Posts: 1
Joined: Sat Oct 08, 2011 1:14 pm

Multi-line right brace

Postby AkkawiRS » Sat Oct 08, 2011 1:18 pm

Hey guys, I'm writing a 3-line equation and need a brace to join them all on the right side. I know I can use "\begin{cases}" but that gives me a brace on the left side. What do you propose?

Tags:

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Sat Oct 08, 2011 1:26 pm

Take a look at the empheq package from the mh bundle.


Best regards and welcome to the board
Thorsten
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

kaiserkarl13
Posts: 582
Joined: Tue Mar 25, 2008 5:02 pm
Location: Columbia, Missouri, USA

Postby kaiserkarl13 » Sun Oct 09, 2011 3:29 am

What's wrong with this?
  1. \begin{equation}
  2. f(x) = \left\{
  3. \begin{array}
  4. 1 & x > 0 \\
  5. 0 & x = 0 \\
  6. -1 & x < 0
  7. \end{array}
  8. \right.
  9. \end{equation}

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Sun Oct 09, 2011 9:55 am

kaiserkarl13 wrote:What's wrong with this?
  1. \begin{equation}
  2. f(x) = \left\{
  3. \begin{array}
  4. 1 & x > 0 \\
  5. 0 & x = 0 \\
  6. -1 & x < 0
  7. \end{array}
  8. \right.
  9. \end{equation}

It still has a brace on the left side. And the OP wants a brace at the right side. Furthermore it is unclear if the OP wants that brace beside equations which are numbered separately.
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

JB Adder
Posts: 4
Joined: Mon Apr 15, 2013 3:58 pm

Postby JB Adder » Mon Apr 15, 2013 4:32 pm

I don't think he wants to number them, if what he writes is correct. (I'm taking the fact that he states he could use the {cases} environment into consideration.) He could do it this way:

  1. \left.\begin{aligned}
  2. Equation 1 \\
  3. Equation 2 \\
  4. Equation 3
  5. \end{aligned}\right\rbrace

Owolabi
Posts: 1
Joined: Thu Jun 22, 2017 6:25 am

Postby Owolabi » Thu Jun 22, 2017 6:30 am

  1. \begin{equation}
  2. f(x) = \left\{
  3. \begin{array}{cc}
  4. 1 & x > 0 \\
  5. 0 & x = 0 \\
  6. -1 & x < 0
  7. \end{array}
  8. \right.
  9. \end{equation}


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 3 guests