代码

代码

我在 Beamer 演示文稿中有许多相关框架,我想通过介绍演示文稿的该部分大纲来强调这种关系。这是我目前所拥有的:

 \documentclass{beamer}

\usepackage[utf8]{inputenc}
\usepackage{xcolor}

\begin{document}

\begin{frame}
\frametitle{A frame title}

\begin{tiny}
\begin{tabular}{ l c c r }
  \textcolor{gray}{Item one...} & \bf{Item two...} & \textcolor{gray}{Item three...} & \textcolor{gray}{Item four...} \\
  \textcolor{gray}{Item five...} & \textcolor{gray}{Item six...} & \textcolor{gray}{Item seven...} & \textcolor{gray}{Item eight..}
\end{tabular}
\end{tiny}

Some content.... perhaps an image, one or two equations, a table...

\end{frame}

\end{document}

我目前拥有的

我的计划是复制每个框架的表格,然后更改哪个项目为粗体。实际的表格内容更宽,因此它占据了框架的整个宽度。我希望表格在框架标题下方左对齐。我希望这样做不会影响框架的实际内容。如果您能提供如何做到这一点的想法,我将不胜感激。当然,如果您可以在没有表格的情况下解决这个问题,那也很好。

答案1

如果每个项目的内容中没有覆盖,则以下方法有效。这个想法是将所有项目折叠到一个投影仪框架中,并使用覆盖在框架副标题中突出显示项目标题。

代码

\documentclass{beamer}

\begin{document}
\begin{frame}{A frame title}
\framesubtitle{\footnotesize
  \textbf<1>{item one}\quad
  \textbf<2>{item two}\quad
  \textbf<3>{item three}\quad
  \textbf<4>{item four}\quad
  \textbf<5>{item five}\quad
  \textbf<6>{item six}\quad
}

\only<1>{content for item one}
\only<2>{content for item two}
\only<3>{content for item three}
\only<4>{content for item four}
\only<5>{content for item five}
\only<6>{content for item six}

\end{frame}
\end{document}

输出

在此处输入图片描述

相关内容