我有以下代码,其结果为 gif 图片:
\documentclass[]{beamer}
\usepackage{tikz}
\begin{document}
\begin{frame}{About colors}
\begin{columns}
\column{0.5\textwidth}
This is blue:
\fcolorbox{black}{blue}{\hspace{2mm}}
\column{0.5\textwidth}
This is red:
\fcolorbox{black}{red}{\hspace{2mm}}
\end{columns}
\end{frame}
\end{document}
而我想要的是框架以显示两列结束:
怎么做?
答案1
column
命令是覆盖感知的,因此您可以指示想要显示每列的覆盖:
\documentclass[]{beamer}
\usepackage{tikz}
\begin{document}
\begin{frame}{About colors}
\begin{columns}
\column<1,3>{0.5\textwidth}
This is blue:
\fcolorbox{black}{blue}{\hspace{2mm}}
\column<2,3>{0.5\textwidth}
This is red:
\fcolorbox{black}{red}{\hspace{2mm}}
\end{columns}
\end{frame}
\end{document}