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

learn more… | top users | synonyms

8
votes
4answers
562 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
30 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 ...
6
votes
3answers
285 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
154 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
105 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
84 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
46 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
34 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
32 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
42 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
115 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
94 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
42 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
49 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 ...
8
votes
4answers
184 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
230 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
138 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
25 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
150 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
135 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
66 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
108 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
280 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
86 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
119 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
70 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
94 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
66 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
63 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
69 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
225 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
109 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
286 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
75 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
62 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
86 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
50 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
48 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
98 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
272 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
91 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}\\ % ...
4
votes
2answers
131 views

numberstringnum or numberstring in lowercase

I have tried a lot to use the \numberstringnum and \numberstring macros but it appears incomplete or even do not appear on the text. So I tested in the female version, like below: ...
6
votes
3answers
481 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
364 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
150 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
115 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
64 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
124 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
154 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 ...