每张幻灯片上均有参考资料

每张幻灯片上均有参考资料

我下载了一个 .bib 文件,但是不知道如何在 beamer 中引用这个文件,而且它只出现在当前页,而不是最后一页。这是一个最小的情况,我该如何添加?

\documentclass{beamer}
\usepackage[utf8]{inputenc}

\usepackage[backend = biber,
            style = numeric,
            urldate = long, 
            maxcitenames = 2,
            defernumbers=true
            ]{biblatex}
\addbibresource{my.bib}

\begin{document}


\begin{frame}
\newrefsection
\begin{refsegment}
Here is an example a reference\cite{2014IB}.
\end{refsegment}

\printbibliography[segment=1]
\end{frame}

\end{document}

这是我的.bib文件:

@misc{2014IB,
author = {Hu, Zhonghan},
title = {Infinite Boundary Terms of Ewald Sums and Pairwise Interactions for Electrostatics in Bulk and at Interfaces},
journal = {Journal of Chemical Theory and Computation},
volume = {10},
number = {12},
pages = {5254-5264},
year = {2014},
doi = {10.1021/ct500704m},
    note ={PMID: 26583209},

URL = { 
        https://doi.org/10.1021/ct500704m
    
},
eprint = { 
        https://doi.org/10.1021/ct500704m
    
}
}

f6

答案1

每张幻灯片上均有参考资料

如果您想打印每张幻灯片的参考列表,Biblatex 有此功能。在下面的代码中,我们使用,\newrefsection这样我们就不必更改每张幻灯片的片段编号。文档是这里

\documentclass{beamer}
\usepackage[utf8]{inputenc}

\usepackage[backend = biber,
            style = numeric,
            urldate = long, 
            maxcitenames = 2,
            defernumbers=true
            ]{biblatex}
\addbibresource{references.bib}

\begin{document}


\begin{frame}
\newrefsection
\begin{refsegment}
Here is an example a reference\cite{areference}.
\end{refsegment}

\printbibliography[segment=1]
\end{frame}


\begin{frame}
\newrefsection
\begin{refsegment}
Here is an example of another reference\cite{anotherreference}.
\end{refsegment}

\printbibliography[segment=1]
\end{frame}


\end{document}

该文件references.bib如下所示:

@misc{areference,
  author = {Me},
  title = {My first reference},
  year = 2022,
}

@misc{anotherreference,
  author = {Me},
  title = {My second reference},
  year = 2022,
}

结果是这样的: 在此处输入图片描述

最后一张幻灯片中的参考资料

如果您想要在最后一张幻灯片上有引用的默认行为,请使用\printbibliography

\documentclass{beamer}
\usepackage[utf8]{inputenc}

\usepackage[backend = biber,
            style = numeric,
            urldate = long, 
            maxcitenames = 2,
            ]{biblatex}
\addbibresource{references.bib}

\begin{document}


\begin{frame}
Here is an example reference\cite{areference}.
\end{frame}

\begin{frame}
\frametitle{References}
Here is an example of another reference\cite{anotherreference}.

\printbibliography
\end{frame}


\end{document}

结果如下: 在此处输入图片描述

相关内容