我想引用不同文件名的参考文献。为了清楚起见,假设我的一些参考文献保存为,myref1.bib
而另一些则位于名为的文件中myref2.bib
。如果我想引用第一个文件中的参考文献,我可以使用
\bibliography{myref1.bib}
那么,如何引用这些内容myref2.bib
?非常感谢!
答案1
您可以在宏中使用逗号分隔的文件列表\bibliography
:
\documentclass{beamer}
\begin{filecontents*}[overwrite]{myref1.bib}
@article{einstein,
author = {Einstein, A.},
title = {Die Grundlage der allgemeinen Relativitätstheorie},
journal = {Annalen der Physik},
volume = {354},
number = {7},
doi = {10.1002/andp.19163540702},
pages = {769--822},
year = {1916}
}
\end{filecontents*}
\begin{filecontents*}[overwrite]{myref2.bib}
@book{knuth,
author = {Knuth, Donald E.},
title = {The {\TeX} book},
date = 1984,
maintitle = {Computers \& Typesetting},
volume = {A},
publisher = {Addison-Wesley},
location = {Reading, Mass.},
langid = {english},
langidopts = {variant=american},
sortyear = {1984-1},
sorttitle = {Computers & Typesetting A},
indexsorttitle= {The TeXbook},
indextitle = {\protect\TeX book, The},
shorttitle = {\TeX book}
}
\end{filecontents*}
\begin{document}
\begin{frame}
\cite{einstein}\cite{knuth}
\bibliographystyle{plain}
\bibliography{myref1,myref2}
\end{frame}
\end{document}