TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to label some cases with specific tags, and was hoping for something like

\begin{numcases}{A = }
\frac{r}{a} & r > a \tag{G} \\
\frac{a}{r} & r < a \tag{H}

utilizing the numcasesenvironment from the cases package, and \tag from amsmath. However, the two don't seem to be compatible:

! Package amsmath Error: \tag not allowed here.

Is there any alternatives that would do what I hope to accomplish?

share|improve this question
up vote 4 down vote accepted

You can use the empheq package:


& \frac{r}{a} &&\qquad  r > a \tag{G} \\
& \frac{a}{r} &&\qquad  r < a \tag{H}

The syntax is a bit awkward, but the result seems good. You can define an environment for you personal use:


and the system before would become

& \frac{r}{a} &&\qquad  r > a \tag{G} \\
& \frac{a}{r} &&\qquad  r < a \tag{H}
share|improve this answer
Fantastic! Thanks! – Tomas Lycken Nov 17 '11 at 21:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.