the cases environment is provided by the amsmath package- the mathtools package introduces extensions of it (dcases, etc)
4
votes
3answers
120 views
2 left alignments under cases
I would like to align something under cases as follows:
value1 if condition
value2 line1ofvalue2... otherwise
line2ofvalue2..
line3ofvalue2.
First, there are ...
0
votes
2answers
254 views
How to denote a logical matrix (mask) as used in image processing?
Updated Below
In my thesis, I am discussing an image processing mask, which is a matrix of the same size as some image but with ones where that image meets some criteria and zeroes elsewhere. I am ...
2
votes
3answers
6k views
how to insert multi line equation in the tabular environment?
How can insert multi line equation in the tabular environment?
For example see the following code that can show my request.
\begin{tabular}{rrr}
&a &b\\
&u=\begin{cases} 0;& ...
1
vote
1answer
184 views
how to import multiple branch cases structure into LaTeX document.
Could I set up a structure for several cases so that I could get a TeX command branch say, behavior as below:
if case A
if case A1
\cmdAi{arg1}
elseif case A2
\cmdAii{arg2}
elseif case A3
...
2
votes
1answer
153 views
what are the ways to align conditions in cases
For example, the following is not very nice:
[f(x)]_N=\begin{cases}
f(x) \text{ if } f(x) \le N, \\
\newline N \text{ if } f(x) \gt N.
\end{cases}
How can I make it nicer?
3
votes
1answer
149 views
How can I flush text left in the cases environment?
I have the following code:
\documentclass{article}
\usepackage{amsmath, amssymb, amsthm, graphicx, textcomp}
\begin{document}
d^2(A,B)=\begin{cases}
(a_1-b_1)^2(1+m^2) &&\text{if $AB$ has ...
1
vote
0answers
581 views
Multipage “dcases” environment [closed]
I am using the "dcases" environment of the "mathtools" package with nested other environments inside it. The whole expression does not fit on a single page and so I am wondering if it is possible to ...
8
votes
3answers
1k views
Cases with square brackets
How can I subdivide in cases with square brackets?
I mean I want to write:
⌈ 2_i if ...
rank (q, l) = | 2_i + 1 if ...
⌊ ....
with square brackets, not ...
14
votes
9answers
726 views
Looking for a more appropriate version of \cases
Often-times I find myself wanting to write something like,
That is, a vertical brace followed by a table consisting of three columns, the first and the last are math, aligned where-ever I like, and ...
3
votes
1answer
846 views
Newline in a “cases” environment
I have the same issue as in this question: Split-like environment inside cases environment with one difference - I would like to get the same result with LyX, using as little LaTeX code as possible. ...
13
votes
2answers
2k views
Split-like environment inside cases environment
I'd like to have a cases environment with some cases that are too long to fit on one line. I tried this:
\begin{cases}
\begin{split}
long expression \\ second line of long expression
...
7
votes
1answer
4k views
Aligning the right parts in multiple \begin{cases}
Is there an intelligent way to left-align the parts right of & of the two cases environments shown below (if x >= 0, otherwise, if y < 0, otherwise). I wonder if there is a better way than ...
6
votes
2answers
560 views
Proper punctuation after cases environment
I know that when writing a displayed equation, it's correct to write punctuation before the closing \] as follows:
This proves \[ x^2 = 3, \] and it follows that \[ x = \pm\sqrt{3}. \]
If I'm using ...