3
votes
2answers
85 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} $$ ...
3
votes
2answers
33 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} ...
3
votes
2answers
84 views

align nested in cases

Code \documentclass[a4paper,twoside,12pt]{book} \usepackage{amstext} \usepackage[utf8]{inputenc} \usepackage{cases} \usepackage{amsmath} \begin{document} ...
4
votes
1answer
63 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
4answers
190 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 ...
4
votes
2answers
139 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 & ...
4
votes
2answers
237 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 ...
2
votes
1answer
208 views

Bad formating with align + cases and long equations

This is what I have so far: Formatting in section 1 is a joke. I can't even read the cases. Under section 2 I cheated with a manual line break \\ and a parbox. Still the result disgusts me. ...
4
votes
2answers
96 views

how to align texts in equation cases

I need to make an equation case with text following it. That text should be displayed in the middle of the two cases. This is my code: \begin{eqnarray}\label{eq13} a_k = \begin{cases} 1 & ...
6
votes
2answers
148 views

Alignment between material inside and outside a cases environment

In the code below, I'd like to make the i=0,\ldots,n. line up, in the output, with the cases in the first part of the definition. Ideally, the full-stop would align with the semicolons and comma. ...
5
votes
1answer
274 views

A piecewise function with fractions and without tiny text

I would like to create a piecewise function which includes fractions. But the solutions I have found so far squish the fractions in to tiny text that is nearly illegible. The cases environment ...
16
votes
2answers
819 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 \\ ...
8
votes
4answers
268 views

How can I align at relation symbols within a cases environment?

I have used the following code in LaTeX - \documentclass{article} \usepackage{amssymb,amsmath} \begin{document} \begin{table}[H] \centering \begin{tabular}{c|c} \hline { $X=y+z$} & { ...
4
votes
3answers
318 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 ...
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: ...
2
votes
3answers
9k 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;& ...
9
votes
1answer
8k 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 ...