在以下示例中,我想在 pdf 中在上述位置暂停。任何解决方案都会有所帮助。谢谢
\documentclass[xcolor=dvipsnames]{beamer}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{verbatim}
\usetikzlibrary{arrows,shapes}
\usetheme{AnnArbor}
\makeatother
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.3\paperwidth,ht=2.25ex,dp=1ex,center]
{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.6\paperwidth,ht=2.25ex,dp=1ex,center
{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle\hspace*{1em}
\end{beamercolorbox}}%
\insertframenumber{} / \inserttotalframenumber\hspace*{1ex}
\vskip0pt%
}
\makeatletter
\setbeamertemplate{navigation symbols}{}
%\usepackage[german]{babel}
% Search online for beamer themes to find your favorite or use
the Berkeley theme as in this file.
%\setbeamertemplate{theorems}[numbered]
\usepackage{color} % It may be necessary to set PCTeX or
whatever program you are using to output a .pdf instead of a
.dvi file in order to see color on your screen.
\usepackage{graphicx} % This package is needed if you wish to
include external image files.
\usepackage{comment}
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage[mathscr]{euscript}
\theoremstyle{definition} % See Lesson Three of the
LaTeX Manual for more on this kind of "proclamation."
\newtheorem*{dfn}{A Reasonable Definition}
\begin{document}
\begin{frame}
\frametitle{Intuition: Continued...}
\begin{itemize}
\item Use of \alert{sub-sampling} according to deterministic target poilcy from the given behavioural trajectory, then assume
sub-sampled data is i.i.d
\begin{overprint}
\onslide<1>$\textcolor{red}{A}$
\onslide<2>$\textcolor{red}{B}$
\end{overprint}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% I want to pause here
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\item C
\end{frame}
\end{document}
另外,在“C”出现后,将“B”从幻灯片中完全删除
\begin{itemize}
\item<1-> Use of \alert{sub-sampling} according to
deterministic target poilcy from the given
behavioural trajectory, then assume
sub-sampled data is i.i.d
\begin{overprint}
\onslide<2>$\textcolor{red}{A}$
\onslide<3>$\textcolor{red}{B}$
\end{overprint}
\item<4-> C
我不想这样。我希望首先出现“A”,然后替换为“B”,在下一张幻灯片中出现“C”,而“B”保持不变。
答案1
你一定需要吗overprint
?否则,检查以下代码是否给出了所需的结果。
\documentclass{beamer}
\begin{document}
\begin{frame}
\frametitle{Intuition: Continued...}
\begin{itemize}
\item 0
\only<1>{\item A}
\item<2-> B
\item<3> C
\end{itemize}
\end{frame}
\end{document}
答案2
这是保持的一种方法overprint
(使用其可选参数来防止以下材料被推下):
\documentclass[xcolor=dvipsnames]{beamer}
\begin{document}
\begin{frame}
\frametitle{Intuition: Continued...}
\begin{itemize}
\item Use of \alert{sub-sampling} according to deterministic target poilcy from the given behavioural trajectory, then assume sub-sampled data is i.i.d
\begin{overprint}[3cm]
\only<1>{$\textcolor{red}{A}$}
\only<2->{$\textcolor{red}{B}$}
\end{overprint}
\item<+(2)-> C
\end{itemize}
\end{frame}
\end{document}