How can I use \multicolumn together with overlays?
\multicolumn fails if there is an overlay before it or if \multicolumn is used inside an overlay.
I actually want to do the last. \only<2>{\multicolumn{2}{c}{three}\\}
MWE:
\documentclass{beamer}
\usepackage{siunitx}
\begin{document}
\begin{frame}
\begin{tabular}{*{4}{|>{$}{c}<{$}}|}
\hline
a & b & c & d\\
\hline
1 & 2 & 3 & 4\\
\hline
%TODO following works
\multicolumn{2}{c}{one}\\
\only<2>{one\\}
%TODO following doesn't work
%\only<2>{two\\}
%\multicolumn{2}{c}{two}\\
%TODO following doesn't work
%\only<2>{\multicolumn{2}{c}{three}\\}
\end{tabular}
\end{frame}
\end{document}
\multicolumndoesn't work inside an overlay – user1 Nov 11 '17 at 18:43\only<2>{\\\multicolumn{.....}}to work – David Carlisle Nov 11 '17 at 18:47\only<2>{\\[-\normalbaselineskip]\multicolumn{2}{c}{three}}compiles without errors, but the vertical lines of the "jumped" line are overprinted bythree– user1 Nov 11 '17 at 18:51\\so remove the one at the end of the previous row. – David Carlisle Nov 11 '17 at 20:12\hlineafter my previous row. I solved this problem (see comment on you answer) – user1 Nov 11 '17 at 21:01