在 beamer 中使用 \setbeamercovered{invisible} 时如何保留 footline

在 beamer 中使用 \setbeamercovered{invisible} 时如何保留 footline

当我使用\setbeamercovered{invisible} 脚注线时,它会消失在整个 tikzpicture 框架中:

\documentclass{beamer}
\usetheme{warsaw}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows} 
\usetikzlibrary{positioning}
\begin{document}
\begin{frame}{frame}
\setbeamercovered{invisible}%transparent=0}
\centering
\begin{tikzpicture}[node distance=.5cm, auto]  
\tikzset{
    mynode/.style={rectangle,rounded corners,draw=black, top color=green, bottom color=red!80,very thick, inner sep=1em, minimum size=3em, text centered},
    myarrow/.style={->, >=latex', shorten >=.1pt},%, thick
    mylabel/.style={text width=7em, text centered} 
}  
\node [mynode](node) {1};\pause
\node [below=of node,mynode](node1){2};
\draw [myarrow] (node.south) -- ++(0,0) -- ++(0,-.2) -|  (node1.north);\pause
\node [left=of node1,mynode](node2){2};
\draw [myarrow] (node.south) -- ++(0,0) -- ++(0,-.2) -|  (node2.north);\pause
\node [left=of node2,mynode](node3){4};
\draw[myarrow] (node.south) -- ++(0,0) -- ++(0,-.2) -|  (node3.north);\pause    
\node [right=of node1,mynode](node4){5};
\draw[myarrow] (node.south) -- ++(0,0) -- ++(0,-.2) -|  (node4.north);\pause
\node [right=of node4,mynode](node5){6};
\draw[myarrow] (node.south) -- ++(0,0) -- ++(0,-.2) -|  (node5.north);
\end{tikzpicture}
\end{frame}
\end{document}

在此处输入图片描述

答案1

有一个专用的 tikzlibrary使 tikz 命令覆盖感知,我们可以通过使用和类似overlay-beamer-styles来指定在哪些幻灯片上应该可见\draw<2-5>

\documentclass{beamer}
\usetheme{warsaw}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows}
\usetikzlibrary{positioning}
\usetikzlibrary{overlay-beamer-styles}

\tikzset{
    mynode/.style={rectangle,rounded corners,draw=black, top color=green, bottom color=red!80,very thick, inner sep=1em, minimum size=3em, text centered},
    myarrow/.style={->, >=latex', shorten >=.1pt},%, thick
    mylabel/.style={text width=7em, text centered}
}  

\begin{document}
\begin{frame}{content}
\centering
\begin{tikzpicture}[node distance=.5cm, auto]
\node<1-> [mynode](node) {1};
\node<2-> [below=of node,mynode](node1){2};
\draw<2-> [myarrow] (node.south) -- ++(0,0) -- ++(0,-.2) -|  (node1.north);
\node<3-> [left=of node1,mynode](node2){2};
\draw<3-> [myarrow] (node.south) -- ++(0,0) -- ++(0,-.2) -|  (node2.north);
\end{tikzpicture}
\end{frame}
\end{document}

相关内容