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

learn more… | top users | synonyms

1
vote
2answers
40 views

How to typeset a “compact” cases environment

What's the proper way to typeset a cases environment in a compact way? I tried the following: \begin{equation*} \setlength{\jot}{0pt} \lambda = \tiny \begin{cases} -8.30767 x^3+702.515 x^2-1905.35 ...
1
vote
0answers
28 views

Separate numbering of cases within align [duplicate]

I have one instance of cases within the align environment, as follows: \documentclass[a4paper]{article} \usepackage{amsmath} \begin{document} \begin{align} f(x) &=1x \\ g(x) &=\begin{cases} 2 ...
4
votes
1answer
58 views

Aligning chemical elements in a reaction equation

As pictures tell the issue better than I could I'm just gonna insert a screenshot of the problem right off the bat. My problem is concerning the undesired whitespace between the second column of ...
4
votes
1answer
23 views

Align equations which already have aligned answers (alignment-ception)

I'm trying to align equations with already aligned case by case answers in them What I am currently getting is: and what I need is to align all the equals signs throughout the function The ...
1
vote
1answer
27 views

How to expand \cases in Lyx when using \sum?

I need to write a case differentiation in LyX which contains sums but here is the problem. This A=\begin{cases} -\sum_{j\text{=1}}^{N}a_{j}^{(1)} & \text{}\\ -\sum_{j\text{=1}}^{N}a_{j}^{(2)} ...
4
votes
3answers
116 views

Need \qedhere to be flush with the right margin in cases environment

How can I do this? When I put \qedhere in cases environment, the square is between the margins somewhere. It is not where the square appears in the usual proof environment, at the right margin. ...
2
votes
1answer
45 views

Monospace font in cases environment

I have this code: \[ text \begin{cases} text, text \rightarrow text\\ text \rightarrow text, text, text, text text \end{cases} \] ... \[ text \begin{cases} text text \rightarrow text, text text, ...
4
votes
1answer
60 views

Command “&” is not working

I am new to TeX and I am trying to write the following \begin{equation} N_{a,0}\begin{cases} R_{0,0} & a=0\\ N_{a-1,0}e^{-m} & 1\leq a\leq a_{max}-1\\ N_{a-1,0}e^{-m}/1-e^{-m} & ...
5
votes
1answer
34 views

rotate text in {align} formula, move {cases} to back, and wrap text

I'm writing some formulas where I would like to move the cases bracket to the back, rotate some text, and wrap some text, among other things. I've made a working example of how far a got and a ...
4
votes
1answer
56 views

Amsmath Cases syntax

The amsmath cases environment seems to require being placed within \[...\]. What is that syntax? Amsmath documentation does not include these square brackets, yet cases won't compile without them.
2
votes
1answer
31 views

Function multiple cases horizontal spaces

I have a multi cases function which almost exceeds the page bounds because of long definition of the second case. How would you suggest me doing this otherwise to make the document look more ...
5
votes
2answers
75 views

Numbering cases within cases

I am stuck with a formatting problem: I have a system with cases within cases, and I would like each subcase to be numbered. Here is a MWE of what I got for the moment: \documentclass[12pt, ...
2
votes
2answers
135 views

Remove space after cases environment

After I write a begin cases environment, usually there appears a big space which bothers me. I do not know how to remove it. $\Hom(V,U)=\begin{cases}\{i:V\rightarrow U\vert i(v)=v, \forall v\in V\}, ...
0
votes
0answers
37 views

brackets in cases

How can I control the size of brackets so that there will be symmetrical in relation of my equations? My code is: \documentclass{article} \usepackage{xltxtra} \usepackage{xgreek} ...
0
votes
2answers
28 views

alignat with right curly bracket/cases spanning some but not all lines

Currently I am trying something that should be possible, but I cannot figure out how to make it work. I'm using alignat to make a 2-point align for the entries of five lines of math-code. I want to ...
2
votes
2answers
97 views

Instead of the left open brace, if I want an Arrow mark, how I can do it?

\begin{cases} First line\\ Second line\\ third line\\ \vdots \end{cases} is giving like, Instead of the left open brace, if I want an Arrow mark, how I can do it? One way is this, ...
4
votes
3answers
131 views

Left aligning and breaking equations in cases environment

I have a equation that needs to be left aligned within the cases environment. Here's my code so far, which does not work: \documentclass{article} \usepackage{amsmath} ...
2
votes
1answer
21 views

wider space for case equations

I am trying to write lots of simultaneous equations. But as you can see from the image, inserting one space and two spaces both look ugly. This is the code I use to generate these two equations ...
2
votes
1answer
47 views

Case Sentence With xstring

I have a LaTeX document that gives me the following error: ! Argument of \@xs@IfStrEq@@ has an extra }. The document is as follows: \documentclass{article} %PAQUETES ...
4
votes
2answers
70 views

Tabbing alignment and over-length sentence auto line break

【Question】When using "tabbing" under math mode with cases, how can I achieved the following at the same time: (1) alignment in cases by "tabbing" (2) over length element such as a long sentence in ...
1
vote
1answer
33 views

Cases with brackets instead of curly brackets

How could I use cases with [] (both sides) instead of curly bracket as the attached picture shows? Thank you.
1
vote
1answer
48 views

How to leave more room between two lines

I have this case formula which I need to make a little more readable by adding a little more space, vertically, between the two cases. \begin{cases} f = -\frac {w_1*m + w_2*\frac{-d}{d_M} + ...
1
vote
1answer
52 views

overriding \everymath color: Is there an efficient way to apply color on every line for all arrays, and doing the same for cases as well?

TLDR; How does one efficiently apply color on every line of every array to override the color by \everymath? i.e from to (A compilable example of this is at the bottom) Is there a way to ...
5
votes
2answers
135 views

Two cases brackets in one line, aligned to a formula in a second line

I am trying to align two cases environments to a formula: schematically: A = B +C = {cases1 +{cases2 where B+cases1 and C+cases2 are aligned. I read about the \alignat{3} option, but I ...
3
votes
2answers
760 views

Typesetting a function defined by case analysis

Can any one suggess me the code to write this equation in LaTeX.
3
votes
2answers
49 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
113 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 ...
2
votes
2answers
63 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
133 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
53 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
79 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
150 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 ...
12
votes
4answers
17k 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
53 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
473 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.
5
votes
2answers
239 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
142 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
424 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
120 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
67 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
52 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
70 views

Increase the thickness of a brace [duplicate]

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
1k 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
150 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 \\ ...
2
votes
1answer
98 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
97 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
204 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
260 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
536 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 \ ...