我正在尝试根据主要来源和次要来源将我的参考书目分为两部分。我曾经成功过一次,但从那以后,我的文件就拒绝通过关键字区分条目。例如,我的 MWE:
\documentclass[12pt, letterpaper]{article}
\usepackage[notes, backend=biber, cmsdate=both, longcrossref=true, delayvolume]{biblatex-chicago}
\bibliography{Bibliography}
\defbibheading{bibliography}[\refname]{}
\begin{document}
\nocite{*}
words etc. \par
\begin{center}
{\normalsize{\textbf{Bibliography}}} %title
\end{center}
\printbibliography[keyword=primary,title={Primary Sources}]
\printbibliography[keyword=secondary,title={Secondary Secondary}]
\end{document}
示例来源于 Bibliography.bib 文件:
@book{williamcobbett,
title={William Cobbett},
author={Chesterton, G.K.},
year={[1920]},
location = {London},
keywords = {primary},
publisher={Hodder \& Stoughton}
}
@book{doweagree,
title={Do We Agree?},
subtitle = {A Debate Between G.K. Chesterton and Bernard Shaw with Hilaire Belloc in the Chair},
year={1928},
location = {Hartford, CT},
keywords = {primary},
publisher={Edwin Valentine Mitchell}
}
@book{buildingjerusalem,
title={Building Jerusalem},
subtitle = {The Rise and Fall of the Victorian City},
author={Hunt, Tristram},
year={2004},
location = {London},
keywords = {secondary},
publisher={Weidenfeld \& Nicolson}
}
@book{salvationarmy,
author = {Walker, Pamela J.},
title= {Pulling the Devil's Kingdom Down: The Salvation Army in Victorian Britain},
location = {Berkeley, CA},
publisher = {University of California Press},
year = {2001},
keywords = {secondary}
}
当我编译它时,它确实打印了参考书目,但只打印了一次,并且包含所有四个来源,就像我没有告诉它对关键字进行排序一样。我怎样才能让它识别出划分?
答案1
您实际上在这里获得了两个书目。如果两个条目实际上由同一个生成,则第二个和第三个条目之间的空间略大。\printbibliography
如果查看排序,您还可以看到这里有两个书目,但在手头的示例中,我们在此处获得的两个书目的排序与只有一个书目时获得的排序相同。
现在\defbibheading{bibliography}[\refname]{}
您已经完全删除了参考书目的标题。如果删除该行,您会清楚地看到您实际上有两个参考书目,每个都有自己的标题。
获取具有一个标题的子书目的标准方法是
\printbibheading[title=\bibname]
\printbibliography[heading=subbibliography, keyword=primary, title={Primary Sources}]
\printbibliography[heading=subbibliography, keyword=secondary, title={Secondary Secondary}]
无需手动打印标题。