这是我正在使用的代码:
\renewcommand{\bibname}{Bibliography}
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{unsrt}
\bibliographystyle{plain}
\bibliography{refs}
但我想将参考资料放在每页的页脚中。我该如何将它们放在那里?我应该使用哪个包或命令?
例如:postimg.org/image/p4048ijzd
答案1
您可以使用以下 MWE \footcite
。请注意,您必须使用biblatex
和biber
来编译 MWE!
如果您不能使用,请将选项biber
更改为。biblatex
backend=biber
backend=bibtex
MWE(例如命名mwe.tex
):
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@Book{Goossens,
author = {Goossens, Michel and Mittelbach, Frank and
Samarin, Alexander},
title = {The LaTeX Companion},
edition = {1},
publisher = {Addison-Wesley},
location = {Reading, Mass.},
year = {1994},
}
@Book{adams,
title = {The Restaurant at the End of the Universe},
author = {Douglas Adams},
series = {The Hitchhiker's Guide to the Galaxy},
publisher = {Pan Macmillan},
year = {1980},
}
article{einstein,
author = {Albert Einstein},
title = {{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
[{On} the electrodynamics of moving bodies]},
journal = {Annalen der Physik},
volume = {322},
number = {10},
pages = {891--921},
year = {1905},
DOI = {http://dx.doi.org/10.1002/andp.19053221004},
}
@misc{mozart:KV183,
author = {Mozart, Wolfgang Amadeus},
title = {Sinfonie g-Moll},
year = {1773},
address = {Salzburg},
note = {New K{\"o}chelverzeichnis Nr. 183, old version Nr. 25;
Erster Satz: Allegro con brio, Zweiter Satz: Andante,
Dritter Satz: Menuetto, Vierter Satz: Allegro},
}
\end{filecontents*}
\documentclass{article}
\usepackage[%
backend=biber, % <=============== possible: bibtex, bibtex8, biber
style=authortitle,
citestyle=authoryear-ibid,
sorting=nyt,
isbn=false,
doi=false
]{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
This is text with \cite{Goossens} and \autocite{adams}.
And \footcite{mozart:KV183}.
\nocite{*} % <===== shows all uncited bib entrys in bibliography
\printbibliography
\end{document}
结果:
引用了莫扎特\footcite
。还请注意,您给出的代码 sbippets 基于 BiBTeX,而不是 Biber 和biblatex
。
先用 编译pdflatex mwe.tex
,然后biber mwe
,然后 两次pdflatex mwe.tex
。为避免编辑器出现问题(您使用哪一个?),请在终端/控制台上使用此命令进行编译。
如果您使用 BiBTeX 作为后端,请将编译更改为:pdflatex mwe.tex
,然后bibtex mwe
,然后两次pdflatex mwe.tex
。