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

learn more… | top users | synonyms

6
votes
3answers
629 views

Horizontal spacing after cases bracket in equation

How can I add a little horizontal spacing after the cases bracket, at the depicted position, so that 1 and 0 move to the right (the given screenshot looks okayish, but I'm using a different font where ...
6
votes
2answers
569 views

Cases environment compresses fractions?

what should I do to stop the cases environment compressing the first line of the following? \begin{equation} \alpha_{mn} = \begin{cases} \frac{16\mu^2}{mn\pi^2\left[\pi^2(m^2/a^2 + n^2/b^2) - ...
7
votes
4answers
163 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
135 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
66 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
133 views

align nested in cases

Code \documentclass[a4paper,twoside,12pt]{book} \usepackage{amstext} \usepackage[utf8]{inputenc} \usepackage{cases} \usepackage{amsmath} \begin{document} ...
4
votes
1answer
237 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
104 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
275 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 \\ ...
5
votes
2answers
248 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
95 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
199 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
356 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 ...
2
votes
1answer
164 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}
3
votes
2answers
215 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
597 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
109 views

Adding a large brace before a body of text

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

Cases environment left alignment

As I understand, cases environment is centered by default: How to make it left aligned?
9
votes
3answers
145 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
203 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
184 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
527 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 ...
5
votes
2answers
236 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
123 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
158 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 & ...
2
votes
1answer
76 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}} ...
8
votes
1answer
430 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 ...
3
votes
2answers
767 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} ...
4
votes
2answers
347 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}} ...
5
votes
2answers
3k 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
223 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 ...
6
votes
1answer
102 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 ...
1
vote
0answers
58 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
95 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 ...
11
votes
7answers
383 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
1answer
241 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
691 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
332 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
136 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 ...
1
vote
1answer
133 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
383 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
115 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
288 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 ...
10
votes
1answer
9k 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, ..., ...
3
votes
1answer
3k 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
279 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
149 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 & ...
1
vote
0answers
104 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 ...
2
votes
1answer
169 views

Centering case-defined functions in the middle of the page and centering a figure(diagram)

I have two questions regarding centering: I am trying to center a case-defined function, say defined as follows: $f_i(z)=$ \begin{cases}\frac{1}{t}dist (z,\gamma_i ) &\text {if} z\in A_i(t)\\ ...
7
votes
2answers
715 views

cases environment inside an array

LyX is giving a lot of error messages for my Latex code which runs in other places. \[ \begin{array}{rl} p_{Y \mid H_1}(y \mid H_1) & = f_X(g^{-1}(y))\left| \dfrac{dg^{-1}(y)}{dy} \right| \\ \\ ...