如何删除此 beamer 模板上的括号?

如何删除此 beamer 模板上的括号?

在此处输入图片描述

\documentclass{beamer}

\mode<presentation> {

% The Beamer class comes with a number of default slide themes
% which change the colors and layouts of slides. Below this is a list
% of all the themes, uncomment each in turn to see what they look like.

%\usetheme{default}
%\usetheme{AnnArbor}
%\usetheme{Antibes}
%\usetheme{Bergen}
%\usetheme{Berkeley}
%\usetheme{Berlin}
%\usetheme{Boadilla}
%\usetheme{CambridgeUS}
%\usetheme{Copenhagen}
%\usetheme{Darmstadt}
%\usetheme{Dresden}
%\usetheme{Frankfurt}
%\usetheme{Goettingen}
%\usetheme{Hannover}
%\usetheme{Ilmenau}
%\usetheme{JuanLesPins}
%\usetheme{Luebeck}
\usetheme{Madrid}
%\usetheme{Malmoe}
%\usetheme{Marburg}
%\usetheme{Montpellier}
%\usetheme{PaloAlto}
%\usetheme{Pittsburgh}
%\usetheme{Rochester}
%\usetheme{Singapore}
%\usetheme{Szeged}
%\usetheme{Warsaw}

% As well as themes, the Beamer class has a number of color themes
% for any slide theme. Uncomment each of these in turn to see how it
% changes the colors of your current slide theme.

%\usecolortheme{albatross}
%\usecolortheme{beaver}
%\usecolortheme{beetle}
%\usecolortheme{crane}
%\usecolortheme{dolphin}
%\usecolortheme{dove}
%\usecolortheme{fly}
%\usecolortheme{lily}
%\usecolortheme{orchid}
%\usecolortheme{rose}
%\usecolortheme{seagull}
%\usecolortheme{seahorse}
%\usecolortheme{whale}
%\usecolortheme{wolverine}

%\setbeamertemplate{footline} % To remove the footer line in all slides uncomment this line
%\setbeamertemplate{footline}\[page number\] % To replace the footer line in all slides with a simple slide count uncomment this line

%\setbeamertemplate{navigation symbols}{} % To remove the navigation symbols from the bottom of all slides uncomment this line
}

\usepackage{graphicx} % Allows including images
\usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables

%----------------------------------------------------------------------------------------
%       TITLE PAGE
%----------------------------------------------------------------------------------------

\title\[COMPANY CONFIDENTIAL\]{Full Title of the Talk} % The short title appears at the bottom of every slide, the full title is only on the title page

%\author\[\]{\includegraphics\[height=1cm, width=3cm\]{/mounts/isilon/data/eahome/u1072932/resource/figs/q2logo}} % Your name
\author\[\]{Donald Trump} % Your name
\institute\[ABCDEF\] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space
{
%University of California \\ % Your institution for the title page
\medskip
\textit{[email protected]} % Your email address
}
\date{\today} % Date, can be changed to a custom date

\begin{document}

\begin{frame}
\titlepage % Print the title page as the first slide
\end{frame}

\begin{frame}
\frametitle{Overview} % Table of contents slide, comment this block out to remove it
\tableofcontents % Throughout your presentation, if you choose to use \section{} and \subsection{} commands, these will automatically be printed on this slide as an overview of your presentation
\end{frame}

%----------------------------------------------------------------------------------------
%       PRESENTATION SLIDES
%----------------------------------------------------------------------------------------
%------------------------------------------------

\section{Session Information}
\begin{frame}\[fragile\]
First Slide is awesome
\end{frame}
\end{document}][1]][1]

答案1

主题Madrid使用infolines外部主题,它将“简短机构”(在 的可选参数中提供的任何内容\institute)插入括号中。要删除这些,您必须重新定义整个footline模板,或对其进行修补。后者更简单,只需在加载主题后将以下内容添加到您的序言中即可实现:

\makeatletter
% Remove (parentheses) around "short institute" declaration
\patchcmd{\beamer@@tmpl@footline}% <cmd>
  {(\insertshortinstitute)}% <search>
  {\insertshortinstitute}% <replace>
  {}{}% <success><failure>
\makeatother

在此处输入图片描述

\documentclass{beamer}

\usetheme{Madrid}

%----------------------------------------------------------------------------------------
%       TITLE PAGE
%----------------------------------------------------------------------------------------

\title[Short title]{Full title}% The short title appears at the bottom of every slide, the full title is only on the title page

\author[A Author]{An Author} % Your name
\institute[ABCDEF]{% Your institution as it will appear on the bottom of every slide, may be shorthand to save space
  Institute \\[\medskipamount] % Your institution for the title page
  \textit{[email protected]} % Your email address
}
\date{\today} % Date, can be changed to a custom date

\makeatletter
% Remove (parentheses) around "short institute" declaration
\patchcmd{\beamer@@tmpl@footline}% <cmd>
  {(\insertshortinstitute)}% <search>
  {\insertshortinstitute}% <replace>
  {}{}% <success><failure>
\makeatother

\begin{document}

\begin{frame}
  \titlepage % Print the title page as the first slide
\end{frame}

\begin{frame}
  First slide is awesome
\end{frame}

\end{document}

相关内容