我正在使用新加坡主题进行 Beamer 演示,并采用自定义颜色主题。我试图移除导航栏和标题页导航的淡入淡出效果,但无法让它们正常工作。是否有标准选项可以执行此操作?如何移除淡入淡出效果?
以下是其屏幕截图:
这是一个可重现的 .tex:
\documentclass[french]{beamer}
% Color Scheme:
% https://github.com/jrnold/beamercolorthemesolarized
\usecolortheme[accent=blue]{solarized}
\usetheme{Singapore}
\setbeamertemplate{navigation symbols} {
\insertslidenavigationsymbol
\insertframenavigationsymbol
\insertsubsectionnavigationsymbol
\insertsectionnavigationsymbol
\insertdocnavigationsymbol
\insertbackfindforwardnavigationsymbol
\hspace{1em}
\usebeamerfont{footline}
\insertframenumber/\inserttotalframenumber
}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\title{Title}
\author{My name}
\date{A Date}
\begin{document}
\frame{\titlepage}
\section{Previous}
\section{Next}
\begin{frame}
\frametitle{A Frame}
\end{frame}
\end{document}
答案1
您应该能够通过重置来移除导航按钮,navigation symbols template
并通过更改模板来移除标题阴影headline
。这两项修改都可以在封闭形成的组内本地进行{...}
。第二项修改由宏进行\removeheadshading
,该宏的定义与默认模板基本相同,但没有定义在内部的阴影beamerthemeSingapore.sty
请参阅下面的完整示例
% arara: lwpdflatex
\documentclass[french]{beamer}
% Color Scheme:
% https://github.com/jrnold/beamercolorthemesolarized
\usecolortheme[accent=blue]{solarized}
\usetheme{Singapore}
\setbeamertemplate{navigation symbols} {
\insertslidenavigationsymbol
\insertframenavigationsymbol
\insertsubsectionnavigationsymbol
\insertsectionnavigationsymbol
\insertdocnavigationsymbol
\insertbackfindforwardnavigationsymbol
\hspace{1em}
\usebeamerfont{footline}
\insertframenumber/\inserttotalframenumber
}
\newcommand{\removeheadshading}[0]{%
\setbeamertemplate{headline}{%
\begin{beamercolorbox}{section in head/foot}%
\vskip2pt\insertnavigation{\paperwidth}\vskip2pt%
\end{beamercolorbox}%
}%
}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\title{Title}
\author{My name}
\date{A Date}
\begin{document}
% Start group to make modifications local
{%
% Remove navigation bar
\setbeamertemplate{navigation symbols}{}
% Remove the headline shading
\removeheadshading
% Typeset the actual titlepage
\begin{frame}
\titlepage
\end{frame}
% End the local group
}
\section{Previous}
\section{Next}
\begin{frame}
\frametitle{A Frame}
\end{frame}
\end{document}
答案2
使用投影机来自 github 的开发版本或 beamer v3.70 (或更新版本),您可以简单地更改标题页的标题渐变颜色:
\documentclass{beamer}
\usecolortheme[accent=blue]{solarized}
\usetheme{Singapore}
\begin{document}
{
\setbeamertemplate{navigation symbols}{}
\setbeamercolor{section in head/foot}{bg=background canvas.bg}
\frame{\titlepage}
}
\section{Previous}
\section{Next}
\begin{frame}
\frametitle{A Frame}
\end{frame}
\end{document}