合并华沙和博阿迪利亚

合并华沙和博阿迪利亚

我正在用beamer它做演示。

我喜欢这个Warsaw主题,但我也喜欢Boadilla导航栏。所以我的想法是使用Warsaw主题,但在每张幻灯片的底部,我希望它显示如下Boadilla:40% 专用于我的名字和机构,40% 专用于主题名称,20% 专用于页码(Page #)。

答案1

Warsaw主题beamer使用shadow外主题而这又基于split外主题split外部主题使用以下模板构造设置脚注线:

\defbeamertemplate*{footline}{split theme}
{%
  \leavevmode%
  \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle
  \end{beamercolorbox}}%
  \vskip0pt%
}

从上面可以清楚地看出,splitfootline模板创建了您在 下提到的 50%-50% 视图Warsaw。让我们更新它以满足您的需求,现在创建一个 40%-40%-20% 的布局:

在此处输入图片描述

\documentclass{beamer}

\let\Tiny\tiny% http://tex.stackexchange.com/a/94159/5764

\usetheme{Warsaw}

%\usecolortheme{dolphin}% from Boadilla

\setbeamertemplate{footline}
  {%
    \leavevmode%
    \hbox{\begin{beamercolorbox}[wd=.4\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm]{author in head/foot}%
      \usebeamerfont{author in head/foot}\insertnameinstitute
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=.4\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
      \usebeamerfont{title in head/foot}\inserttopic
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=.2\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}%
      \usebeamerfont{title in head/foot}Page~\insertframenumber
    \end{beamercolorbox}}%
    \vskip0pt%
  }
\newcommand{\insertnameinstitute}{\insertshortauthor, \insertshortinstitute}
\newcommand{\topic}[1]{\def\currenttopic{#1}}\topic{}
\newcommand{\inserttopic}{\currenttopic}

\author[A Author]{An Author}
\institute[Institute]{INSTITUTE}
\title[A title]{An interesting title}

\topic{Some topic}

\begin{document}

\begin{frame}
  \maketitle
\end{frame}

\begin{frame}
  \frametitle{foo}
\end{frame}

\end{document}

beamer我不太理解你选择的主题一词,因为据我所知,没有这样的定义。相反,我创建了\topic{<topic>}一个可以在演示过程中随时更改的定义。

答案2

\documentclass{beamer}
\usetheme{Warsaw}
\usecolortheme{dolphin}%  from Boadilla
\useoutertheme{infolines}% from Boadilla
\begin{document}
    \frame{foo}
\end{document}

相关内容