我在 Beamer 演示文稿中使用了主题frankfurt
。同时,我使用它\setbeamertemplate{footline}[frame number]
来获取帧编号。
标题Frankfurt
分为两部分:顶部是部分,下方是框架标题。框架编号显示在右下角。
最近,我看到一个 PowerPoint 演示文稿,其中页眉的标题旁边显示了框架编号。
我的问题frankfurt
: 是否可以将帧编号包含在右侧主题标题的标题部分中?如何操作?
我们
\documentclass[t]{beamer}
\usetheme{Frankfurt}
\usecolortheme{dove}
\setbeamercolor{titlelike}{parent=structure}
\usefonttheme{structuresmallcapsserif}
\setbeamercolor{frametitle}{bg=light-gray}
\definecolor{light-gray}{gray}{0.80}
\usepackage[ngerman]{babel} %dt. Silbentrennung
\usepackage[applemac]{inputenc} %Richtiges Sprach-Funktionieren am Mac
\setbeamertemplate{navigation symbols}{}
\begin{document}
\section{asdf}
\begin{frame}
\frametitle{Hund}
\end{frame}
\section{bsdf}
\begin{frame}
\frametitle{Katze}
\end{frame}
\section{csdf}
\begin{frame}
\frametitle{Maus}
\end{frame}
\end{document}
答案1
以下代码缩短了导航行并在左侧包含页码。这是您想要的吗?
\documentclass[t]{beamer}
\usetheme{Frankfurt}
\usecolortheme{dove}
\setbeamercolor{titlelike}{parent=structure}
\usefonttheme{structuresmallcapsserif}
\setbeamercolor{frametitle}{bg=light-gray}
\definecolor{light-gray}{gray}{0.80}
\usepackage[ngerman]{babel} %dt. Silbentrennung
\usepackage[applemac]{inputenc} %Richtiges Sprach-Funktionieren am Mac
\setbeamertemplate{navigation symbols}{}
\makeatletter
\defbeamertemplate*{headline}{my smoothbars theme}
{%
\pgfuseshading{beamer@barshade}%
\ifbeamer@sb@subsection%
\vskip-9.75ex%
\else%
\vskip-7ex%
\fi%
\begin{beamercolorbox}[ignorebg,ht=2.25ex,dp=3.75ex]{section in head/foot}
\insertnavigation{.9\paperwidth}\hfill\insertpagenumber\hspace{.5em}
\end{beamercolorbox}%
\ifbeamer@sb@subsection%
\begin{beamercolorbox}[ignorebg,ht=2.125ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
\usebeamerfont{subsection in head/foot}\insertsubsectionhead
\end{beamercolorbox}%
\fi%
}%
\makeatother
\begin{document}
\section{asdf}
\subsection{abcd}
\begin{frame}
\frametitle{Hund}
\end{frame}
\section{bsdf}
\subsection{abcd}
\begin{frame}
\frametitle{Katze}
\end{frame}
\section{csdf}
\subsection{abcd}
\begin{frame}
\frametitle{Maus}
\end{frame}
\end{document}