[texhax] Tex question - cases environment
Axel E. Retif
axel.retif at mac.com
Thu Mar 5 07:28:44 CET 2009
On 4 Mar, 2009, at 14:01, Angela Rademeyer wrote:
> \begin{equation*}
> a_{ig} =
> \begin{cases}
> 1 & \text{if customer $i$ belongs to profile group $g$}\\
> 0 & \text{otherwise}\\[.3cm]
> \end{cases}
> \end{equation*}
First, in your preamble,
\usepackage{amsmath}
then,
\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*}
If you use TeXLive 2008 or a recent MiKTeX, I think you should have
Mathmode.pdf; in your terminal or command prompt,
texdoc mathmode
Best,
Axel
More information about the texhax
mailing list