为什么 \footcite 在 beamer 中不起作用?

为什么 \footcite 在 beamer 中不起作用?

我想在我的投影仪演示文稿中添加引用,并看到了以下帖子。

如何将引用嵌入脚注?

为了进行测试运行,我复制了那里发布的答案,但我没有得到那里显示的结果。事实上,我只在幻灯片底部得到了“foo12”。

有人能告诉我这里出了什么问题吗?我需要为 \documentclass{beamer} 添加任何新包吗?

答案1

您必须先使用 pdflatex 处理文档一次,然后再使用 pdflatex 处理一次,biber然后再使用 pdflatex 处理两次。

通过这个例子(从链接问题修改而来beamer):

\documentclass{beamer}
\usepackage[style=verbose]{biblatex}

\usepackage{filecontents}% to embed the file `myreferences.bib` in your `.tex` file
\begin{filecontents*}{myreferences.bib}
@online{foo12,
  year = {2012},
  title = {footnote-reference-using-european-system},
  url = {http://tex.stackexchange.com/questions/69716/footnote-reference-using-european-system},
}
\end{filecontents*}

% File is created and written to disk by the above package
\addbibresource{myreferences.bib}

\begin{document}

\begin{frame}
Some text.\footnote{Some text in a footnote.} Some more text.\footcite{foo12}
\end{frame}

\begin{frame}
\printbibliography
\end{frame}

\end{document}

输出为:

在此处输入图片描述

检查您的版本,biblatex并在必要时进行更新。在我的系统 TeX Live2015 中,在回答这个问题时:

biblatex.sty    2015/04/19 v3.0 programmable bibliographies (PK/JW/AB)
biblatex2.sty    2015/04/19 v3.0 programmable bibliographies (biber) (PK/JW/AB)
Biber 2.1

相关内容