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
103 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
79 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
53 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
49 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
31 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
54 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
32 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 ...
3
votes
1answer
36 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 ...
2
votes
0answers
39 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 ...
3
votes
1answer
92 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
53 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}\\ % ...
3
votes
2answers
75 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
142 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
1answer
41 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
127 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
46 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
60 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
73 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
41 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 ...
4
votes
1answer
55 views

Horizontal alignment with align and cases

I have a cases environment inside an align environment, and I'm trying to align part of one line of the align environment with part of the cases environment via an ugly \phantom command. Here's a ...
10
votes
1answer
189 views

How can I add circles and arrows in linear equation systems?

How can I write a linear equation system that uses circles and arrows to indicate what should be added on each line. This is what I have so far: $S = \begin{cases} x_1+2x_2 - 2x_3 = 1 \\ ...
5
votes
2answers
198 views

Breaking equations in cases environment

Similar questions have been asked before, but my problem is a little different: \begin{equation} E_K \approx \begin{cases} - \sum\limits_{i = 1}^{N} K_1 \bri \left( \mathbf{m \bri} \cdot \unit{u} ...
2
votes
1answer
37 views

Cases environment with SIAM document class

It seems as though the SIAM class does not play nice with the cases environment. For example $$ \begin{cases} x & y \end{cases} $$ will produce the error misplaced alignment tab character ...
4
votes
1answer
85 views

Aligning variables vertically in a cases environment

I'm creating a system of equations in LaTeX, using a cases environment, with variables $x_1$, $x_2$, $x_3$ and $x_4$. Here's my MWE: \documentclass[a4paper,12pt,onecolumn]{article} ...
10
votes
4answers
171 views

Aligning numbering in a system of equation so it's centered

In the following code ... $\begin{cases} 2y+4x=9 & \text{(I)} \\ 3x-2x=10 & \text{(II)} \end{cases}$ ... I want the (I) to be centered above (II). Right now they are aligned above each ...
2
votes
1answer
80 views

delimiter size in cases environment

How can I change delimiter (brace) size in cases environment (for piece-wise function)? \begin{equation} f(x)=\begin{cases} \end{cases} \end{equation}
3
votes
2answers
104 views

How to make the bracket smaller?

The two big brackets are the same big, I dislike that. I want to keep the second one smaller, and let the space between the equation a little bit smaller. How could I do that? Thanks! ...
3
votes
1answer
233 views

Subequation number not shown (empheq+amsart)

This is a Follow-up question to Number equations within array In the original post I was asking about the basics of subnumbering equations and I got satisfactory answers so I could implement the ...
1
vote
2answers
104 views

Adding a large brace before a body of text

How to write the above using Latex ?
1
vote
1answer
64 views

Cases environment left alignment

As I understand, cases environment is centered by default: How to make it left aligned?
9
votes
3answers
102 views

Cases environment without the brace

I want to vertically align one equation against two, similar to the cases environment but without the brace: e.g. similar environment to: There must be another solution to the alignment solution ...
10
votes
3answers
176 views

How to provide more horizontal space between cases in a system?

I have the following ugly system: This is my LaTeX code: \newcommand{\Aaa}{\begin{bmatrix} 1 & 0 \\ 0 & -1\end{bmatrix}} \newcommand{\Ba}{\begin{bmatrix} 0 & 1 \\ -1 & ...
2
votes
3answers
126 views

math cases package problem

I am preparing a presentation with beamer. I want to use a math formulas that contains a cases \begin{cases}{|x|=} x, & for $x \geq 0$\\ -x, & for $x < 0$ \end{cases} the problem in ...
7
votes
2answers
226 views

How to typeset piecewise-defined functions? [duplicate]

I am attempting to write out the basic process for finding the absolute value of some number. In ASCII, this is what I am attempting to write. |X| = { x if x > 0 0 if x = 0 ...
4
votes
2answers
169 views

Vertical skip for the operator \cases

I would like to create a formula with the operator \cases, whose lines contain sums: \begin{cases}\sum (...) \\ \sum (...) \end{cases} Expressions in the sums are huge, and it would be natural to ...
8
votes
1answer
78 views

Mismatching symbol size in cases environment with acronym package

I'm running into trouble using the acronym package when I set math formulas in the cases environment. Looking at the following MWE, you will notice that inside the arccot "gamma" and "p" are smaller ...
4
votes
2answers
138 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 & ...
1
vote
0answers
57 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
212 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
106 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
232 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
1k 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
147 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
87 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
53 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
88 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
272 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
166 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
436 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
139 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} ...