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

Consider the following example:

    &a+b=c, \\

enter image description here

Is there a way to set up two equation tags, one per line in the aligned environment?

share|improve this question
up vote 5 down vote accepted

You can do this by using the empheq package from the mh bundle. See code below for an example.

\usepackage{mathtools}       % loads »amsmath«

    a+b &= c \\
    x &= y+z

enter image description here

share|improve this answer

Just a different way of obtaining the same result:

enter image description here

\usepackage{amsmath}% http://ctan.org/pkg/amsmath
    a+b &= c, \\
  x &= y+z.

The key here is to set the "left-hand side" separately from the "right-hand side" and align the two using some vertical movement.

share|improve this answer
Note that this works great only if the two lines have "usual" height; e.g., it breaks if they contain fractions. – Hendrik Vogt Oct 13 '12 at 6:47

A bit late probably but, if this was CodeGolf, I would win ;) using numcases environment from cases package:




I kept a aligned with x like in the question, otherwise & can be used to adjust alignment as in aligned or align environments.

share|improve this answer

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.