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 the middle one is text, right aligned.
I have now found the solution that I want using tabularx:
\left\{
\begin{tabular}{>{$}r<{{}$}@{}>{${}}l<{$}r>{$}r<{{}$}@{}>{${}}l<{$}}
&\frac{n(x)}{1+j^2F^2} & for & j&=0\\
2&\frac{\cos(jk)}{1+j^2F^2}f_j^{\FD}(n(x))& for & j&>0\\
2&\frac{\sin(jk)jF/\tau}{1+j^2F^2}f_j^{\FD}(n(x)) & for& j&<0
\end{tabular}
\right.
(I put the extra braces inside the column definition so that that operators near the alignment character remain relative, which is the usual intention)
My question is two fold really:
Is there a package or a command that does this (I think that cases is supposed to but I still need to use
\text{}which is annoying)?What is the best way to turn this into an environment so that I can simply write
\begin{mycases} &\frac{n(x)}{1+j^2F^2} & for & j&=0\\ 2&\frac{\cos(jk)}{1+j^2F^2}f_j^{\FD}(n(x))& for & j&>0\\ 2&\frac{\sin(jk)jF/\tau}{1+j^2F^2}f_j^{\FD}(n(x)) & for& j&<0 \end{mycases}






:)– Will Robertson Feb 7 '11 at 12:40