如何从 Beamer 的导航栏中删除“参考”一词?

如何从 Beamer 的导航栏中删除“参考”一词?

我目前正在准备一份 Beamer 演示文稿,我想做一些我自己无法完成的事情。我真的很想把“参考”一词从顶部导航栏中删除。查看下面的屏幕截图,了解我的意思。

在此处输入图片描述

产生上述输出而没有警告的(几乎)MWE 如下:

\documentclass[beaver,8pt,compress,notheorems,xcolor={svgnames},hyperref={colorlinks,allcolors=blue}]{beamer}

% PACKAGES LOADING

\usepackage[upright]{fourier} % My favourite font.
\usepackage[isbn=false,style=authoryear-comp,backend=biber,natbib,maxbibnames=99,maxcitenames=3,hyperref=true]{biblatex}
\usepackage{setspace} % To format text line spacing.

% FONT DEFINITIONS

\usefonttheme{professionalfonts}
\usefonttheme{serif}

% TO GET BULLETS ON TOP

\setbeamertemplate{frametitle}[default][center]
\setbeamertemplate{footline}[frame number]
\setbeamertemplate{navigation symbols}{}
\useoutertheme{miniframes}

\setbeamertemplate{itemize/enumerate subbody begin}{\normalsize}
\makeatletter
\g@addto@macro\@listii{\itemsep4pt}
\makeatletter

\addtobeamertemplate{frametitle}{\vskip-1.75ex}{}
\setlength{\leftmargini}{20.00pt}

\setbeamercolor{mini frame}{bg=blue, fg=blue}
\setbeamercolor{mini frame current frame}{fg=blue}

\makeatletter
\def\slideentry#1#2#3#4#5#6{%
  \ifnum#6=\c@part\ifnum#2>0\ifnum#3>0%
    \ifbeamer@compress%
      \advance\beamer@xpos by1\relax%
    \else%
      \beamer@xpos=#3\relax%
      \beamer@ypos=#2\relax%
    \fi%
  \hbox to 0pt{%
    \beamer@tempdim=-\beamer@vboxoffset%
    \advance\beamer@tempdim by-\beamer@boxsize%
    \multiply\beamer@tempdim by\beamer@ypos%
    \advance\beamer@tempdim by -.05cm%
    \raise\beamer@tempdim\hbox{%
      \beamer@tempdim=\beamer@boxsize%
      \multiply\beamer@tempdim by\beamer@xpos%
  \advance\beamer@tempdim by -\beamer@boxsize%
  \advance\beamer@tempdim by 1pt%
  \kern\beamer@tempdim
  \global\beamer@section@min@dim\beamer@tempdim
  \hbox{\beamer@link(#4){%
      \usebeamerfont{mini frame}%
      \ifnum\c@section>#1%
            \usebeamercolor[fg]{mini frame}%
            %\usebeamertemplate{mini frame}%
%            \usebeamercolor{mini frame}%
            \usebeamertemplate{mini frame}%
          \else%
            \ifnum\c@section=#1%
              \ifnum\c@subsection>#2%
                \usebeamercolor[fg]{mini frame}%
                \usebeamertemplate{mini frame}%
              \else%
                \ifnum\c@subsection=#2%
                  \usebeamercolor[fg]{mini frame}%
                  \ifnum\c@subsectionslide<#3%
                    \usebeamertemplate{mini frame in current subsection}%
                  \else%
                    \ifnum\c@subsectionslide=#3%
                        \usebeamercolor[fg]{mini frame current frame}
                    \fi 
                    \usebeamertemplate{mini frame}%
                  \fi%
                \else%
                  \usebeamercolor{mini frame}%
                  \usebeamertemplate{mini frame in other subsection}%
                \fi%
              \fi%
            \else%
              \usebeamercolor{mini frame}%
              \usebeamertemplate{mini frame in other subsection}%
            \fi%
          \fi%
        }}}\hskip-10cm plus 1fil%
  }\fi\fi%
  \else%
  \fakeslideentry{#1}{#2}{#3}{#4}{#5}{#6}%
  \fi\ignorespaces
  }
\makeatother

% BIBLIOGRAPHY SETTINGS

\addbibresource{Bib.bib}

\begin{document}

\section{Introduction}
\subsection{}

\begin{frame}
\frametitle{\textsc{Introduction}}
\framesubtitle{\textsc{\normalsize{}}}

\citet{hartmascolell} is an awesome paper.

\end{frame}

\renewcommand\arraystretch{1}
\emergencystretch=1em

\begin{frame}
\frametitle{\textsc{References}}
\framesubtitle{\textsc{\normalsize{}}}
\printbibliography
\end{frame}

\end{document}

使用方便的 .bib 文件,名为 Bib.bib,与主 .tex 存储在同一个文件夹中:

@article{hartmascolell,
author = "S. Hart and A. Mas-Colell",
title = "Bargaining and Value",
journal = "Econometrica",
volume = "64",
pages = "357--380",
year = "1996",
url = "https://doi.org/10.2307/2171787"
}

那么,我的问题是:我怎样才能从导航栏中删除“参考”这个词?

非常感谢大家抽出时间。

答案1

  • \printbibliography自动创建一个未编号的部分。可以关闭此功能\printbibliography[heading=none]。但是,上一节中将显示一个附加迷你框架。只需一点黑客攻击即可关闭此功能。

  • 您无需在每个框架标题中手动指定字体,而是可以使用\setbeamerfont{frametitle}{series=\scshape}


\documentclass[beaver,8pt,compress,notheorems,xcolor={svgnames},hyperref={colorlinks,allcolors=blue}]{beamer}

% PACKAGES LOADING

\usepackage[upright]{fourier} % My favourite font.
\usepackage[isbn=false,style=authoryear-comp,backend=biber,natbib,maxbibnames=99,maxcitenames=3,hyperref=true]{biblatex}
\usepackage{setspace} % To format text line spacing.

% FONT DEFINITIONS

\usefonttheme{professionalfonts}
\usefonttheme{serif}

% TO GET BULLETS ON TOP

\setbeamertemplate{frametitle}[default][center]
\setbeamertemplate{footline}[frame number]
\setbeamertemplate{navigation symbols}{}
\useoutertheme{miniframes}

\setbeamertemplate{itemize/enumerate subbody begin}{\normalsize}
\makeatletter
\g@addto@macro\@listii{\itemsep4pt}
\makeatletter

\addtobeamertemplate{frametitle}{\vskip-1.75ex}{}
\setlength{\leftmargini}{20.00pt}

\setbeamercolor{mini frame}{bg=blue, fg=blue}

\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{einstein,
    author = {Einstein, A.},
    title = {Die Grundlage der allgemeinen Relativit\"atstheorie},
    journal = {Annalen der Physik},
    volume = {354},
    number = {7},
    doi = {10.1002/andp.19163540702},
    pages = {769--822},
    year = {1916}
}
\end{filecontents*}

\makeatletter
\let\beamer@writeslidentry@miniframeson=\beamer@writeslidentry%
\def\beamer@writeslidentry@miniframesoff{%
  \expandafter\beamer@ifempty\expandafter{\beamer@framestartpage}{}% does not happen normally
  {%else
    % removed \addtocontents commands
    \clearpage\beamer@notesactions%
  }
}
\newcommand*{\miniframeson}{\let\beamer@writeslidentry=\beamer@writeslidentry@miniframeson}
\newcommand*{\miniframesoff}{\let\beamer@writeslidentry=\beamer@writeslidentry@miniframesoff}
\makeatother

\addbibresource{\jobname.bib}

\setbeamerfont{frametitle}{series=\scshape}

\begin{document}

\section{Introduction}
\subsection{}

\begin{frame}
\frametitle{Introduction}
\citet{einstein} is an awesome paper.
\end{frame}

\miniframesoff

\begin{frame}
\frametitle{References}
\printbibliography[heading=none]
\end{frame}

\end{document}

在此处输入图片描述

相关内容