Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is there a way of playing with align, alignat, numcases etc environments that produces aligned and numbered equations which look like this :

Blahblah text before equations :

      A = B  \iff  C = D             (1)

                   { C_1 = D_1       (2)
             \iff  {
                   { C_2 = D_2       (3)

             \iff  E = F             (4)

Blahblah text after equations

Any suggestion greatly appreciated.

it looks like the numcases environment from the cases package would do the job. but it seems not allowed inside an align environment. the following minimal example won't compile. with :

A = B &\iff C=D\\
    C_1 = D_1\\
    C_2 = D_2
&\iff E=F

i get :

Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
For additional information on amsmath, use the `?' option.
(/usr/share/texmf-dist/tex/latex/cases/cases.sty) (./attempt.aux)
! Missing \endgroup inserted.
<inserted text> 
l.12 \end{align}

share|improve this question
I'm not sure why two equations to be considered simultaneously should receive a number each. –  egreg Oct 17 '12 at 15:22
Welcome to TeX.SE. –  Peter Grill Oct 17 '12 at 16:42
Related: Equation tags for parts of alignments. –  Hendrik Vogt Oct 18 '12 at 10:31
@egreg: Why did you delete your answer? It's a hack, but it does what the OP wants! –  Hendrik Vogt Oct 18 '12 at 11:33
@HendrikVogt I was waiting for someone else to answer –  egreg Oct 18 '12 at 16:41

1 Answer 1

A = B &\iff C = D \\
&\iff I=J

enter image description here

share|improve this answer
This is just too complicated back then. Now after three years, is there a new solution? If I only have equation (2)(3) as in the above and I want: the left bracket, the align, the numbering? –  Troy Woo Jan 28 at 18:58
@TroyWoo Look at the empheq package that has just what you're looking for. –  egreg Jan 28 at 21:54
very powerful...thank you. –  Troy Woo Jan 28 at 22:03

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.