删除标题/作​​者脚但保留页眉

删除标题/作​​者脚但保留页眉

我在 overleaf 的 beamer 演示文稿中使用 Boadilla 主题,我想删除底部的标题、作者和日期框,同时保留我在图片中用黄色突出显示的页眉。还应删除正下方浅蓝色的矩形。

在此处输入图片描述

这是我的代码:

% Latex template: [email protected]
% For more details: https://www.sharelatex.com/learn/Beamer

\documentclass[12pt]{beamer}                    % Document class
\usetheme{Boadilla}
\usepackage[english]{babel}             % Set language
\usepackage[utf8x]{inputenc}            % Set encoding

\mode<presentation>                     % Set options
{
  \usetheme{default}                    % Set theme
  \usecolortheme{default}               % Set colors
  \usefonttheme{default}                % Set font theme
  \setbeamertemplate{caption}[numbered] % Set caption to be numbered
}

\beamertemplatenavigationsymbolsempty
\setbeamercovered{transparent}
\setbeamertemplate{navigation symbols}{}

\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{title in head/foot}{}
\useoutertheme[subsection=true]{miniframes} %<<<<<<<<<<<<<<<<
%\setbeamercolor{section in head/foot}{fg=white, bg=black} %<<<<<<<<<<<<<<<<
%\setbeamercolor{subsection in head/foot}{fg=white, bg=gray} %<<<<<<<

%\setbeamercolor{title in head/foot}{} %<<<<<<<<<<<<<<<<
%\setbeamercolor{author in head/foot}{} 
% Uncomment this to have the outline at the beginning of each section highlighted.
%\AtBeginSection[]
%{
%  \begin{frame}{Outline}
%    \tableofcontents[currentsection]
%  \end{frame}
%}

\usepackage{graphicx}                   % For including figures
\usepackage{booktabs}                   % For table rules
\usepackage{hyperref}                   % For cross-referencing

\title{Title for a minimal beamer presentation} % Presentation title
\author{}                               % Presentation author
\institute{}                    % Author affiliation
\date{\today}                                   % Today's date  

\begin{document}

% Title page
% This page includes the informations defined earlier including title, author/s, affiliation/s and the date
\begin{frame}
  \titlepage
\end{frame}

答案1

您可以使用\setbeamertemplate{footline}{}来重新定义脚线。

如果你不喜欢标题中的浅蓝色子部分栏,请不要将其设置为 true:\useoutertheme[subsection=false]{miniframes}

关于您的代码的其他一些评论:

  • 您不应该使用带有当前 latex 版本utf8x的选项。请改用 -- 或者直接删除默认加载的选项inputencutf8inputencutf8

  • 你不需要加载default主题,正如名称所示,它们是默认的

  • 无需重新定义navigation symbols三次

  • 无需使用\setbeamertemplate{caption}[numbered]两次

  • 你不需要加载graphicxhyperref在 beamer 文档中,beamer 会为你加载它们

  • \date{\today}没有必要,这是默认显示的日期

\documentclass[12pt]{beamer}                    % Document class
\usetheme{Boadilla}
\usepackage[english]{babel}             % Set language
\setbeamercovered{transparent}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{caption}[numbered]
\useoutertheme[subsection=false]{miniframes} %<<<<<<<<<<<<<<<<
\usepackage{booktabs}                   % For table rules

\title{Title for a minimal beamer presentation} % Presentation title
\author{}                               % Presentation author
\institute{}                    % Author affiliation

\setbeamertemplate{footline}{}

\begin{document}

\section{Section}
\begin{frame}
  content
\end{frame}

\end{document}

在此处输入图片描述

相关内容