Math & ScienceMulti-line right brace

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

Multi-line right brace

Post by AkkawiRS »

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?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Multi-line right brace

Post by localghost »

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


Best regards and welcome to the board
Thorsten
kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Multi-line right brace

Post by kaiserkarl13 »

What's wrong with this?

Code: Select all

\begin{equation}
  f(x) = \left\{
  \begin{array}
    1 & x > 0 \\
    0 & x = 0 \\
    -1 & x < 0
  \end{array}
  \right.
\end{equation}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Multi-line right brace

Post by localghost »

kaiserkarl13 wrote:What's wrong with this?

Code: Select all

\begin{equation}
  f(x) = \left\{
  \begin{array}
    1 & x > 0 \\
    0 & x = 0 \\
    -1 & x < 0
  \end{array}
  \right.
\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.
JB Adder
Posts: 4
Joined: Mon Apr 15, 2013 3:58 pm

Multi-line right brace

Post by JB Adder »

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:

Code: Select all

\left.\begin{aligned}
Equation 1 \\
Equation 2 \\
Equation 3
\end{aligned}\right\rbrace
Owolabi
Posts: 1
Joined: Thu Jun 22, 2017 6:25 am

Multi-line right brace

Post by Owolabi »

Code: Select all

\begin{equation}
   f(x) = \left\{
   \begin{array}{cc}
     1 & x > 0 \\
     0 & x = 0 \\
     -1 & x < 0
   \end{array}
   \right.
\end{equation}
Post Reply