the cases environment is provided by the amsmath package- the mathtools package introduces extensions of it (dcases, etc)

learn more… | top users | synonyms

7
votes
4answers
112 views

How to separate a case into lines in a cases environment

I need to divide both the condition and equation part of some cases into lines, as the cases would not fit to text width. I read some similar questions and could not see that solves my problem. A MWE ...
2
votes
1answer
29 views

How can I typeset an equation with braces and conditions in LaTeX?

I've got the following equation I've used \begin{equation} \centering A_j = \begin{cases} 0 & N^2 < N_j^2 \\ \text{must have been constrained,} ...
1
vote
1answer
56 views

Page breaks within the cases environment

I am using the cases environment multiple times within the align environment, inputting fairly long equations. This creates a lot of white space, which I would like to get rid of. Any suggestions of ...
3
votes
2answers
61 views

align nested in cases

Code \documentclass[a4paper,twoside,12pt]{book} \usepackage{amstext} \usepackage[utf8]{inputenc} \usepackage{cases} \usepackage{amsmath} \begin{document} ...
3
votes
1answer
36 views

Control shrinking of font size in cases environment

I'm, using the cases environment of the amsmath package and I was wondering whether there is a method to control the shrinking of certain elements of it. E.g. when there is a fraction, the elements in ...
4
votes
1answer
44 views

Horizontal alignment with align and cases

I have a cases environment inside an align environment, and I'm trying to align part of one line of the align environment with part of the cases environment via an ugly \phantom command. Here's a ...
10
votes
1answer
171 views

How can I add circles and arrows in linear equation systems?

How can I write a linear equation system that uses circles and arrows to indicate what should be added on each line. This is what I have so far: $S = \begin{cases} x_1+2x_2 - 2x_3 = 1 \\ ...
2
votes
1answer
60 views

delimiter size in cases environment

How can I change delimiter (brace) size in cases environment (for piece-wise function)? \begin{equation} f(x)=\begin{cases} \end{cases} \end{equation}
5
votes
2answers
184 views

Breaking equations in cases environment

Similar questions have been asked before, but my problem is a little different: \begin{equation} E_K \approx \begin{cases} - \sum\limits_{i = 1}^{N} K_1 \bri \left( \mathbf{m \bri} \cdot \unit{u} ...
2
votes
1answer
32 views

Cases environment with SIAM document class

It seems as though the SIAM class does not play nice with the cases environment. For example $$ \begin{cases} x & y \end{cases} $$ will produce the error misplaced alignment tab character ...
4
votes
1answer
71 views

Aligning variables vertically in a cases environment

I'm creating a system of equations in LaTeX, using a cases environment, with variables $x_1$, $x_2$, $x_3$ and $x_4$. Here's my MWE: \documentclass[a4paper,12pt,onecolumn]{article} ...
10
votes
4answers
152 views

Aligning numbering in a system of equation so it's centered

In the following code ... $\begin{cases} 2y+4x=9 & \text{(I)} \\ 3x-2x=10 & \text{(II)} \end{cases}$ ... I want the (I) to be centered above (II). Right now they are aligned above each ...
3
votes
2answers
94 views

How to make the bracket smaller?

The two big brackets are the same big, I dislike that. I want to keep the second one smaller, and let the space between the equation a little bit smaller. How could I do that? Thanks! ...
3
votes
1answer
162 views

Subequation number not shown (empheq+amsart)

This is a Follow-up question to Number equations within array In the original post I was asking about the basics of subnumbering equations and I got satisfactory answers so I could implement the ...
1
vote
2answers
101 views

Adding a large brace before a body of text

How to write the above using Latex ?
1
vote
1answer
56 views

Cases environment left alignment

As I understand, cases environment is centered by default: How to make it left aligned?
9
votes
3answers
98 views

Cases environment without the brace

I want to vertically align one equation against two, similar to the cases environment but without the brace: e.g. similar environment to: There must be another solution to the alignment solution ...
10
votes
3answers
162 views

How to provide more horizontal space between cases in a system?

I have the following ugly system: This is my LaTeX code: \newcommand{\Aaa}{\begin{bmatrix} 1 & 0 \\ 0 & -1\end{bmatrix}} \newcommand{\Ba}{\begin{bmatrix} 0 & 1 \\ -1 & ...
2
votes
3answers
104 views

math cases package problem

I am preparing a presentation with beamer. I want to use a math formulas that contains a cases \begin{cases}{|x|=} x, & for $x \geq 0$\\ -x, & for $x < 0$ \end{cases} the problem in ...
7
votes
2answers
195 views

How to typeset piecewise-defined functions? [duplicate]

I am attempting to write out the basic process for finding the absolute value of some number. In ASCII, this is what I am attempting to write. |X| = { x if x > 0 0 if x = 0 ...
4
votes
2answers
145 views

Vertical skip for the operator \cases

I would like to create a formula with the operator \cases, whose lines contain sums: \begin{cases}\sum (...) \\ \sum (...) \end{cases} Expressions in the sums are huge, and it would be natural to ...
8
votes
1answer
68 views

Mismatching symbol size in cases environment with acronym package

I'm running into trouble using the acronym package when I set math formulas in the cases environment. Looking at the following MWE, you will notice that inside the arccot "gamma" and "p" are smaller ...
4
votes
2answers
129 views

How to make this equations aligned

I have an equation as below, I want text1 and text2, text3 are aligned as well. \begin{equation} \begin{aligned} A &= B \quad \text{text1}\\ C &= \begin{cases} 1 & ...
1
vote
0answers
49 views

brace in cases environment being displayed incorrectly because of package yhmath

Could someone please explain why I get this when using a cases environment? The code behind this is $$ \underbrace{\mathrm{u}(\tau )}_{\substack{=1\\ \text{για}\ \tau >0}} ...
10
votes
2answers
4k views

Using “cases” inside “equation” gives error[with “amsmath” loaded]

I'm trying to use the cases environment inside an equation environment. The sample code is quite simple: \begin{equation*} X(\omega) = \begin{cases} 1 \text{se $\omega ...
8
votes
1answer
149 views

breqn and hyperref breaking subnumcases environment when used together

I have an issue when using cases, breqn and hyperref together. This is my MWE \documentclass[preview]{standalone} \usepackage{cases} \usepackage{breqn} % For line breaks in some really long equations ...
11
votes
7answers
246 views

Alignment in cases

I have this text in LaTeX: $$ sgn(x)= \begin{cases} -1 & \mbox{za podmínky } x>0\\ 0 & \mbox{za podmínky } x=0\\ 1 & \mbox{za podmínky } x>0 \end{cases} $$ But I ...
3
votes
2answers
88 views

Centering an item in cases environment [duplicate]

I wish to center the 1 in the following LaTeX code: \begin{align*} v'(k,\CS)= \begin{cases} \displaystyle\frac{G_{max}(k){-}q_k'(CS)}{G_{max}(k){-}\Gmin(k)} & \text{if }G_{max}(k) {\neq} ...
3
votes
1answer
153 views

Error typesetting large bracket with multiple lines

I was following a Wikibooks section to create multiple lines within a single large bracket. Something like this. The problem is that when I type in the given code, which is \[ u(x) = ...
2
votes
1answer
1k views

Numbering equations in cases environment separately

I have a problem with separate numbering of equations. My code is: \documentclass[10pt,a4paper]{article} \usepackage{amsmath} \usepackage[subnum]{cases} \begin{document} ...
4
votes
2answers
201 views

How can I typeset determinants of Cramer's rule? [closed]

I want to typeset the determinants of the system $\begin{cases} a_1x+ b_1y = c_1,\\ a_2x+ b_2y = c_2. \end{cases}$ I tried $D=\left| \begin{matrix} {{a}_{1}} & {{b}_{1}} \\ {{a}_{2}} ...
4
votes
2answers
802 views

Equation: How to create nested/multiple cases in LaTeX to align the qualifiers

I am having trouble with a particular equation as the cases are nested within a case. It would also be cool if I could align the qualifiers. I tried to post an image of the equation but I could not ...
1
vote
0answers
129 views

Cases environment makes latex hang [closed]

My .tex was compiled fine using pdflatex. Now I added to it \[ f(p(x,y))=\begin{cases} 1 & 1\end{cases} \] and the compilation never ends (pdflatex is stuck in an infinite loop). If I run the ...
5
votes
1answer
79 views

Changing the size of the braces from the cases environment

I have created the following picture using the cases environment. For this picture I have two questions. 1) I would like to limit the size of the braces created by the cases environment to ...
5
votes
1answer
138 views

How to insert a text between two cases in a multi valued function?

I want to do something similar to this but do not know how: I do know how to write multi-valued functions by using cases or align or whatever but do not know how to achieve a text that is to the ...
1
vote
0answers
53 views

How to write commands for cases? [duplicate]

For writing cases like a definition of a function having two or more conditions compiled by large braces ({), do I have to use \begin{equation} and \begin{cases} within, or there is some other command ...
2
votes
1answer
84 views

Need help with a cases structure inside an enumerated list

I need to type an enumerated list (for a math document) that contains several lines for which I need to have said lines have a curly brace at the end with a text description for them. The best I can ...
2
votes
1answer
366 views

Writing conditional equations with braces in sphinx

I want to write conditional statement with one-sided curly brackets in Sphinx as shown below: In Latex, the best I could do is given below: \[ x = \begin{cases} \begin{split} ...
4
votes
2answers
107 views

I don't know what is wrong: cases and itemize

I don't know what is wrong, because I can see the output but it is compiling with error. \documentclass{tufte-book} \usepackage{amsmath} \begin{document} \begin{itemize} \item \begin{tabular}{cc} ...
5
votes
2answers
86 views

Nested begin-math symbols

I am facing a problem while displaying a mathematical expression. The code looks like this : \textit{$f_{1}$} $\succ$ \textit{$f_{2}$} if $\begin{cases} \textit{dz_{f_{1}}} \supseteq ...
0
votes
1answer
82 views

twocolumn article cases alignment issues

I use the following option twocolumn \documentclass[11pt, twocolumn]{article} Images and almost everything works nice. However I face an issue with the mathmode cases If my text is too long it ...
2
votes
1answer
158 views

Bad formating with align + cases and long equations

This is what I have so far: Formatting in section 1 is a joke. I can't even read the cases. Under section 2 I cheated with a manual line break \\ and a parbox. Still the result disgusts me. ...
5
votes
3answers
99 views

Putting a header above the cases in an equation

This question is best illustrated by an example. Consider the following code Further we can show that \begin{equation*} P_{v}(T) = ...
2
votes
2answers
143 views

How to adjust the blank space between the top of the left curly brace and the contents?

I want to type a system of equations delimited by the left curly brace. And I tried using the \left{ with aligned, and cases, and array, and numcases. But there are some difference between the results ...
7
votes
1answer
660 views

Tall curly brace

I would like to put a tall (long) left curly bracket on the left side of the following: \documentclass[12pt]{article} \begin{document} \noindent c: $\{$1, ..., n$\}$ $\rightarrow$ $\{$1, ..., ...
2
votes
1answer
795 views

How to make dcases environment work in LaTeX

I'm using Kile (kde4) on Mac OS. I can use the cases environment just fine but my version of Kile doesn't have dcases. I'm using Kile via MacPorts. Does anyone know of a way to update my distribution ...
1
vote
1answer
81 views

How to add equation with cases inside the table

I want to include the complicated equation into one of the cells of my table. I am using tabular environment, additionally I have some multirows. I would like to add something like this: ...
4
votes
2answers
75 views

how to align texts in equation cases

I need to make an equation case with text following it. That text should be displayed in the middle of the two cases. This is my code: \begin{eqnarray}\label{eq13} a_k = \begin{cases} 1 & ...
3
votes
1answer
1k views

Newline in a “cases” environment

I have the same issue as in this question: Split-like environment inside cases environment with one difference - I would like to get the same result with LyX, using as little LaTeX code as possible. ...
1
vote
0answers
88 views

Cases equation problem - ! Missing { inserted [closed]

I am trying to compile this equation \beta\_t^i= \begin{cases} \overline{\beta}-i\cdot\sigma\_{\beta} & 0\leq i\leq 4\\ 0.0 & 5\leq i\leq7 \end{cases} and I am still ...