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

Typesetting a function defined by case analysis

Can any one suggess me the code to write this equation in LaTeX.
3
votes
2answers
34 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. ...
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
61 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
40 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
71 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
88 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
4answers
738 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
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
351 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
180 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
119 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 ...
6
votes
2answers
171 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
65 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
44 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
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 ...
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
536 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
116 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
68 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
190 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*} ...
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
218 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
2answers
271 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
88 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
346 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} \\ ...
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 ...
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 ...
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} ...
3
votes
2answers
111 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
80 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, ...
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 ...
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
589 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
104 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 ...
3
votes
2answers
79 views

Align equals inside case statement

I have the following code: \begin{equation} \frac {\partial C}{\partial {z_k}}= \begin{cases} - \frac {1} {y_i} {y_i} (1-{y_i}) = y_{i} - 1 & k = i \\ \frac {1} {y_i} {y_{i}^{2}} = y_{i} ...
2
votes
2answers
99 views

Multiline text in multiline equation

I have an assignment to copy the picture below in LaTeX. I got stuck with the (A.4) equation in attached picture. Specifically, I need the text part of that equation to be in two lines but the way I ...
3
votes
1answer
63 views

Text hypenation inside array-typed environment

I'm trying to write a cases or array environment, inside display mode, with some long line of text. The thing is I can't achieve a linebreak. I know for certain that array won't allow this. I also ...
4
votes
1answer
51 views

Cases environment problem, when used with subscript

I am trying to use the cases environment but I get the message, missing $ inserted. \begin{cases} deg(u_i) \textrm{ if u_i on primary diagonal} \\ -1 & \textrm{ if u_i u_j ...
3
votes
0answers
135 views

hyperref + subequations warnings

This is a follow up question to How to hide known warnings? Recently I decide to stop ignoring LaTeX warnings :), and start trying to discover what's behind them and how to avoid them in future ...
4
votes
1answer
369 views

How to use glossaries for different grammatical acronym forms?

I'm writing a paper in German and am struggling with how to make glossaries work for me. In German, there are 4 different cases, and depending on which combination a gender, case, singular/plural and ...
3
votes
1answer
108 views

How can I adjust the position of multiple \vdots after multiple \begin{cases}?

Here's a MWE: \documentclass[12pt]{article} \usepackage{amsfonts, amsthm, amsmath, amssymb} %===== \begin{document} \begin{multline*} \\ % \text{Text} \begin{cases} AAA\\ AAA \end{cases}\\ % ...