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

learn more… | top users | synonyms

4
votes
2answers
145 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
70 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
306 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
298 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
283 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
2k 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
179 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
91 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
54 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
91 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
314 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
193 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
547 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
227 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
106 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
103 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
257 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
108 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
197 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 ...
8
votes
1answer
4k 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
2k 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
135 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
115 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
94 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
131 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
528 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| \\ \\ ...
2
votes
1answer
3k 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} ...
3
votes
1answer
379 views

prooftree from bussproofs package inside “cases” environment

I am using bussproofs package to provide some type proofs. According to bussproofs manual, it is impossible to use prooftree inside math mode. However, I would like to insert prooftree in the cases ...
5
votes
3answers
238 views

How can I do this without the cases?

How can I do this without the cases? $\begin{cases} \dfrac{\partial u(x,y)}{\partial x}=2x=\dfrac{\partial v(x,y)}{\partial y} \\ \dfrac{\partial u(x,y)}{\partial y}=-2y=- \dfrac{\partial ...
3
votes
1answer
208 views

Error with dcases*

I'm using LaTeX to write up my math notes and have been fairly successful implementing most of the styles I'm trying to figure out. I seem to be having trouble with the environment dcases* though. ...
6
votes
2answers
2k views

How can I align multiple cases environment simultaneously?

In one big align environment, I want to put some cases environments. I would like the alignment of the cases environments to be the same. For example, if I write: \begin{align} f(x) &= ...
6
votes
2answers
174 views

Alignment between material inside and outside a cases environment

In the code below, I'd like to make the i=0,\ldots,n. line up, in the output, with the cases in the first part of the definition. Ideally, the full-stop would align with the semicolons and comma. ...
4
votes
1answer
166 views

How do I hang another, right-aligned line in a cases environment?

I've seen these questions, but in my case the equation content is too long to add the text description at the end and it overflows into the margin. \[ d_i(g_n,\ldots,g_0) = \begin{cases} ...
5
votes
1answer
151 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 ...
5
votes
1answer
338 views

A piecewise function with fractions and without tiny text

I would like to create a piecewise function which includes fractions. But the solutions I have found so far squish the fractions in to tiny text that is nearly illegible. The cases environment ...
4
votes
2answers
239 views

Modify case equation's brace

I was wondering if there is a way to change, case's symbol(curly brace) to two arrows pointing up/left and down/left. \documentclass[a4paper,11pt]{article} \usepackage{kerkis} \usepackage{amsmath} ...
10
votes
3answers
252 views

Aligning cases conditions from multiple nesting levels

\begin{dmath*} y_{ic}[n] = \begin{dcases} y_0 + x_0 - x_0 (1 - k_2)^n & k_1 = 0 \\ k_5 + \left( y_0 - k_5 \right) (1 - k_1)^n + \begin{dcases} ...
8
votes
3answers
456 views

How to force alignment of “cases” brackets in an enumerate environment?

I am using the enumitem and amsmath packages to give the recursive definition of the valuation function $\nu$ for classical first order logic. The way I have it set up, the brackets of the cases are ...
7
votes
1answer
111 views

How to control the alignment of the brace in a dcases environment

The following code \begin{equation} \begin{dcases} u = \frac{\sqrt{2}}{2}(i+j)\\ v = k \end{dcases} \end{equation} results in the following display that I find ...
16
votes
2answers
908 views

How to align nested cases?

Please consider the code bellow: \begin{align*} function = \begin{cases} case1 &\mbox{if } n = 0 \\ \begin{cases} case2 &\mbox{if } n = 1 \\ ...
1
vote
2answers
89 views

How to make \left\{ and \right. work in an new environment?

I have tried to define a new environment numcases, which just like the cases except tagging the equations as a whole, and \newenvironment{numcases}{\begin{equation}\left\{\begin{array}{rll}}% ...
1
vote
1answer
158 views

How can I label for a collection of equations? [duplicate]

Possible Duplicate: Separate labels in cases I want to label each equation in a collection of equations as in the example below. How can I do this?
5
votes
1answer
704 views

Nodes with cases with TikZ

I need to make something that should look like this (sorry for such low quality of picture) So I type this but it's doesn't work correctly: \begin{tikzpicture} \node (A) at (0,0) {$ \vec{\bf ...
6
votes
2answers
2k views

Case equation without curly brace

I want to have a case equation without the left curly brace. I am using \documentclass[11pt,a4paper]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{amsthm} ...
2
votes
1answer
2k views

Missing $ error in math mode

I have the following LaTeX code (beginning from line 80): \begin{definition} $\hat{n}_{v}$ = \begin{cases} $n_{v}$ & \text{ if } $v \in$ \text{connected component of size} $< ...
8
votes
4answers
281 views

How can I align at relation symbols within a cases environment?

I have used the following code in LaTeX - \documentclass{article} \usepackage{amssymb,amsmath} \begin{document} \begin{table}[H] \centering \begin{tabular}{c|c} \hline { $X=y+z$} & { ...
13
votes
2answers
10k 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 ...
0
votes
0answers
23 views

Latex/Bibtex lowercasing entries in references [duplicate]

Possible Duplicate: BibTeX loses capitals when creating .bbl file I have entries like this in my bib file: @misc{paper, title = {"My Fancy Paper"}, howpublished = ...
8
votes
1answer
4k views

Problem compiling cases environment [closed]

I am trying to compile a simple cases example, but I'm having trouble with the tabular separator &. Here's my code: \begin{equation} f(x) = \begin{cases} x + 1 & ...
7
votes
1answer
370 views

Why does mathdesign result in a huge 'cases' environment brace in Tufte documents?

I'm getting strange results when I use the cases environment in Tufte-LaTeX documents with the mathdesign package. Instead of I get Is there something I can do to get rid of that huge brace? ...