[Tex/LaTex] Numbering side-by-side equations or inline equations

equationshorizontal alignmentinline()numbering

I am trying to produce a two-column table of math equations, where each cell contains its own left-justified, numbered equation.

I tried using \begin{equation} \end{equation} inside the tabular environment, or inside a description list with multicols, and I can get the numbering, but not the left-justification.

I thought about using inline math mode in the table, but how do I get those equations to be numbered? Is there a little \numberthisequation command I can include in the ( inline-math ) commands?

I suppose, I could use two \minipages side by side, but I was hoping for something a little more straightforward.

Thanks!

Best Answer

This is a little workaround to get what you need:

\documentclass[12pt,letterpaper]{article}

\usepackage{amsmath}

\begin{document}

\begin{tabular}{p{8cm}p{8cm}}

{\begin{align}
&\alpha = \beta + \gamma \\
&c = 20x^2 + 5x - 10
\end{align}}
&
{\begin{align}
&x_f = x_0 + v_0t \\
&\mu = 10 * \epsilon
\end{align} }

\end{tabular}

\end{document}

example

The key concepts with this example are:

  • You use tabular with columns defined by p{dim}.
  • The tabular has only one row.
  • For every cell of the tabular, you have an array of equations (align), whose equations are defined at the right of the &, so they get aligned to the left.
  • Very important trick: to compile, you have to enclose every align environment inside {}, so that the & doesn't collide with those of the tabular.

One flaw this approach has: as every align environment is independent from the others, if one of the equations has more height, then they will look misaligned vertically. Try writing the

\frac{at^2}{2}

to the right of the third equation.