关于 beamer 主题的问题

关于 beamer 主题的问题

我非常喜欢 beamer 主题“Air”(您可以通过页面中的“Nice Air based template for Latex”链接找到它http://www.kde.org/kdeslides/)。但有时,在幻灯片中,我的文本有点太长,如果我可以撤回顶部的 air-header.png,那就太好了。所以,你能帮我吗?事实上,我认为最好的想法是修改 ,其中beamerthemeAir.sty包含以下部分:

\setbeamertemplate{headline}
{
  \pgfuseimage{air-header}
  \vskip -1.95cm
  \linethickness{0.0pt}

  \framelatex{
  \begin{beamercolorbox}[wd=\paperwidth,ht=0.3\beamer@headheight]{Title bar}
    \usebeamerfont{section in head/foot}%
    \insertsectionnavigationhorizontal{0pt}{\hskip0.22cm}{}%
  \end{beamercolorbox}}

  \framelatex{
  \begin{beamercolorbox}[wd=\paperwidth,ht=0.7\beamer@headheight]{Title bar}
  \end{beamercolorbox}}
}

变成可选项,例如,只有当幻灯片的标题带有 时,它才会出现\frametitle。如果您不知道,请告诉我,我会从文件中删除此部分sty

答案1

作为保罗·加博利在他的评论中提到,您可以使用plain这些框架的选项(有效地删除标题和脚注),或者您可以使用选项shrink(如果文本太大而无法容纳在框架中,此选项将导致框架的文本缩小)。

在下面的例子中,我在三个不同的框架中展示了相同的内容(取自example-talk.tex),它们有三种设置;第一个是默认行为,显示块突出;第二个显示了普通选项的效果,第三个显示了使用邪恶的选项shrink

\documentclass[12pt]{beamer}
\usetheme{Air}

\begin{document}

\begin{frame}
  \frametitle{Prerequisites \& Goals}
  \framesubtitle{Knowledge is a brick wall that you raise line by line forever}
  \begin{block}{LaTeX}
  \begin{itemize}
    \item Obviously some basic LaTeX knowledge is necessary
    \item Some more features will be provided here
  \end{itemize}
  \end{block}

  \begin{block}{Beamer}
  \begin{itemize}
    \item You'll learn them by looking at this presentation source
  \end{itemize}
  \end{block}
  \begin{block}{Beamer}
  \begin{itemize}
    \item You'll learn them by looking at this presentation source
  \end{itemize}
  \end{block}

  \begin{block}{Goal}
  \begin{itemize}
    \item Learn how to make well structured slides
    \item Using a beautiful theme (congrats to the Oxygen team!)
    \item Take over the world
    \item Relax...
  \end{itemize}
  \end{block}
\end{frame}

\begin{frame}[plain]
  \frametitle{Prerequisites \& Goals}
  \framesubtitle{Knowledge is a brick wall that you raise line by line forever}
  \begin{block}{LaTeX}
  \begin{itemize}
    \item Obviously some basic LaTeX knowledge is necessary
    \item Some more features will be provided here
  \end{itemize}
  \end{block}

  \begin{block}{Beamer}
  \begin{itemize}
    \item You'll learn them by looking at this presentation source
  \end{itemize}
  \end{block}
  \begin{block}{Beamer}
  \begin{itemize}
    \item You'll learn them by looking at this presentation source
  \end{itemize}
  \end{block}

  \begin{block}{Goal}
  \begin{itemize}
    \item Learn how to make well structured slides
    \item Using a beautiful theme (congrats to the Oxygen team!)
    \item Take over the world
    \item Relax...
  \end{itemize}
  \end{block}
\end{frame}

\begin{frame}[shrink=10]
  \frametitle{Prerequisites \& Goals}
  \framesubtitle{Knowledge is a brick wall that you raise line by line forever}
  \begin{block}{LaTeX}
  \begin{itemize}
    \item Obviously some basic LaTeX knowledge is necessary
    \item Some more features will be provided here
  \end{itemize}
  \end{block}

  \begin{block}{Beamer}
  \begin{itemize}
    \item You'll learn them by looking at this presentation source
  \end{itemize}
  \end{block}
  \begin{block}{Beamer}
  \begin{itemize}
    \item You'll learn them by looking at this presentation source
  \end{itemize}
  \end{block}

  \begin{block}{Goal}
  \begin{itemize}
    \item Learn how to make well structured slides
    \item Using a beautiful theme (congrats to the Oxygen team!)
    \item Take over the world
    \item Relax...
  \end{itemize}
  \end{block}
\end{frame}

\end{document}

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

就个人观点而言,应避免使用包含过多文字的框架(如果可能);最好的选择是以适合框架的方式分发材料,而无需进行任何特殊处理。

相关内容