I want to include two sets of equations side-by-side in a table. Here is my example:
\documentclass{article}
\usepackage{amsmath}
\newcommand{\eqnbox}[2]{
\begin{minipage}[c]{#1\linewidth}\begin{equation*}\begin{aligned}
#2
\end{aligned}\end{equation*}\end{minipage}
}
\begin{document}
\begin{center}
\begin{tabular}{c|c}
first set & second set\\
\hline
\eqnbox{.3}{
x &= \frac{1}{2}\\
y &= \frac{1}{3}\\
z &= 3
} &
\eqnbox{.3}{
x &= 2\\
y &= 3\\
z &= 3
}
\end{tabular}
\end{center}
\end{document}
I have tried
- aligning the rows but putting each equation in
$$, but then I cannot align vertically by the=sign. - laying out the entire table using
align, but then cannot put a vertical line down the middle. - adjusting the height of the box by using the height argument to
minipage, e.g.\begin{minipage}[c][30pt]{#1\linewidth}, or enclosing theminipageenvironment withinraisebox, e.g.,\raisebox{0pt}[30pt][30pt]{}.
No luck so far -- any suggestions?

