2

I'm trying to put an align environment inside of a tabular environment. Here is a snippet:

%\documentclass[xcolor=table]{beamer}
\documentclass{beamer}


\begin{document}

\begin{tabular}{p{0.8\textwidth}}
\begin{align*}
x^{2}+2x+1 = 0
\end{align*}
\end{tabular}

\end{document}

As written, the document compiles just fine. With the commented documentclass (setting xcolor=table), I get the following error:

! Misplaced \omit. \math@cr@@@ ...@ \@ne \add@amps \maxfields@ \omit \kern -\alignsep@ \iftag@ ... l.10 \end{align*} Why?

1
  • 3
    Replace \begin{align*} with \[ \begin{aligned} and \end{align*} with \end{aligned} \].
    – Mico
    Jun 29, 2018 at 13:38

1 Answer 1

4

Replacing \begin{align*} with \[ \begin{aligned} and \end{align*} with \end{aligned} \] lets you compile the test file.

That said, it's not at all clear why you'd wish to employ an align* environment to begin with, since no alignment of any kind is being performed.

1
  • 2
    I was just reducing the complexity of the example for the MWE (since the crash still occurred on the test code). This solution appears to work, thank you! Jun 29, 2018 at 14:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .