[texhax] Tex question - cases environment

Axel E. Retif axel.retif at mac.com
Fri Mar 6 00:07:03 CET 2009


On  5 Mar, 2009, at 13:48, Angela Rademeyer wrote:

> Hi
>
> Thanks for the help. When I run the version below I get this error:
> <image001.png>

I really don't see why. Can you try with the short document below? It  
typesets fine for me.

%%%%%%% from here %%%%%%%%%
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{flalign*}
a_{ig} =
\begin{cases}
1 & \text{if customer $i$ belongs to profile group $g$}\\
0 & \text{otherwise} \\[.3cm]
\end{cases} && %% <------------------ these two &&
\end{flalign*}
\end{document}
%%%%%% to here %%%%%%%%%%%

Best,

Axel


More information about the texhax mailing list