我正在尝试从一个包含文本的块过渡到另一个包含图形的块。虽然第二个块是透明的,但图形是“活动的”,尽管我指定了过渡顺序。
这是我的代码:
\documentclass[10pt]{beamer}
\usetheme{Warsaw}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\setbeamertemplate{navigation symbols}{}%remove navigation symbols
\setbeamercovered{transparent}
\makeatother
\title{title}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\frame{
\frametitle{Title}
\fontsize{10}{10.5}\selectfont
\begin{columns}
\begin{column}{2.9in}
\begin{block}<1->{title 1}
\begin{itemize}
\item <2->this text has to appear along with the figure on the top right, but after the block;
\item <3->text;
\item <4->text;
\item <5->text;
\item <6->text;
\end{itemize}
\end{block}
\end{column}
\begin{column}{1.5in}
\begin{exampleblock}<2->{title figure 1}
\begin{center}
\includegraphics[scale=0.3]{figures/ubuntu-logo32.png}
\end{center}
\end{exampleblock}
\begin{block}<7->{title figure 2}
\begin{center}
\includegraphics[scale=0.3]{figures/ubuntu-logo32.png}
\end{center}
\end{block}
\end{column}
\end{columns}
}
\end{document}
这是错误的效果:
在“时间” 2 之前,我怎样才能使图形像它所在的块一样透明?
答案1
这里有一个解决方案回答,我们用 来替换scale=0.3
以width=\linewidth
适合盒子。
\documentclass[10pt]{beamer}
\usetheme{Warsaw}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\setbeamertemplate{navigation symbols}{}%remove navigation symbols
\setbeamercovered{transparent}
\makeatother
\title{title}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\frame{
\frametitle{Title}
\fontsize{10}{10.5}\selectfont
\begin{columns}
\begin{column}{2.9in}
\begin{block}<1->{title 1}
\begin{itemize}
\item <2->this text has to appear along with the figure on the top right, but after the block;
\item <3->text;
\item <4->text;
\item <5->text;
\item <6->text;
\end{itemize}
\end{block}
\end{column}
\begin{column}{1.5in}
\begin{exampleblock}<2->{title figure 1}
\begin{center}
\only<1>{\mbox{\phantom{\includegraphics[width=\linewidth]{example-image-a}}}}
\includegraphics<2->[width=\linewidth]{example-image-a}
\end{center}
\end{exampleblock}
\begin{block}<7->{title figure 2}
\begin{center}
\only<1-6>{\mbox{\phantom{\includegraphics[width=\linewidth]{example-image-a}}}}
\includegraphics<7->[width=\linewidth]{example-image-a}
\end{center}
\end{block}
\end{column}
\end{columns}
}
\end{document}