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

learn more… | top users | synonyms

20
votes
4answers
3k views

Separate labels in cases

As much as I have tried, it doesn't seem possible to use separate labels when using a casesconstruction (from the amsmath package). Ideally, I would like to be able to write something like ...
13
votes
2answers
4k 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 ...
16
votes
2answers
896 views

How to align nested cases?

Please consider the code bellow: \begin{align*} function = \begin{cases} case1 &\mbox{if } n = 0 \\ \begin{cases} case2 &\mbox{if } n = 1 \\ ...
10
votes
3answers
468 views

TeX capacity exceeded while parsing a date string

I'm trying to parse a date (say, a due date) in a DD-MMM-YYYY format, e.g., 06-May-2012 and create macros \dueday, \duemonth, and \dueyear. I use xstring's commands to extract the substrings. Then I ...
11
votes
7answers
310 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 ...
20
votes
3answers
9k views

How to put a brace on the right, not left, to group cases?

How can I get a brace on the right, not the left, to group cases, using cases? (I know actual cases look better with the brace on the left, but the items I need to group are not literally cases. They ...
2
votes
1answer
2k views

Numbering equations in cases environment separately

I have a problem with separate numbering of equations. My code is: \documentclass[10pt,a4paper]{article} \usepackage{amsmath} \usepackage[subnum]{cases} \begin{document} ...
11
votes
4answers
5k views

Aligning plain `align` and `cases`?

The cases environment works very well for enumerating cases within a large left bracket. I'd like to be able to combine it with the align environment so that equals-signs and conditions also line up: ...
8
votes
3answers
446 views

How to force alignment of “cases” brackets in an enumerate environment?

I am using the enumitem and amsmath packages to give the recursive definition of the valuation function $\nu$ for classical first order logic. The way I have it set up, the brackets of the cases are ...
6
votes
1answer
3k views

line break inside cases environment

I have an equation using a cases environment, with one case with a long description text: \begin{eqnarray*} \begin{cases} 1 \text{too long description of the first case, not ...
6
votes
2answers
879 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 ...
10
votes
4answers
225 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 ...
9
votes
1answer
9k 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 ...
7
votes
1answer
367 views

Why does mathdesign result in a huge 'cases' environment brace in Tufte documents?

I'm getting strange results when I use the cases environment in Tufte-LaTeX documents with the mathdesign package. Instead of I get Is there something I can do to get rid of that huge brace? ...
7
votes
4answers
4k views

Aligning conditions in cases environment

I have a piecewise function with three "parts." I would like to have all three conditions aligned at the variable x. How do I achieve that? Here is the code I have so far: \[ f(x) = \begin{cases} ...
5
votes
1answer
90 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 ...
3
votes
1answer
369 views

prooftree from bussproofs package inside “cases” environment

I am using bussproofs package to provide some type proofs. According to bussproofs manual, it is impossible to use prooftree inside math mode. However, I would like to insert prooftree in the cases ...
2
votes
1answer
2k views

\numcases with \tag

I would like to label some cases with specific tags, and was hoping for something like \begin{numcases}{A = } \frac{r}{a} & r > a \tag{G} \\ \frac{a}{r} & r < a \tag{H} \end{numcases} ...
9
votes
3answers
2k 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 ...
7
votes
2answers
591 views

list the cases in text

I would like to list some cases which are needed to be consider in text. I didn't find a standard way to do this. There is "case" for math mode, but that is not what I want. Look the following ...
6
votes
2answers
2k views

Case equation without curly brace

I want to have a case equation without the left curly brace. I am using \documentclass[11pt,a4paper]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{amsthm} ...
5
votes
3answers
107 views

Putting a header above the cases in an equation

This question is best illustrated by an example. Consider the following code Further we can show that \begin{equation*} P_{v}(T) = ...
5
votes
3answers
238 views

How can I do this without the cases?

How can I do this without the cases? $\begin{cases} \dfrac{\partial u(x,y)}{\partial x}=2x=\dfrac{\partial v(x,y)}{\partial y} \\ \dfrac{\partial u(x,y)}{\partial y}=-2y=- \dfrac{\partial ...
4
votes
2answers
2k 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 ...
4
votes
3answers
349 views

How to right-side annotate a bracketed-together set of items in cases environment?

How to right-side annotate a bracketed-together set of items in the align environment, cases sub-environment? E.g. how to put an annotation such as "(Fermat)" where the following code would put a ...
3
votes
1answer
189 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
0answers
66 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 ...
2
votes
1answer
2k views

How to make dcases environment work in LaTeX

I'm using Kile (kde4) on Mac OS. I can use the cases environment just fine but my version of Kile doesn't have dcases. I'm using Kile via MacPorts. Does anyone know of a way to update my distribution ...
2
votes
1answer
169 views

Separate labels in cases 2

Is there a cases package that lets me label my cases as I want? The cases and subcases environments of the cases package either labels tags with consecutive numbers or not at all. I would like some ...
1
vote
1answer
118 views

How to add equation with cases inside the table

I want to include the complicated equation into one of the cells of my table. I am using tabular environment, additionally I have some multirows. I would like to add something like this: ...