对于我的演示文稿,我想在 itemize 的小页面环境中显示第一个项目后的图像。我使用了\uncover<1->
,但由于某种原因,它不会在第一个项目中显示,但总是在第二个项目中显示....有人能帮助我吗?它位于我的演示文稿的第 22 页。
这是我的代码:
\documentclass[usenames,dvipsnames]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[figurename=Fig.]{caption}
\usepackage{verbatim}
\usetheme{uniud}
\usepackage[style=authoryear,backend=biber]{biblatex}
\addbibresource{bibliography.bib}
\DeclareNameAlias{author}{first-last}
\usepackage{silence}
\WarningFilter{biblatex}{Patching footnotes failed}
\newcommand{\pdfnewline}{\texorpdfstring{\newline}{ }}
\newcommand{\framefill}{\vskip0pt plus 1filll}
\title{Title}
\date{\today}
\author[author]{Author}
\institute{institu}
\AtBeginSection[]
{
\begin{frame}<beamer>{Outline}
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}
\renewcommand{\figurename}{Figure}
\beamerdefaultoverlayspecification{<+->}
\begin{document}
\frame{
\frametitle{My title}
\framesubtitle{My subtitle}
\begin{minipage}{0.5\textwidth}
\begin{itemize}
\item My first item: \\ \pause %Here I want to pause before adding some more text with an arrow
$\rightarrow$ text in my arrow \pause %i want to pause again before the next item, I woul like that my image uncover itself here
\item my second item
\item my third item
\end{itemize}
\end{minipage} \hfill
\begin{minipage}{0.45\textwidth}
\uncover<1->{
\begin{figure}
\includegraphics[height=0.9\textwidth]{My Image.jpg}
\caption{here's the image!}
\end{figure}
}
\end{minipage}
}
\end{document}
它向我显示了第二项之后的图像...我该怎么办?
我使用这个主题:https://fr.overleaf.com/latex/templates/university-of-udine-unofficial-beamer-theme/zndkgxrjsdzt
谢谢。
答案1
欢迎!\pause
实际上意味着之后的所有内容都会出现在下一个覆盖层上。因此,您可能还想使用\uncover
内置columns
环境。
\documentclass{beamer}
\begin{document}
\begin{frame}[t]
\frametitle{My title}
\framesubtitle{My subtitle}
\begin{columns}
\begin{column}{0.5\textwidth}
\begin{itemize}
\item My first item: \\ %Here I want to pause before adding some more text with an arrow
\uncover<2->{$\rightarrow$ text in my arrow}%i want to pause again before the next item, I woul like that my image uncover itself here
\item<3-> my second item
\item<4-> my third item
\end{itemize}
\end{column}
\begin{column}{0.5\textwidth}
\uncover<1->{\begin{figure}
\includegraphics[height=0.45\textwidth]{example-image-duck}
\caption{here's the image!}
\end{figure}}
\end{column}
\end{columns}
\end{frame}
\end{document}
这里的\uncover<1->{...}
图像周围没有效果,但如果你使用\uncover<2->{...}
它就会有效果。
答案2
我得到了与你们两个相同的结果,即\uncover<1->
不起作用(但\uncover<2->
等等起作用)。
因此,如果您从 2 开始而不是 1,则所有覆盖都会正确发生:
\documentclass{beamer}
\begin{document}
\begin{frame}[t]
\frametitle{My title}
\framesubtitle{My subtitle}
\begin{columns}
\begin{column}{0.5\textwidth}
\begin{itemize}
\item My first item: \\ %Here I want to pause before adding some more text with an arrow
\uncover<3->{$\rightarrow$ text in my arrow}%i want to pause again before the next item, I woul like that my image uncover itself here
\item<4-> my second item
\item<5-> my third item
\end{itemize}
\end{column}
\begin{column}{0.5\textwidth}
\uncover<2->{\begin{figure}
\includegraphics[height=0.45\textwidth]{example-image-duck}
\caption{here's the image!}
\end{figure}}
\end{column}
\end{columns}
\end{frame}
\end{document}