我正在使用以下代码来引用参考文献。如何将引用的参考文献放入每张幻灯片的脚注中?
\documentclass[mathserif]{beamer}
\mode<presentation>{
\usetheme{default}
\setbeamertemplate{bibliography item}[text]}
\begin{document}
\begin{frame}
\section{References}
\frametitle{References}
\begin{thebibliography}{99}
\bibitem{abc} ABC
\bibitem{def} DEF
\end{thebibliography}
\end{frame}
\end{document}
答案1
如果你想保留你的手动参考书目,你可以这样做
\documentclass{beamer}
\mode<presentation>{
\usetheme{default}
\usefonttheme[onlymath]{serif}
\setbeamertemplate{bibliography item}[text]}
\begin{document}
\begin{frame} blabla\footnote{\cite{abc}} \end{frame}
\section{References}
\begin{frame}
\frametitle{References}
\begin{thebibliography}{99}
\bibitem[Smith 2013]{abc} ABC
\bibitem{def} DEF
\end{thebibliography}
\end{frame}
\end{document}
不过我建议改用一些自动书目工具,比如biblatex
。从长远来看,这将使你的生活变得轻松很多。它有专门的命令,比如,\footcite
我认为它们正是你想要的。
\documentclass{beamer}
\usepackage[style=authortitle,backend=bibtex]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\begin{frame}
Here is text\footcite{westfahl:space}.
\end{frame}
\begin{frame}
Here is text\footfullcite{westfahl:space}.
\end{frame}
\begin{frame}
\printbibliography
\end{frame}
\end{document}
第一次使用它有点麻烦,因为你必须.bib
以以下格式创建一个包含参考资料的文件
@incollection{westfahl:space,
author = {Westfahl, Gary},
title = {The True Frontier},
subtitle = {Confronting and Avoiding the Realities of Space in {American}
Science Fiction Films},
pages = {55-65},
crossref = {westfahl:frontier},
langid = {english},
langidopts = {variant=american},
indextitle = {True Frontier, The},
annotation = {A cross-referenced article from a \texttt{collection}. This is
an \texttt{incollection} entry with a \texttt{crossref}
field. Note the \texttt{subtitle} and \texttt{indextitle}
fields},
}
但经过这项初步工作后,它几乎可以为您完成所有事情。