如下所示,我尝试为每个部分标题制作单独的幻灯片,并希望在其中添加脚注。不幸的是,脚注不会显示在幻灯片末尾。此外,脚注编号是 2,而不是 1:
\documentclass[10pt]{beamer}
\mode<presentation> {
\usetheme{CambridgeUS}
\usecolortheme{seagull}
\setbeamertemplate{navigation symbols}{}
}
\setbeamercolor{frametitle}{fg=blue!75}
\setbeamercolor{block title}{bg=blue!30,fg=black}
\setbeamercolor*{title}{bg=lightgray!5,fg=blue!75}
\usepackage{array}
\setbeamercovered{transparent}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{bibentry}
\usepackage{mathtools}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\setbeamertemplate{caption}[numbered]
\usepackage{hyperref,longtable}
\usepackage{graphics,epsfig,lscape,setspace,url,setspace,morefloats,appendix,comment,booktabs,color}
\usepackage[labelfont=sc, singlelinecheck=false, font={small}]{caption}
\usepackage[
backend=bibtex,
citestyle=authoryear
]{biblatex}
\setbeamertemplate{bibliography item}[text]
\hypersetup{
colorlinks,
citecolor=blue,
linkcolor=black
}
\DeclareCiteCommand{\cite}
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\printtext[bibhyperref]{\usebibmacro{cite}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\usepackage{marvosym}
\usepackage{romannum}
\setbeamertemplate{itemize items}[square]
\usepackage{tikz}
\usepackage{xcolor}
\def\checkmark{\tikz\fill[scale=0.4](0,.35) -- (.25,0) -- (1,.7) -- (.25,.15) -- cycle;}
\usepackage{dsfont}
\usepackage{appendixnumberbeamer}
\usepackage{color, colortbl}
\usepackage{xspace}
\AtBeginSection[]{
\begin{frame}
\vfill
\centering
\begin{beamercolorbox}[sep=8pt,center,shadow=true,rounded=true]{title}
\usebeamerfont{title}\insertsectionhead\par%
\end{beamercolorbox}
\vfill
\end{frame}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title[Presentation]{A presentation}
\author[someone]{some\inst{1,2}}
\institute[]{\inst{1} somewhere1 \\ \inst{2} somewhere2\
}
\bigskip
\date{whenever}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section{Section title\footnote{A footnote attempt}} %
\end{document}
如果我使用footnote[frame]{the footnote}
,脚注会在该部分的每一帧上重复,这是我不想要的(而且我仍然得到 2 个而不是 1 个)。如何解决这个问题?
答案1
脚注在该节的每一帧中重复出现,因为节名称显示在标题中,因此出现在每一帧中。您可以通过以下方式避免这种情况:
使用可选参数指定标题的替代版本
\section[short version]{long version}
在部分页面中使用
\insertsection
而不是\insertsectionhead
来获取部分名称的长版本
或者,您可以通过选择一个在每一帧上重复当前部分的标题来避免此问题,例如\setbeamertemplate{headline}{}
\documentclass[10pt]{beamer}
\mode<presentation> {
\usetheme{CambridgeUS}
\usecolortheme{seagull}
\setbeamertemplate{navigation symbols}{}
}
\setbeamercolor{frametitle}{fg=blue!75}
\setbeamercolor{block title}{bg=blue!30,fg=black}
\setbeamercolor{title}{bg=lightgray!5,fg=blue!75}
\setbeamercolor{section}{parent={title},fg=black}
\AtBeginSection[]{
\begin{frame}
\vfill
\centering
\begin{beamercolorbox}[sep=8pt,center,shadow=true,rounded=true]{section}
\usebeamerfont{title}\insertsection\par%
\end{beamercolorbox}
\vfill
\end{frame}
}
\title[Presentation]{A presentation}
\author[someone]{some\inst{1,2}}
\institute[]{\inst{1} somewhere1 \\ \inst{2} somewhere2}
\date{whenever}
\begin{document}
\section[Section title]{Section title\footnote[frame]{A footnote attempt}} %
\begin{frame}
content...
\end{frame}
\end{document}