我想从 Beamer 第一页和最后一页的标题面板中删除标题水印/阴影。有人能帮我吗?
\documentclass[10pt, a4paper, serif]{beamer}
\usetheme{Darmstadt}
\usetheme{Warsaw}
\title[November 2019]{Removing the watermark}
\subtitle[]{}
\author[Alexandre Loures]{Alexandre Loures}
\date{November 2019}
\begin{document}
\maketitle
\section{Removing the watermark}
\begin{frame}
\frametitle{}{}
Removing the watermark
\end{frame}
\include{help-thanks}
\end{document}
作为 thanks.tex:
\section{}
\begin{frame}
\centering
Thanks!
\end{frame}
其结果如下:
我想从 Beamer 第一页和最后一页的标题面板中删除标题阴影,如下所示:
提前感谢您的关注!
答案1
您可以本地重新定义使用的模板,有关更多示例,请参阅此问答:Beamer 头条新闻。
对于你的情况应该这样做:
\documentclass[10pt, a4paper,serif]{beamer}
\usetheme{Warsaw}
\title[November 2019]{Title: Removing the watermark}
\author[Alexandre Loures]{Alexandre Loures}
\date{November 2019}
\begin{document}
\begingroup
\setbeamertemplate{section in head/foot}{}
\setbeamertemplate{section in head/foot shaded}{}
\begin{frame}
\maketitle
\end{frame}
\endgroup
\section{Section: Removing the watermark}
\begin{frame}
Normal text: Removing the watermark
\end{frame}
% etc.
\end{document}
对于更频繁的使用,我建议定义一个新环境:
\documentclass[10pt,a4paper,serif]{beamer}
\usetheme{Warsaw}
\title[November 2019]{Title: Removing the watermark}
\author[Alexandre Loures]{Alexandre Loures}
\date{November 2019}
\newenvironment{headless}
{%
\begingroup
\setbeamertemplate{section in head/foot}{}
\setbeamertemplate{section in head/foot shaded}{}
\begin{frame}
}{%
\end{frame}
\endgroup
}
\begin{document}
\begin{headless}
\maketitle
\end{headless}
\section{Section: Removing the watermark}
\begin{frame}
Normal text: Removing the watermark
\end{frame}
% etc.
\end{document}
答案2
您可能对以下 MWE 中所示的新定义的命令感到满意\hidesectiontitles
。 如果要在标题框上使用它,请确保将两个命令都括在一组中{}
:
\documentclass[10pt, a4paper]{beamer}
\usetheme{Warsaw}
\usefonttheme{serif}
\title[November 2019]{Removing the watermark}
\subtitle[]{}
\author[Alexandre Loures]{Alexandre Loures}
\date{November 2019}
\newcommand{\hidesectiontitles}{\setbeamercolor{section in head/foot}{fg=black}
\setbeamercolor{subsection in head/foot}{fg=black}
\setbeamercolor{author in head/foot}{parent=palette quaternary}
\setbeamercolor{title in head/foot}{parent=palette primary}}
\begin{document}
{\hidesectiontitles
\maketitle}
\section{Removing the watermark}
\begin{frame}
\frametitle{}{}
Removing the watermark
\end{frame}
\hidesectiontitles
\begin{frame}
\centering
Thanks!
\end{frame}
\end{document}
可能不是最优雅的解决方案,但通过\pgfdeclareverticalshading
如以下示例所示重新定义,您可以删除演示文稿所有帧上 frametitle 下的阴影。
\documentclass[10pt, a4paper]{beamer}
\usetheme{Warsaw}
\AtBeginDocument{
\pgfdeclareverticalshading{beamer@topshade}{\paperwidth}{%
color(0pt)=(bg);
color(0pt)=(bg)}
}
\usefonttheme{serif}
\title[November 2019]{Removing the watermark}
\subtitle[]{}
\author[Alexandre Loures]{Alexandre Loures}
\date{November 2019}
\begin{document}
\maketitle
\section{Removing the watermark}
\begin{frame}
\frametitle{}{}
Removing the watermark
\end{frame}
\section{}
\begin{frame}
\centering
Thanks!
\end{frame}
\end{document}