更改投影仪演示文稿中的脚注内容

更改投影仪演示文稿中的脚注内容

对于我的演示文稿,我使用的是马德里主题;但是,我想更改脚注的内容。目前,脚注在左侧显示“简短作者”,在中间显示“简短标题”,在右侧显示“日期和帧数/总帧数”。我需要按如下方式更改这些内容:

左侧:部分名称

中心:子部分

右:相同,即日期和帧数/总帧数

如果有人能帮助我,我真的很感激。

答案1

Madrid使用infolines外部主题,因此您需要重新定义footline为该外部主题实现的模板;以下是必要的更改:

\documentclass{beamer}
\usetheme{Madrid}

\makeatletter
\setbeamertemplate{footline}
{
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertsection
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertsubsection
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
    \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
    \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} 
  \end{beamercolorbox}}%
  \vskip0pt%
}
\makeatother

\title{The Title}
\author{The Author}

\begin{document}

\section{Test Section One}
\subsection{Test Subsection One One}
\begin{frame}
test
\end{frame}
\subsection{Test Subsection One Two}
\begin{frame}
test
\end{frame}

\end{document}

在此处输入图片描述

相关内容