Onslide em tabularx produz espaço vertical

Onslide em tabularx produz espaço vertical

Eu tenho uma tabela em umbeamerapresentação da qual desejo descobrir seu conteúdo usando \onslide. Emtabularx(ou tabularcom uma p-coluna) isso produz um espaço em branco vertical peculiar na X-coluna. Alguma idéia sobre de onde vem e/ou como contornar isso?

Aqui está o código que usei:

\begin{tabularx}{\textwidth}{|l|X|}
\hline
First line & A very long sentence that takes up more than one line because of its length\\
\onslide<2->{Second line} & \onslide<2->{A slightly longer sentence that takes up more than one line because of its length} \\
\hline
\end{tabularx}

Ou com uma pcoluna:

\begin{tabular}{|l|p{0.7\textwidth}|}
\hline
First line & A very long sentence that takes up more than one line because of its length\\
\onslide<2->{Second line} & \onslide<2->{A slightly longer sentence that takes up more than one line because of its length} \\
\hline
\end{tabular}

Responder1

Você precisa evitar colocar os especiais do beamer (ou quaisquer especiais) no início de uma parbox:

\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{tabular}{|l|p{0.7\textwidth}|}
\hline
First line & A very long sentence that takes up more than one line because of its length\\
\onslide<2->{Second line} & \leavevmode\onslide<2->{A slightly longer sentence that takes up more than one line because of its length} \\
\hline
\end{tabular}
\end{frame}
\end{document}

informação relacionada