我有左边和正确的图像。我想将它们并排放置,并通过在演示文稿中单击下一步来叠加它们。左侧图片应该随着每次单击而变化,右侧图片最好随着每次单击而叠加,因此旧数据仍然以较弱的颜色密度显示。我想了这样的事情:
\begin{figure}[!htb]
\centering
\begin{minipage}{.5\textwidth}
\centering
\begin{overlayarea}{\textwidth}{\textheight}
\begin{figure}
\only<1>
{%
\includegraphics[width=.45\textwidth]{left1.png}%
}%
\only<2>
{%
\includegraphics[width=.45\textwidth]{left2.png}%
}%
\only<3>
{%
\includegraphics[width=.45\textwidth]{left3.png}%
}%
\end{figure}
\end{overlayarea}
\end{minipage}%
\begin{minipage}{0.5\textwidth}
\centering
\begin{overlayarea}{\textwidth}{\textheight}
\begin{figure}
\only<4>
{%
\includegraphics[width=.45\textwidth]{right1.png}%
}%
\only<5>
{%
\includegraphics[width=.45\textwidth]{right2.png}%
}%
\only<6>
{%
\includegraphics[width=.45\textwidth]{right3.png}%
}%
\end{figure}
\end{overlayarea}
\end{minipage}
\end{figure}
但它还不起作用。也许有人有一些想法。
答案1
\begin{frame}
\frametitle{Tasks}
\begin{overlayarea}{\textwidth}{\textheight}
\begin{figure}
\raggedright
\only<1>
{%
\includegraphics[scale=0.9]{left1.png}%
}%
\only<2>
{%
\includegraphics[scale=0.9]{left2.png}%
}%
\only<3>
{%
\includegraphics[scale=0.9]{left3.png}%
}%
\vspace*{-5.75cm}
\begin{overlayarea}{\textwidth}{\textheight}
\raggedleft
\begin{tikzpicture}
\only<1> {%
\node (0,0) {\includegraphics[scale=0.9]{right1.png}};%
}%
\only<2> {%
\node (0,0) {\includegraphics[scale=0.9]{right1.png}};%
\node [opacity=0.8] (0,0) {\includegraphics[scale=0.9]{right2.png}};%
}%
\only<3> {%
\node (0,0) [opacity=0.5] {\includegraphics[scale=0.9]{right1.png}};%
}%
\only<3> {%
\node (0,0) [opacity=0.5] {\includegraphics[scale=0.9]{right2.png}};%
}%
\only<3> {%
\node [opacity=0.7] (0,0) {\includegraphics[scale=0.9]{right3.png}};%
}%
\end{tikzpicture}
\end{overlayarea}
\end{figure}
\end{overlayarea}
\end{frame}
目前,在同一水平面上定位只需要\vspace*
到目前为止,必须手动选择不透明度,这对于许多图像来说可能很困难。也许有人知道只有最后一幅图像具有高不透明度,而之前的所有图像都具有低不透明度并且仍然可见。