虽然我已经知道如何掌握使用相对计数的叠加层(参见这里),我无法在列、块、套印和项目的复杂情况下正确使用它。结果难以形容。我尝试了很多调整,但都没有成功。
- 暂停计数器是一棵树还是一个框架的全局计数器?
- 我是否有义务计算每列和每块的幻灯片数量并使用静态覆盖编号?
这是我的 LyX 代码:
\documentclass[beamer]{beamerswitch}
\usetheme{metropolis}
\beamerdefaultoverlayspecification{<+->}
\begin{document}
\begin{frame}\frametitle{My title}
\beamerdefaultoverlayspecification{} %switch off for this slide
\begin{columns}[t]
\begin{column}{0.33\textwidth}
\begin{block}<+(7)->{Middle-Left bloc - 2nd to appear} % 6 slides
\begin{overprint}
\only<+>{
slide 1/2
}
\only<+-+(4)>{
slide 2/2 :
\begin{itemize}
\item<+-> item 1
\item<+-> item 2
\item<+-> item 3
\item<+-> item 4
\end{itemize}
\vspace*{2.6mm}
}
\end{overprint}
\end{block}
\end{column}
\begin{column}{0.33\textwidth}
\begin{block}<+->{Top-center bloc - 1st to appear} % 6 slides
\begin{overprint}
\only<+>{
slide 1
}
\only<+-+(3)>{
slide 2
\begin{itemize}
\fontsize{7pt}{7.2}\selectfont
\item<+-> item 1
\item<+-> item 2
\item<+-> item 3
\end{itemize}
\vspace*{2.6mm}
}
\only<+(3)>{
slide 3
}
\end{overprint}
\end{block}
\begin{block}<+(25)->{Bottom-center bloc - 4th to appear} % 1 slides %\begin{block}[<+->]{Middle side}
\begin{itemize}
\fontsize{7pt}{7.2}\selectfont
\item<+-> item 1
\item<+-> item 2
\item<+-> item 3
\end{itemize}
\vspace*{2.6mm}
\end{block}
\end{column}
\begin{column}{0.33\textwidth}
\begin{block}<+(13)->{Middle-right - 3rd to appear} % 12 slides % \begin{block}{\uncover<4->{Right side}}[<+(2)->]
\begin{overprint}
\only<+-+(2)>{
slide 1 :
\begin{itemize}
\fontsize{7pt}{7.2}\selectfont
\item<+-> item 1
\item<+-> item 2
\end{itemize}
\vspace*{2.6mm}
}
\only<+(2)-+(6)>{
slide 2 :
\begin{itemize}
\fontsize{7pt}{8.4}\selectfont
\item<+-> item 1
\item<+-> item 2
\item<+-> item 3
\item<+-> item 4
\end{itemize}
\vspace*{2.6mm}
}
\only<+(6)-+(9)>{
slide 3 :
\begin{itemize}
\fontsize{7pt}{7.2}\selectfont
\item<+-> item 1
\item<+-> item 2
\item<+-> item 3
\end{itemize}
\vspace*{2.6mm}
}
\end{overprint}
\end{block}
\end{column}
\end{columns}
\end{frame}
\end{document}
请考虑我指定其他块应出现顺序的评论。在这里,我计算了每个块的幻灯片数量,以尝试放置正确的覆盖偏移量
block overlay offset = previous block overlay + previous block number of slides
答案1
这很困难,但通过在这里的很多地方选择技巧,我可以通过用节点替换列来实现它 - 这不符合 OP 但当时我不知道节点。
虽然,使用偏移进行覆盖管理是经过反复试验的,因为我无法找出掌握它的一些规则。如果有人能对此有所启发,我将不胜感激。然而,以下代码的行为符合我的要求:
\documentclass[beamer]{beamerswitch}
\usetheme{metropolis}
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{tikzmark}
\begin{document}
\begin{frame}\frametitle{My title}
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=north,text width=.3\textwidth] at ($(current page.north)+(0,-0.1\textheight)$) {
\begin{block}{Top-center bloc - 1st to appear} % 6 slides
\begin{overprint}
\only<+>{
slide 1
}
\only<+-+(3)>{
slide 2
\begin{itemize}
\fontsize{7pt}{7.2}\selectfont
\item<+-> item 1
\item<+-> item 2
\item<+-> item 3
\end{itemize}
\vspace*{2.6mm}
}
\only<+(3)->{
slide 3
}
\end{overprint}
\end{block}
};
\node[anchor=west,text width=.3\textwidth] at (current page.west) {
\begin{block}<+(3)->{Middle-Left bloc - 2nd to appear} % 6 slides
\begin{overprint}
\only<+(2)>{
slide 1/2
}
\only<+(2)->{
slide 2/2 :
\begin{itemize}
\item<+(2)-> item 1
\item<+(2)-> item 2
\item<+(2)-> item 3
\item<+(2)-> item 4
\end{itemize}
\vspace*{2.6mm}
}
\end{overprint}
\end{block}
};
\node[anchor=east,text width=.3\textwidth] at (current page.east) {
\begin{block}<+(2)->{Middle-right - 3rd to appear} % 12 slides
\begin{overprint}
\only<+-+(3)>{
slide 1 :
\begin{itemize}
\fontsize{7pt}{7.2}\selectfont
\item<+(1)-> item 1
\item<+(1)-> item 2
\end{itemize}
\vspace*{2.6mm}
}
\only<+(3)-+(6)>{
slide 2 :
\begin{itemize}
\fontsize{7pt}{8.4}\selectfont
\item<+(3)-> item 1
\item<+(3)-> item 2
\item<+(3)-> item 3
\item<+(3)-> item 4
\end{itemize}
\vspace*{2.6mm}
}
\only<+(6)->{
slide 3 :
\begin{itemize}
\fontsize{7pt}{7.2}\selectfont
\item<+(6)-> item 1
\item<+(6)-> item 2
\item<+(6)-> item 3
\end{itemize}
\vspace*{2.6mm}
}
\end{overprint}
\end{block}
};
\node[anchor=south,text width=.3\textwidth] at (current page.south) {
\begin{block}<+(6)->{Bottom-center bloc - 4th to appear} % 1 slides
\begin{itemize}
\fontsize{7pt}{7.2}\selectfont
\item<+(6)-> item 1
\item<+(6)-> item 2
\item<+(6)-> item 3
\end{itemize}
\vspace*{2.6mm}
\end{block}
};
\end{tikzpicture}
\end{frame}
\end{document}
答案2
以下是 LyX 解决方案:源代码:,LyX 快照中的代码视图, 结果: