# [Tugindia] cases with multiple tabs

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Wed Aug 20 22:41:42 CEST 2003

Ashis Kumar Mal schrieb:

> I tried to use cases environment,  but unable
> to produce any output. I am in doubt wheather
> cases can be nested. Moreover, in cases I can't
> use more than one tab(&).
> I wish to  align "if" s and "<" s .

maybe this helps

Herbert

\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
$z= \begin{cases} f(x) \begin{cases} +x & \text{if}\quad\frac{\hphantom{3}N}{4} < x < \frac{3N}{4}\\ -2x & \text{if}\quad\frac{3N}{4} < x < N \end{cases}\\ ~\\ f(y) \begin{cases} -2x & \text{if}\quad\frac{\hphantom{3}N}{4} < x < \frac{3N}{4}\\ +x & \text{if}\quad\frac{3N}{4} < x < N \end{cases}\\ \end{cases}$