
uncover
내부에 을 중첩했는데 only
예상대로 작동하지 않습니다. 내 문서의 헤더는 다음과 같습니다.
\documentclass[8pt]{beamer}
\mode<presentation>{\usetheme{Warsaw}}
\setbeamertemplate{navigation symbols}{}
\usepackage{empheq}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,backgrounds}
그리고 문제의 프레임은 다음과 같습니다.
\begin{frame}[label=review]
\frametitle{A review of the steps}
\setbeamercovered{transparent}
\begin{columns}
\column{0.4\linewidth}
\begin{enumerate}[<+->]
\item \alert<1>{Supernova detection.}
\item \alert<2>{Spectroscopic confirmation.}
\item \alert<3,6>{Multi-band photometry.}
\item \alert<4,6>{Parameter extraction.}
\item \alert<5,6>{Hubble diagram fit.}
\end{enumerate}
\column{0.7\linewidth}
\begin{center}
\begin{tikzpicture}%[show background grid]
\node[anchor=south west,inner sep=0] (step1) at (0,0) {\includegraphics[width=0.18\linewidth]{figures/pedagogy/03D4ag-zoom1.png}};
\begin{scope}[x={(step1.south east)},y={(step1.north west)}]
\draw<1>[red] (0,0) rectangle (1,1);
\end{scope}
\end{tikzpicture}
\begin{tikzpicture}%[show background grid]
\node[anchor=south west,inner sep=0] (step2) at (0,0) {\includegraphics[width=0.18\linewidth]{figures/guypres/1994D_spectrum.pdf}};
\begin{scope}[x={(step2.south east)},y={(step2.north west)}]
\draw<2>[red] (0,0) rectangle (1,1);
\end{scope}
\end{tikzpicture}
\begin{tikzpicture}%[show background grid]
\node[anchor=south west,inner sep=0] (step3) at (0,0) {\includegraphics[width=0.18\linewidth]{figures/03D4ag-lc.png}};
\begin{scope}[x={(step3.south east)},y={(step3.north west)}]
\draw<3>[red] (0,0) rectangle (1,1);
\end{scope}
\end{tikzpicture}
\begin{tikzpicture}%[show background grid]
\node[anchor=south west,inner sep=0] (step4) at (0,0) {\includegraphics[width=0.18\linewidth]{figures/03D4ag-lc-model.png}};
\begin{scope}[x={(step4.south east)},y={(step4.north west)}]
\draw<4>[red] (0,0) rectangle (1,1);
\end{scope}
\end{tikzpicture}
\begin{tikzpicture}%[show background grid]
\node[anchor=south west,inner sep=0] (step5) at (0,0) {\includegraphics[width=0.18\linewidth]{figures/pedagogy/hubblediagram.png}};
\begin{scope}[x={(step5.south east)},y={(step5.north west)}]
\draw<5>[red] (0,0) rectangle (1,1);
\end{scope}
\end{tikzpicture}
\end{center}
\end{columns}
\begin{overlayarea}{\textwidth}{\textheight}
\only<1>{
\begin{center}
\includegraphics[width=0.4\textwidth]{figures/pedagogy/03D4ag-zoom1.png}
\hspace{0.2cm}
\includegraphics[width=0.4\textwidth]{figures/pedagogy/03D4ag-zoom3.png}
\end{center}
}
\only<2>{
\begin{center}
\includegraphics[width=0.7\textwidth]{figures/guypres/1994D_spectrum.pdf}
\end{center}
}
\only<3-4>{
\begin{center}
\includegraphics[width=0.4\textwidth]{figures/03D4ag-lc.png}
\hspace{0.2cm}
\uncover<4>{
\includegraphics[width=0.4\textwidth]{figures/03D4ag-lc-model.png}
}
\end{center}
}
\only<5>{
\begin{center}
\includegraphics[width=0.7\textwidth]{figures/pedagogy/hubblediagram.png}
\end{center}
}
\end{overlayarea}
\end{frame}
내가 예상하는 동작은 03D4ag-lc.png가 슬라이드 3에 표시되고 03D4ag-lc-model.png가 03D4ag-lc.png를 대체하지 않고 슬라이드 4에 표시된다는 것입니다. 대신 03D4ag-lc-model.png는 uncover
명령을 완전히 무시하는 것처럼 보이며 두 슬라이드 모두에 존재합니다. 이게 정상인가요? 그렇다면 내가 여기서 목표로 하는 것을 달성하는 적절한 방법은 무엇입니까?
답변1
코드에서 매크로를 transparent
통해 적용되는 효과를 설정합니다 \setbeamercovered{transparent}
.
@JosephWright가 지적했듯이 가져온 이미지에는 투명도가 작동하지 않으므로 다음을 사용하여 가져온 이미지를 찾으려고 할 때 전혀 가려진 효과가 없습니다.
\uncover<4>{
\includegraphics[width=0.4\textwidth]{figures/03D4ag-lc-model.png}
}
이미지를 숨기려면 다음을 사용하여 투명도 효과를 다시 설정해야 합니다.
\setbeamercovered{invisible}
overlayarea
나는 프레임의 나머지 부분에서 첫 번째 설정을 재정의하지 않도록 사양을 내부에 넣을 것을 제안했습니다 .
Beamer 매뉴얼의 섹션 17.6을 확인해 볼 수도 있습니다.