如何在投影片結尾和簡報結尾產生參考書目

如何在投影片結尾和簡報結尾產生參考書目

簡報是一系列beamer投影片。我正在為兩組觀眾準備一個演示。其中一組希望在每張幻燈片的末尾可視化不同的參考文獻。其他人喜歡在演示結束時一起瀏覽所有內容。為了讓他們所有人都滿意,我需要在每張投影片的底部以及簡報的末尾寫上作者姓名期刊年份參考文獻。

為了將參考放在幻燈片的結尾,我們可以使用\footcite{}package biblatex。但它不會在演示結束時產生參考書目。

要在簡報末尾編寫參考書目,我們可以使用簡單的程式碼,例如

\begin{frame}[allowframebreaks]

        \frametitle{References}
        \bibliographystyle{alpha}
        \bibliography{library}

\end{frame}

此方法不會在投影片結尾產生參考書目。

甚至,這兩種方法彼此不相容,因為使用一種方法會阻止另一種方法運作。那麼,我該如何準備我的演講來滿足所有觀眾的需求呢?希望有我不知道的解決方案。請注意,我喜歡使用.bib文件來產生參考書目。

答案1

使用biblatex,您可以使用\footfullcite{key}新增完整條目作為腳註,並\printbibliography在最後使用您還將獲得完整的參考書目。一個小例子:

\documentclass{beamer}
\usepackage{biblatex}

\usepackage{filecontents}
\begin{filecontents*}{xyyzzz.bib}
@article{bertram,
  author       = {Bertram, Aaron and Wentworth, Richard},
  title        = {Gromov invariants for holomorphic maps on {Riemann} surfaces},
  journaltitle = jams,
  date         = 1996,
  volume       = 9,
  number       = 2,
  pages        = {529-571},
  langid       = {english},
  langidopts   = {variant=american},
  shorttitle   = {Gromov invariants},
  annotation   = {An \texttt{article} entry with a \texttt{volume} and a
                  \texttt{number} field},
}
\end{filecontents*}

\addbibresource{xyyzzz.bib}

\begin{document}

\begin{frame}
test\footfullcite{bertram}
\end{frame}

\begin{frame}[allowframebreaks]
\frametitle{\bibname}
\printbibliography
\end{frame}

\end{document}

結果:

在此輸入影像描述

作為旁注,嘗試說服希望將條目作為腳註的小組,這不是一個好主意。

相關內容