Math & Science ⇒ Multi-line right brace
Multi-line right brace
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
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Multi-line right brace
Code: Select all
\begin{equation}
f(x) = \left\{
\begin{array}
1 & x > 0 \\
0 & x = 0 \\
-1 & x < 0
\end{array}
\right.
\end{equation}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Multi-line right brace
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.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}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Multi-line right brace
{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
Multi-line right brace
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}