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 want to include two sets of equations side-by-side in a table. Here is my example:

first set & second set\\
  x &= \frac{1}{2}\\
  y &= \frac{1}{3}\\
  z &= 3
} &
  x &= 2\\
  y &= 3\\
  z &= 3

I have tried

  1. aligning the rows but putting each equation in $$, but then I cannot align vertically by the = sign.
  2. laying out the entire table using align, but then cannot put a vertical line down the middle.
  3. adjusting the height of the box by using the height argument to minipage, e.g. \begin{minipage}[c][30pt]{#1\linewidth}, or enclosing the minipage environment within raisebox, e.g., \raisebox{0pt}[30pt][30pt]{}.

No luck so far -- any suggestions?

share|improve this question

migrated from stackoverflow.com Feb 14 '11 at 19:42

This question came from our site for professional and enthusiast programmers.

up vote 2 down vote accepted

Use an array instead of the tabular and put the single equations side by side, not the blocks.


\MCA{first set} & \MCB{second set}\\\hline
  x &= \frac{1}{2} &   x &= 2\\
  y &= \frac{1}{3} &   y &= 3\\
  z &= 3           &   z &= 3


enter image description here

share|improve this answer
Ah, I like this for the position arguments permitted by array and the vline specifications which I did not know about -- very awesome. – crippledlambda Feb 15 '11 at 12:09

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.