我怎样才能阻止 \footcite 劫持我的 beamer 列?

我怎样才能阻止 \footcite 劫持我的 beamer 列?

我已经beamer为研讨会准备了一个演示文稿。我已经做过演示,但在尝试更改传统引用的参考文献(使用数字上标并在演示文稿末尾排版参考文献)时,我使用了biblatex\footcite请考虑以下框架片段:

\documentclass[10pt]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amssymb}
\usepackage{colortbl}
\usepackage[spanish,es-tabla]{babel}  
\usepackage{wasysym}
\usepackage[style=verbose,autocite=footnote,maxnames=10,babel=hyphen,hyperref=true,abbreviate=false,backend=biber,mcite]{biblatex}
\addbibresource{references.bib}

\usepackage{pgf}
\usepackage{booktabs}
\usepackage{multirow}

\setlength{\columnsep}{.2cm}
\def\newblock{\hskip .11em plus .33em minus .07em}
\mode<presentation>
{
  \usetheme[width=4em]{PaloAlto}
  \usecolortheme{crane}
}
\title{Title}
\subtitle{Sub} 
\author[me]{me}
\date{\today}

\begin{document}

\begin{frame}
  \titlepage
\end{frame}

    %%%%%%% MAIN CODE %%%%%%
\begin{frame}{The FDTD Method}
    \begin{columns}
        \begin{column}{0.4\textwidth}
          \begin{itemize}
              \item Discretization of both space and time by central differences.
                \item Yee Cell %\footcite{Taflove2000}. 
            \end{itemize}
        \end{column}

    \begin{column}{0.5\textwidth}
        \begin{figure}
          \centering
          \includegraphics[width=0.9\columnwidth]{some_figure}
          \caption{Unit Yee Cell.}
        \end{figure}
    \end{column}

    \end{columns}
\end{frame}

\end{document}

将任何 PDF、PNG 或 JPG 文件some_figure与此.tex文件放在一起。文件内容references.bib(仅用于启用编译)为:

@Book{Taflove2000,
    Day = {{30}},
    Edition = {{2nd}},
    Month = {{jun}},
    Publisher = {{Artech House Publishers}},
    author = {Taflove, Allen and Hagness, Susan C.},
    title = {{Computational Electrodynamics: The Finite-Difference Time-Domain Method}},
    year = {{2000}},
}

注释到位后(即未使用 引用时\footcite),包含该图的第二列会正确显示在 PDF 输出中。但是,删除注释后,引用会出现在框架的页脚中,但第二列会随图一起消失。有人知道如何解决这个问题吗?

答案1

可以使用\footnotemark-\footnotetext机制来避免该问题:

\begin{column}{0.4\textwidth}
  \begin{itemize}
    \item Discretization of both space and time by central differences.
    \item Yee Cell\footnotemark
  \end{itemize}
\end{column}
\footcitetext{Taflove2000}

然而,这又带来了另一个问题:脚注的文本可能会覆盖导航符号,因此需要进行 lockstep 建议的另一项调整(参见这个答案):以下代码应放在序言中

\addtobeamertemplate{footnote}{\vspace{-6pt}\advance\hsize-0.5cm}{\vspace{6pt}}
\makeatletter
% Alternative A: footnote rule
\renewcommand*{\footnoterule}{\kern -3pt \hrule \@width 2in \kern 8.6pt}
% Alternative B: no footnote rule
% \renewcommand*{\footnoterule}{\kern 6pt}
\makeatother

选择你的选择。我修改了代码,还添加了一些内容来减少脚注的文本宽度,否则它们会一直延伸到边缘。

您的输入存在一些错误.bib

@Book{Taflove2000,
    Day = {30},
    Edition = {2nd},
    Month = {jun},
    Publisher = {Artech House Publishers},
    author = {Taflove, Allen and Hagness, Susan C.},
    title = {{Computational Electrodynamics: The Finite-Difference Time-Domain Method}},
    year = {2000},
}

括号太多:Biber 和 biblatex 无法正确理解数据。

答案2

这是一个完整的示例,其中包含了 egreg 和我提出的修复:

\documentclass[10pt]{beamer}

\usetheme[width=4em]{PaloAlto}
\usecolortheme{crane}

\addtobeamertemplate{footnote}{\vspace{-6pt}\advance\hsize-0.5cm}{\vspace{6pt}}
\makeatletter
% Alternative A: footnote rule
\renewcommand*{\footnoterule}{\kern -3pt \hrule \@width 2in \kern 8.6pt}
% Alternative B: no footnote rule
% \renewcommand*{\footnoterule}{\kern 6pt}
\makeatother

\usepackage[utf8]{inputenc}
\usepackage[spanish,es-tabla]{babel}  
\usepackage[style=verbose,autocite=footnote]{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@Book{Taflove2000,
    Day = {30},
    Edition = {2},
    Month = {jun},
    Publisher = {Artech House Publishers},
    author = {Taflove, Allen and Hagness, Susan C.},
    title = {Computational Electrodynamics: The Finite-Difference Time-Domain Method},
    year = {2000},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

\begin{frame}{The FDTD Method}
  \begin{columns}
    \begin{column}{0.4\textwidth}
      \begin{itemize}
      \item Discretization of both space and time by central differences.
      \item Yee Cell.\footnotemark 
      \end{itemize}
    \end{column}

    \begin{column}{0.5\textwidth}
      \begin{figure}
      \centering
      \rule{0.9\columnwidth}{2cm}% placeholder for graphic
      \caption{Unit Yee Cell.}
      \end{figure}
    \end{column}
  \end{columns}
\footcitetext{Taflove2000}
\end{frame}

\end{document}

在此处输入图片描述

答案3

我发现列出的解决方案不够完善。当我使用它时,脚注的编号与底部不一致,并且还有多个脚注的问题。再谷歌一下(和堆栈交换)让我找到了以下解决方案:

\footnote[frame]{\fullcite{AlnaesBlechta2015a}}

相关内容