如何使两个包含项目列表的块在叠加后保持在同一位置

如何使两个包含项目列表的块在叠加后保持在同一位置

我一直在尝试使用 overprint 和 overlayarea 环境来将 2 个包含列表的块保持在相同位置 列表的项目也应该有覆盖。出于某种原因,overprint 和 overlayarea 似乎都不起作用。这是我正在使用的代码。

有没有办法让覆盖有覆盖项目列表的块保持在同一位置?

\documentclass[serif]{beamer}

\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage[spanish]{babel}
\usepackage{mathpazo}
\linespread{1.05} 

\author{Lorem ipsum}
\title{Lorem ipsum}
\setbeamertemplate{navigation symbols}{}
 \usetheme[hideallsubsections,left,width=2cm]{Marburg}

\usecolortheme{rose}
 \setbeamercolor{titlelike}{bg=structure,fg=white}

\logo{ \includegraphics[height=1.5cm]{Logo.png}}

  \setbeamertemplate{sidebar left}{
      \vspace{-2\baselineskip}
      \insertlogo

      \vspace{\baselineskip}
      \color{white}{\insertshorttitle[width={2cm},center,respectlinebreaks]}

\insertshortauthor[width={2cm},center,respectlinebreaks] \vspace{\baselineskip}

\insertverticalnavigation{2cm}

\vspace{4\baselineskip}

\insertframenumber

  }


\begin{document}


\section{Lorem Ipsum}


\begin{frame}
\begin{overprint}[\textwidth]



\onslide<1-4> {
 \begin{block}{\hfill erga}
  \begin{itemize}
   \item 123
   \item 1234.
   \item 12455.
   \item LOrep ipsum.
 }
  \end{itemize}

 \end{block}

 \onslide<5-7>{

 \begin{block}{\hfill E3}


  \begin{itemize}
   \item aergaergaerg
   \item Genaerg.
   \item tahthhaethetros.
   \item aehathahtarhat. 
  \end{itemize}

 \end{block}
}

\end{overprint}
\end{frame}
\end{document}

提前致谢,

查理

答案1

不确定这是否是您需要的。我改用了overlayarea\only不是\onslide

\documentclass[serif]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage[spanish]{babel}
\usepackage{mathpazo}
\linespread{1.05} 

\author{Lorem ipsum}
\title{Lorem ipsum}
\setbeamertemplate{navigation symbols}{}
\usetheme[hideallsubsections,left,width=2cm]{Marburg}

\usecolortheme{rose}
\setbeamercolor{titlelike}{bg=structure,fg=white}

%\logo{ \includegraphics[height=1.5cm]{Logo.png}}

  \setbeamertemplate{sidebar left}{
      \vspace{-2\baselineskip}
      \insertlogo

      \vspace{\baselineskip}
      \color{white}{\insertshorttitle[width={2cm},center,respectlinebreaks]}

\insertshortauthor[width={2cm},center,respectlinebreaks] \vspace{\baselineskip}

\insertverticalnavigation{2cm}

\vspace{4\baselineskip}

\insertframenumber
}


\begin{document}

\section{Lorem Ipsum}

\begin{frame}
\begin{overlayarea}{\textwidth}{5cm}
\only<1-4>{%
 \begin{block}{\hfill\strut erga}
  \begin{itemize}[<+->]
   \item 123
   \item 1234.
   \item 12455.
   \item Lorep ipsum.
  \end{itemize}
 \end{block}
}
 \only<5-8>{%
 \setcounter{beamerpauses}{5}
 \begin{block}{\hfill\strut  E3}
  \begin{itemize}[<+->]
   \item aergaergaerg
   \item Genaerg.
   \item tahthhaethetros.
   \item aehathahtarhat. 
  \end{itemize}
 \end{block}
}
\end{overlayarea}
\end{frame}

\end{document}

在此处输入图片描述

相关内容