Questions tagged [cases]
The {cases} environment is provided by the {amsmath} package to typeset cases in math. The {mathtools} package introduces extensions, e.g. the cases* and dcases environments.
22
questions with no upvoted or accepted answers
4
votes
0
answers
366
views
\eqref and cases package
I want to use a custom tag for some equations, but I'm not being allowed to. Here is an MWE:
\documentclass{article}
\usepackage{amsmath,cases}
\begin{document}
\begin{equation}
x=y\tag{...
4
votes
0
answers
1k
views
More space between the lines in cases
I'm using the cases environment in one of my formulas. Each case is a fraction so I'm using \displaystyle to let them appear bigger. However, the result looks quite ugly because there is no space ...
3
votes
0
answers
119
views
How can I remove the extra vertical space above the first equation in a cases environment?
This problem seems to be related to the AIAA class that I have to use to submit the paper that I am writing, as I cannot reproduce it with other classes.
The latest Aiaa.cls class file can be ...
2
votes
1
answer
111
views
alignment of subnumcases in the page
I want to label each case in cases so I used subnumcases environment.
However, it seems like what is centered is the first letter, not the entire chunk.
I made a MWE with the packages I need for my ...
2
votes
0
answers
140
views
Curly bracket for subequation enviroment using the mtpro2 v. lite
Remembering the very nice answer given by the user @Mico, Curly braces using mtpro2[lite]: fix correct alignment, it has been used into an equation the enviroment
\ccases{\begin{aligned}.....\end{...
1
vote
0
answers
108
views
Inconsistent spacing in cases environment
I'm working with the document below and noticed a bizarre inconsistency in vertical spacing in the cases environment. Ideally, I'd like the red and blue boxes to be the same height no matter what the ...
1
vote
0
answers
46
views
Cases in Farsi text
I want to use case in Farsi text.Something like this:
Thank you
1
vote
0
answers
180
views
Decreasing horizontal space between cases environment and `\Rightarrow`
\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\[
\sum\vec{F}= 0 \Rightarrow
\begin{cases}
\frac{{\partial {\sigma _{xx}}}}{{\partial x}} + \frac{{\partial {\sigma _{yx}}}}{{\...
1
vote
0
answers
357
views
How to insert dcases environment in LyX?
I have the same problem as here. The proposed solution was to use dcases or dcases* environment. How to do that in LyX? Insert->Math menu has only "Cases Environment".
1
vote
0
answers
124
views
Dotfill inside cases in enumerate
I want two (or three) equations in cases and I want to have some text in every row. The text should be right aligned and I want dots between the equation and the text, just like it is when I don't ...
1
vote
0
answers
777
views
Enumerating cases(Case 1, Case 2, etc.) inside problems
I am a beginner at latex and I was wondering how to enumerate cases. I tried to use \begin{case}, but the numbering is off. If I had multiple problems that involved cases, the numbering doesn't ...
0
votes
0
answers
45
views
Nested systems of equations with left brace and referenceable sub-equations
I am trying to make a system of equations that contains a sub-system of equations. The equations should be numbered with arabic numbers (e.g. 1, 2, ...) and the sub-equations with a combination of ...
0
votes
0
answers
85
views
Setting different vertical spacing in text and math mode
I'd like to vertically stretch the spaces between lines in the text parts of my documents a bit more, while keeping the math mode parts as close as usual, avoiding excessively high cases environments, ...
0
votes
0
answers
38
views
How to decrease the vertical spacing in cases environment?
I have a few lines of code. I want them to align at the equals sign, and also shrink the brace for phi using cases environment. The curly brace sticks out at the top and bottom, which is a little ...
0
votes
0
answers
79
views
Case changing and detecting with expl3 that works for all engines
As noted in interface3.pdf, commands such as \str_case_e:nn are engine-related. Thus
\str_case_e:nnF {\text_titlecase:n {a}} { {A} {true} } {false}
will result in true for all engines, while
\...
0
votes
0
answers
444
views
Writing multiline equation inside algorithmic pseudocode environment
I have the following code which produces the algorithm in the image.
\documentclass{article}
\usepackage{algorithm}
\usepackage{algorithmicx}
\usepackage{algpseudocode}
\begin{document}
\begin{...
0
votes
0
answers
59
views
Left align piece-wise equation written with cases
I have a piece-wise function written with numcases, but it is aligned to the center.
I already have fleqn and \setlength{\mathindent}{0pt} in the preamble. All the previous equations I have written ...
0
votes
0
answers
377
views
Too short spacing of `cases` with `\useshortskip`
This is an Overleaf MWE.
Code from the example:
\documentclass{book}
\usepackage{indentfirst}
\usepackage{nccmath} % align & gather doesn't use shortskip: https://tex.stackexchange.com/a/...
0
votes
0
answers
40
views
Problem writting an equation
It's me again. I'm trying to write this equation:
I wrote this way in Latex:
\begin{document}
\usepackage{amsmath}
\begin{eqnarray*}
(M - I) \cdot v = 0 &\Leftrightarrow&...
0
votes
0
answers
291
views
Cases environment doesn't work
I'm trying to write this:
$$\begin{cases}
2a - b = 3 \\
a + 2b = 4 \\
3c - d = 1 + i \\
c - 3d = -i
\end{cases} \Longrightarrow
\begin{cases}
2a - b = 3 \\
a = 4 - 2b \...
0
votes
0
answers
277
views
The incompatibility between package colortbl and the \begin{cases}...\end{cases} environment
Here is the code I have problem with:
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{colortbl}
\begin{document}
\begin{equation}
f(x) = \begin{cases}
1, &\mbox{if $x=1$} \\
2, ...
0
votes
0
answers
161
views
Is there an equivalent to the cases environment for proofs?
The cases environment is nice for displaying equations with multiple cases and short descriptions, but it is awkward for displaying proofs with multi-paragraph cases. Is there an equivalent set of ...