[texhax] Tex question - cases environment
Angela Rademeyer
angela.rademeyer at opsi.co.za
Thu Mar 5 20:48:02 CET 2009
Hi
Thanks for the help. When I run the version below I get this error:
[cid:image001.png at 01C99DC9.27537CE0]
Regards
Angela Rademeyer
OPSI SYSTEMS
082 498 9332
(011) 880 7951 ext. 225
www.opsisystems.com
-----Original Message-----
From: Axel E. Retif [mailto:axel.retif at mac.com]
Sent: 05 March 2009 08:29 AM
To: Angela Rademeyer
Cc: support at tug.org
Subject: Re: [texhax] Tex question - cases environment
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/texhax/attachments/20090305/22f6a08e/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 5827 bytes
Desc: image001.png
Url : http://tug.org/pipermail/texhax/attachments/20090305/22f6a08e/attachment.png
More information about the texhax
mailing list