I am trying to provide a summary and associate a symbol with the equations that define it. To achieve this goal, I tried using a tabularx
and within the tabularx
place align*
environments to provide the definition. I've seen this is possible here: https://tex.stackexchange.com/a/121409/70681
My code looks like this:
\begin{figure}[ht]
\begin{tabularx}{\linewidth}{c X}
\makecell{$\compilerenv$ \\ Environment compile \\ function} & {\begin{align*}
A &= B \\
A &= C \end{align*}}
\end{tabularx}
\end{figure}
makecell
is a command defined as \newcommand{\makecell}[2][@{}c@{}]{\begin{tabular}{#1}#2\end{tabular}}
.
I tried compiling the code without the align*
column (replaced it with a single letter) and it worked.
The error I get is:
! Misplaced \omit.
\math@cr@@@ ...@ \@ne \add@amps \maxfields@ \omit
\kern -\alignsep@ \iftag@ ...
l.10 \end{tabularx}
! Misplaced \omit.
\math@cr@@@ ...@ \@ne \add@amps \maxfields@ \omit
\kern -\alignsep@ \iftag@ ...
l.10 \end{tabularx}
repeated a number of times.
Help would be greatly appreciated. Thank you!
$\begin{aligned} ... \end{aligned}$
? – Bernard Apr 16 '18 at 9:59aligned
works. Thank you so much! Would you mind making this as an answer so I can accept it? – Radu Szasz Apr 16 '18 at 10:00