我想更改 beamer 文档导航中 (子) 部分的字体。但是仅有的当前(子)部分。框架的标题目前如下所示:
我想让活动(子)部分变大。我知道该命令\setbeamerfont{section in head/foot}{size=\small}
,但这也会改变非活动部分的大小。
我在 Windows 7 下使用带有 TeXstudio 的 MiKTeX 2.9.5840。
示例文档
\documentclass{beamer}
\usetheme{Rochester}
\usefonttheme[onlysmall]{structurebold}
\beamertemplatenavigationsymbolsempty
\setbeamertemplate{headline}{
\begin{beamercolorbox}{palette secondary}
\vskip2pt\insertnavigation{\paperwidth}\vskip2pt
\end{beamercolorbox}
\begin{beamercolorbox}{palette tertiary}
\vskip2pt\insertsubsectionnavigationhorizontal{\paperwidth}{\hfill}{\hfill}\vskip2pt
\end{beamercolorbox}
}
\setbeamertemplate{footline}{}
\begin{document}
\selectlanguage{english}
% Title Page
{\setbeamercolor{palette tertiary}{fg=white,bg=white}
\begin{frame}
\titlepage
\end{frame}}
% Content
\section{Section 1}
\subsection{Subsection 1}
\frame{}
\frame{}
\subsection{Subsection 2}
\frame{}
\frame{}
\subsection{Subsection 3}
\frame{}
\frame{}
\frame{}
\section{Section 2}
\subsection{Subsection 1}
\frame{}
\frame{}
\subsection{Subsection 2}
\frame{}
\frame{}
\subsection{Subsection 3}
\frame{}
\frame{}
\frame{}
\section{Section 3}
\subsection{Subsection 1}
\frame{}
\frame{}
\subsection{Subsection 2}
\frame{}
\frame{}
\subsection{Subsection 3}
\frame{}
\frame{}
\frame{}
\section{Section 4}
\subsection{Subsection 1}
\frame{}
\frame{}
\subsection{Subsection 2}
\frame{}
\frame{}
\subsection{Subsection 3}
\frame{}
\frame{}
\frame{}
\end{document}
我为什么要这么做?
我想概述演示的进度,同时强调当前的位置。这样我就可以摆脱(在我看来)浪费空间和多余的框架标题。
答案1
继承section in head/foot shaded
了 的外观section in head/foot
,但在重新定义它时,可以潜入额外的命令,如下\tiny
例中的 。
\documentclass{beamer}
\usetheme{Rochester}
\usefonttheme[onlysmall]{structurebold}
\beamertemplatenavigationsymbolsempty
\setbeamertemplate{headline}{
\begin{beamercolorbox}{palette secondary}
\vskip2pt\insertnavigation{\paperwidth}\vskip2pt
\end{beamercolorbox}
\begin{beamercolorbox}{palette tertiary}
\vskip2pt\insertsubsectionnavigationhorizontal{\paperwidth}{\hfill}{\hfill}\vskip2pt
\end{beamercolorbox}
}
\setbeamertemplate{footline}{}
\setbeamerfont{section in head/foot}{size=\small}
\setbeamertemplate{section in head/foot shaded}
{\color{fg!50!bg}\tiny\usebeamertemplate{section in head/foot}}
\begin{document}
% Title Page
{\setbeamercolor{palette tertiary}{fg=white,bg=white}
\begin{frame}
\titlepage
\end{frame}}
% Content
\section{Section 1}
\subsection{Subsection 1}
\frame{}
\frame{}
\subsection{Subsection 2}
\frame{}
\frame{}
\subsection{Subsection 3}
\frame{}
\frame{}
\frame{}
\section{Section 2}
\subsection{Subsection 1}
\frame{}
\frame{}
\subsection{Subsection 2}
\frame{}
\frame{}
\subsection{Subsection 3}
\frame{}
\frame{}
\frame{}
\section{Section 3}
\subsection{Subsection 1}
\frame{}
\frame{}
\subsection{Subsection 2}
\frame{}
\frame{}
\subsection{Subsection 3}
\frame{}
\frame{}
\frame{}
\section{Section 4}
\subsection{Subsection 1}
\frame{}
\frame{}
\subsection{Subsection 2}
\frame{}
\frame{}
\subsection{Subsection 3}
\frame{}
\frame{}
\frame{}
\end{document}