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
409 views

Typesetting a function defined by case analysis

Can any one suggess me the code to write this equation in LaTeX.
10
votes
2answers
10k 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, ..., ...
8
votes
4answers
777 views

How to write cases with LaTeX?

The code i used to write is this one $$ X(m,n)= \begin{cases} x(n),\\ x(n-1)\\ x(n-1) \end{cases} $$ But I don't know how to write this one I appreciate any help. Edited: I'm sorry to add ...
3
votes
2answers
35 views

Vertical alignment with cases environment

I hope this question is not duplicate: How is it possible to align all of these equals signs? The main problem is the cases environment, because I don't know how to reference the &-Operator. ...
2
votes
1answer
49 views

rcases with parbox to fit residual space

I have the following construct (using package mathtools) \begin{drcases} Content.... \end{drcases} \parbox{.53\textwidth}{Long Multiline Text Blablabla} I am using cases to display some long ...
5
votes
2answers
93 views

Table containing multiple equations

Is there an elegant way to summarize multiple equations from different sources in a table? I need to use this in my thesis; the margins I specified match the geometry of my university's draft. I've ...
1
vote
2answers
43 views

Problem with rcases*

I want to put a right bracket because I need it, but it goes out of the page. \[ \begin{rcases*} \text{Si }f:\left[x_{1}, x_{2}\right]\longrightarrow\mathbb{R}\text{ es continua en } \left[x_{1}, ...
1
vote
1answer
63 views

Left brace in align environoment [duplicate]

I would like to have a left brace around equations in the align environment. How can I do this? (I would like to use this environment because I would like to number each individual equation to be ...
3
votes
1answer
41 views

Multiple cases with automatic braces

I am writing a relation in which I need to describe the value of G(i, s, a): \documentclass{article} \usepackage {amsfonts} \usepackage {amsmath} \usepackage [margin=1in]{geometry} \usepackage ...
3
votes
3answers
72 views

Cases with long text at the end.

So I need an outlup like this: And this is the code i use: \documentclass[10pt,a4paper,5p,twocolumn,preprint,review,authoryear]{elsarticle} \usepackage[english]{babel} \usepackage[fleqn]{amsmath} ...
4
votes
3answers
89 views

Tabs in cases environment in an equation

I would like to have a few tabs in a cases environment so that the "for"s and the "u"s in my example (and in the best case the "j"s as well) are on one line, respectively. I tried different ...
8
votes
3answers
3k 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) &= ...
3
votes
2answers
37 views

equations overlaping equation number in cases environment

I'm working with a long equation in case environment, the problem is that the equation overlaps the equation number... any ideas on how to solve that problem. I've thought on aligning it all to the ...
7
votes
3answers
354 views

How to typeset piecewise functions [duplicate]

I don't know what the big { thing is called so can't search and when tried and write in LaTeX and didn't find this expression or structure in word either.
4
votes
2answers
181 views

How can I do cases in plain text mode?

I am trying to draw cases as in the attached picture. Is there any way to draw one in plain text mode? If not possible, is there any way to put y variables at the bottom of the leftmost brace? ...
2
votes
1answer
120 views

Getting ! instead of comparison sign < in cases

I get errors when I use the bellow code , such as in the first line the first < before alpha , gives me an ! instead of < , I tried many solutions by putting $ sign ,but I wasnt successful ...
2
votes
1answer
135 views

Cases environment left alignment

As I understand, cases environment is centered by default: How to make it left aligned?
6
votes
2answers
178 views

More than two columns amsmath cases

I'm trying to use the cases environment to show an arbitrary equation. But I noticed that it only allows me to use 2 columns. However, I would require a third column, or perhaps a fourth as well. An ...
3
votes
3answers
66 views

How to align two systems of equations side by side?

I have the following systems of equations and I want them to be side by side, each of them having a brief description below, which is the text I've written after the \end{cases}\? Don't get too in ...
3
votes
1answer
45 views

Absolute Value of Horizontal Spacing in Numcases

I am interested in the absolute value of the horizontal spacing which is automatically assigned by numcases before an alignment point. For instance, what is the spacing after the comma and before ...
2
votes
0answers
58 views

Increase the thickness of a brace

I'd like to know if it's possible to increase the thickness of a brace. The code \documentclass[oneside]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} ...
0
votes
1answer
564 views

Latex showing “undefined control sequence” error when using cases inside align*

I am trying to use LaTeX to run the following code: \begin{align*} A\left(x\right)&= \begin{cases} 1, &\text{if } x \eq 1\\ 0, &\text{otherwise} ...
1
vote
2answers
117 views

Piecewise-defined functions

I'm trying to write these four piecewise-defined functions. I wrote this code: \begin{equation} \theta = \begin{cases} \theta r + Se \left( \theta s - \theta r \right) & Hp < 0 \\ ...
1
vote
0answers
57 views

cases in align produces errors with Scientific Word-exported file

For some reason I have to edit a tex file exported from Scientific Word, which has the line \input{tcilatex} I downloaded tcilatex.tex from here. However, everything works fine until I try to use ...
2
votes
3answers
70 views

aligning inequalities in eqnarray

I need help aligning the inequalities inside an eqnarray. The problem is that the first term before the inequality remains in the right. I tried manipulating the spaces but it just does not look ...
9
votes
4answers
191 views

How do I have centered equations on right case?

Here is an example of what I want to achieve. I have tried below but the equations won't center automatically. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather*} ...
1
vote
2answers
76 views

{cases} does not work while amsmath package is used

I tried the following: $P_{ijt}^{bool}$: \begin{cases} 1 & \mbox{if } P_{ijt} > 0 \\ 0 & \mbox{else} \end{cases} \usepackage{amsmath} is in the beginning of the file. This should work ...
5
votes
5answers
248 views

How to align decimal points when using cases statement

I have a statement like \begin{equations*} \begin{cases} {\zeta}_{A} = -10.1234567 \cdots, \\ {\zeta}_{B} = 1{,}001.2345678 \cdots. \end{cases} \end{equations*} How do I align the decimal points ...
5
votes
4answers
223 views

Increase row height in align* cases environment

I'm trying to use cases to present some equations with fractions, and finding that the lines are too compressed to be easily read. Is there a way to increase both the spacing between lines and the ...
1
vote
1answer
31 views

Cases behaving in a very eccentric manner

I'd be very glad if someone can tell me why is cases behaving ridiculously in the following code. \begin{align} I^*= \begin{cases} 0, & \left(\mathbb{E}\left[\theta_c|C=1\right] < \theta_i \ ...
3
votes
1answer
126 views

ConTeXt: Flush right formula numbers in cases environment

I would like to have the formula numbers of the cases environment flush right like regular formulas (not at a fixed distant from the cases like it is by default with the default setting ...
3
votes
2answers
283 views

numcases environment with showlabels package

I just discovered the environment numcases, which upgrades the package cases allowing to number the different cases. I am also currently using the showlabels package, which puts the name of the label ...
2
votes
1answer
198 views

Alignment of conditions between dcases (or cases) environments

I have found various discussions/questions on this subject, but I haven't found one that answers my question in a understandable way. How do I align the conditions of multiple piecewise equations? ...
3
votes
1answer
92 views

creating conditional array using iopart

I need to write a conditional equation using iopart.cls, a class that doesn't work with amsmath. Usually I'd use the cases environment from amsmath like so: \begin{equation} \mathrm{sgn}(t) 1, ...
3
votes
2answers
134 views

Aligning equations in a cases environment

In my work, I am trying to typeset the following system of equations. \begin{equation*} \begin{cases} \pi_n (i) = {n^2}/{\vol(G_n)} \cr \pi_n (j) = {n}/{\vol(G_n)} \cr q^{(n)}_{ij} = {1}/{n^2 } ...
4
votes
3answers
353 views

Math equation with cases and division signs

\begin{equation*} \theta({P,\bar{Cl}}) = \begin{cases} S(P,\widehat{Cl}) + (S(P,\widehat{Cl}) \times ((\bar{R}-\widehat{R})/\bar{R})) & \widehat{Cl} \textless \bar{Cl} \\ ...
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}} ...
3
votes
2answers
96 views

Graphical connection between a matrix and a label

I need to show the connection of an element of a matrix with a label, like this: This is some code that I write: \[ \mathrm{A^{(0)}}= \quad \left( \begin{array}{cccc:c@{}} 2 & 2 & 1 ...
4
votes
1answer
83 views

cleveref and cases packages clash

In the MWE below cleveref produces `section 1' instead of a reference to equation 2. What's the easiest fix? (other than using \eqref or (\ref)) \documentclass{article} \usepackage{cleveref} ...
6
votes
2answers
669 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) - ...
3
votes
2answers
112 views

Line breaks for cases environment in two column

I have case environments that breaks into the other column when used in two column. How can I break the cases to prevent the intrusion? This is the source code. \documentclass[11pt, ...
1
vote
0answers
81 views

Problem with \begin{cases} -\end{cases}

I was reading some other questions about people getting problems with the environment cases and the solution was to install the package amsmath, which I did, but now I got this error message: 1.53 ...
3
votes
2answers
73 views

Everything after the & symbol in each line for the rcases environment isn't in math mode, I don't know why

\documentclass[12pt]{article} \usepackage{mathtools} \begin{document} \begin{equation} \begin{rcases*} \left( \nabla^2+k^2\right) & u(\mathbf{r}) =0, \quad r > a \\ & u(\mathbf{r}) =0, ...
22
votes
3answers
14k views

How to put a brace on the right, not left, to group cases?

How can I get a brace on the right, not the left, to group cases, using cases? (I know actual cases look better with the brace on the left, but the items I need to group are not literally cases. They ...
21
votes
4answers
4k views

Separate labels in cases

As much as I have tried, it doesn't seem possible to use separate labels when using a casesconstruction (from the amsmath package). Ideally, I would like to be able to write something like ...
1
vote
0answers
19 views

Separate labels in cases to then reference [duplicate]

How can I label each of these equations separately so that I can refer to each of them later on? \[ \begin{cases} u_t+uu_x=-p_x, \\ H_t+(uH)_x=0, \end{cases} \]
4
votes
2answers
266 views

how to automatically convert \cases to \begin{cases} \end{cases}?

Is there some smart macro I could add in the preamble to handle this LaTeX auto-generated code? I use Maple's latex() command to convert results to LaTeX that I then compile using texlive in a ...
3
votes
2answers
122 views

Correct spacing when using aligned in cases

I have problems getting the spacing right when using aligned in a cases environment. The following illustrates my problem: \documentclass{article} \usepackage{amsmath} \begin{document} $$ ...
1
vote
2answers
599 views

How to write a multiline case in latex?

I am trying to get the output similar to this: I have written this code: \begin{equation} \text{RHS} \rightarrow \begin{cases} \vert 1 \rangle \left[\frac{2\beta}{\sqrt{\alpha^2 + ...
2
votes
1answer
106 views

Removing the effect of color table, after the table ends

I am using color tables in my document, as it produces very nice results. Further to that I use some equations using cases environment. I see that the colors from the color table get mixed up with ...