비머: 항상 동일한 프레임의 첫 번째 테이블을 오버레이합니다.

비머: 항상 동일한 프레임의 첫 번째 테이블을 오버레이합니다.

비슷한 질문이 하나, 그러나 이제는 목록 항목을 오버레이하는 대신 부동 소수점을 오버레이할 수 있기를 원합니다 table. 이것이 블록에 대한 트릭을 수행하는 동안:

\begin{frame}[fragile]

\begin{block}<only@+>{First block}
%stuff
\end{block}

\begin{block}<only@+>{Second block}
%more stuff
\end{block}

\end{frame}

불행히도 테이블에는 그렇지 않습니다.

\begin{frame}[fragile]

\begin{table}[!h]<only@+>
    \begin{tabular}{} %column specs
    %first table
    \end{tabular}
    \caption{} %some caption
\end{table}

\begin{table}[!h]<only@+>
    \begin{tabular}{} %column specs
    %second table
    \end{tabular}
    \caption{} %some caption
\end{table}

\end{frame}

출력: 같은 슬라이드에 있는 두 테이블 위에 횡설수설(¡only@+¿)이 적혀 있습니다. 이 경우 올바른 구문은 무엇입니까? 건배.

PS 만약 제가 생각해낸 것보다 블록을 오버레이하는 더 나은 구문이 있다면, 저는 모두 귀를 기울이고 있습니다! :) 이상적으로는 프레임 내부의 \begin{framebody}[<only@+>]모든 것(블록, 테이블 itemize또는 환경)이 해당 동작을 상속하도록 하는 것과 같은 것을 찾고 있습니다 .enumerate

답변1

다음은 의도한 바를 달성한 것으로 보입니다.

\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{overprint}
\onslide*<1>{
\begin{table}[h]
    \begin{tabular}{cc} %column specs
    f & f%first table
    \end{tabular}
    \caption{1} %some caption
\end{table}
}
%
\onslide*<2>{
\begin{table}[h]
    \begin{tabular}{cc} %column specs
    c & c
    %second table
    \end{tabular}
    \caption{2} %some caption
\end{table}
}
\end{overprint}
\end{frame}
%
\begin{frame}
%
\begin{block}<only@+>{First block}
b
\end{block}
%
\begin{block}<only@+>{Second block}
f
\end{block}
%
\end{frame} 
\end{document}

관련 정보