我有一個表格beamer
我想使用 來揭示其內容\onslide
。在tabularx
(或在tabular
- 列p
)這會在 - 列中產生特殊的垂直空白X
。關於它從何而來和/或如何解決它有什麼想法嗎?
這是我使用的程式碼:
\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}
或使用p
- 列:
\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}
答案1
您需要避免將 beamer 特價商品(或任何特價商品)放在 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}