<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-ZA link=blue vlink=purple>
<div class=Section1>
<p class=MsoPlainText>Hi<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Thanks for the help. When I run the version below I get
this error:<o:p></o:p></p>
<p class=MsoPlainText><img width=628 height=114 id="Picture_x0020_1"
src="cid:image001.png@01C99DC9.27537CE0"><o:p></o:p></p>
<p class=MsoPlainText>Regards<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Angela Rademeyer<o:p></o:p></p>
<p class=MsoPlainText>OPSI SYSTEMS<o:p></o:p></p>
<p class=MsoPlainText>082 498 9332<o:p></o:p></p>
<p class=MsoPlainText>(011) 880 7951 ext. 225<o:p></o:p></p>
<p class=MsoPlainText>www.opsisystems.com<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><span lang=EN-US>-----Original Message-----<br>
From: Axel E. Retif [mailto:axel.retif@mac.com] <br>
Sent: 05 March 2009 08:29 AM<br>
To: Angela Rademeyer<br>
Cc: support@tug.org<br>
Subject: Re: [texhax] Tex question - cases environment</span><o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>On 4 Mar, 2009, at 14:01, Angela Rademeyer wrote:<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>> \begin{equation*}<o:p></o:p></p>
<p class=MsoPlainText>> a_{ig} =<o:p></o:p></p>
<p class=MsoPlainText>> \begin{cases}<o:p></o:p></p>
<p class=MsoPlainText>> 1 & \text{if customer $i$ belongs to profile
group $g$}\\<o:p></o:p></p>
<p class=MsoPlainText>> 0 & \text{otherwise}\\[.3cm]<o:p></o:p></p>
<p class=MsoPlainText>> \end{cases}<o:p></o:p></p>
<p class=MsoPlainText>> \end{equation*}<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>First, in your preamble,<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>\usepackage{amsmath}<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>then,<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>\begin{flalign*}<o:p></o:p></p>
<p class=MsoPlainText>a_{ig} =<o:p></o:p></p>
<p class=MsoPlainText>\begin{cases}<o:p></o:p></p>
<p class=MsoPlainText>1 & \text{if customer $i$ belongs to profile group
$g$}\\<o:p></o:p></p>
<p class=MsoPlainText>0 & \text{otherwise} \\[.3cm]<o:p></o:p></p>
<p class=MsoPlainText>\end{cases} && %% <------------------ these
two &&<o:p></o:p></p>
<p class=MsoPlainText>\end{flalign*}<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>If you use TeXLive 2008 or a recent MiKTeX, I think you
should have<o:p></o:p></p>
<p class=MsoPlainText>Mathmode.pdf; in your terminal or command prompt,<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>texdoc mathmode<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Best,<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Axel<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
</div>
</body>
</html>