I want to create a latex beamer presentation containing a table. Because everything at once would be too much, I split them into different slades using the \pause command. No problem, this works.
But if I set a \pause before a \multicolumn, I get an error ("Misplaced \omit"), which is not that surprise, because the \multicolumn should be the the first command in the cell.
MWE:
Code: Select all
\documentclass{beamer}
\begin{document}
\frame{\begin{tabular}{ll}\hline
\multicolumn{2}{l}{}\\
\pause
\multicolumn{2}{l}{}\\
\end{tabular}}
\end{document}
Maybe a more evident example:
Code: Select all
\documentclass{beamer}
\usepackage{colortbl}
\begin{document}
\frame{
\begin{tabular}{ll}\hline
\multicolumn{2}{l}{\cellcolor{gray}Sec I}\\
A & 1\\\hline
\pause
\multicolumn{2}{l}{\cellcolor{gray}Sec II}\\
B & 2 \\\hline
\end{tabular}}
\end{document}