[Tugindia] cases with multiple tabs
Ashis Kumar Mal
akmal at ece.iitkgp.ernet.in
Thu Aug 21 12:23:52 CEST 2003
Thanks Herbert. For a prompt and very nice code.
I was wondering, why cases were not built
with multiple tabs, very often needed to
align materials in right hand side. I mean
without using phantom etc.
With regards,
Ashis Kumar Mal
Kharagpur
On Wed, 20 Aug 2003, Herbert Voss wrote:
> 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}
> \]
>
> _______________________________________________
> Home: http://www.tug.org.in/
> unsubscribe: http://tug.org/mailman/listinfo/tugindia
>
More information about the tugindia
mailing list