# [OS X TeX] Case tags?

Vic Norton vic at norton.name
Tue Jan 14 12:45:17 CET 2014

I have a theorem that concludes with two sets of cases:

This is not what I want. I need to have equation labels for the individual cases, with (TP-) replaced by (TP0-), (TPJ-), and (TPK-), and (TP+) replaced by (TP0+), (TPJ+), and (TPK+). I can't figure out how to do this.

How do you create cases with individual equation tags? Any suggestions would be greatly appreciated.

My LaTeX code for the above image is appended below.

Regards,

Vic

### LaTeX code ###
\begin{align*} \tag{TP$-$}\label{TP-}
t_p^- &= \max
\begin{cases}
\hspace*{5ex}%
p_0/\sum_{i=1}^{n_J}v_i & \text{if}~~\sum_{i=1}^{n_J}v_i<0, \\
\hspace*{5.5ex}%
-p_{j_i}/v_i & \text{when}~~ v_i > 0~ (i=1,\dots,n_J), \\
-\left(\dfrac
{\mathbf{a}_k^T\mathbf{y}_p-b_k\lambda_p}
{\mathbf{a}_k^TA_J\mathbf{v}-b_k}\right)
&\text{when~ $\mathbf{a}_k^TA_J\mathbf{v} > b_k~ (k\in K)$,}
\end{cases}
\\ \intertext{and} \tag{TP$+$}\label{TP+}
t_p^+ &= \min
\begin{cases}
\hspace*{5ex}%
p_0/\sum_{i=1}^{n_J}v_i & \text{if}~~\sum_{i=1}^{n_J}v_i>0, \\
\hspace*{5.5ex}%
-p_{j_i}/v_i & \text{when}~~ v_i < 0~ (i=1,\dots,n_J), \\
-\left(\dfrac
{\mathbf{a}_k^T\mathbf{y}_p-b_k\lambda_p}
{\mathbf{a}_k^TA_J\mathbf{v}-b_k}\right)
&\text{when~ $\mathbf{a}_k^TA_J\mathbf{v} < b_k~ (k\in K)$.}
\end{cases}
\end{align*}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20140114/cc87df54/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TeXShopCases.png
Type: image/png
Size: 45732 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20140114/cc87df54/attachment.png>