![按章节打印参考书目](https://linux22.com/image/421363/%E6%8C%89%E7%AB%A0%E8%8A%82%E6%89%93%E5%8D%B0%E5%8F%82%E8%80%83%E4%B9%A6%E7%9B%AE.png)
如何打印分段的参考书目?我尝试使用这种结构,但它先打印所有参考书目,然后再打印所有章节。
\printbibliography[heading=bibintoc, title={Bibliografia}]
\printbibliography[heading=subbibintoc, type=book, title={Libri}]
\printbibliography[heading=subbibintoc, type=article, title={Articoli}]
\printbibliography[heading=subbibintoc, type=misc, title={Sitografia}]
附加问题
Moewe 的回答非常精彩,但是仍然存在一些问题。
在目录中,该项目"Riferimenti bibliografici"
仍然出现。我该怎么做才能阻止它显示?
我还注意到,虽然有\listofcodes
代码索引,但它没有出现在索引中。为什么?
使用的所有代码
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage[T1]{fontenc}
\usepackage{blindtext}
\usepackage{graphicx,wrapfig}
\usepackage{booktabs}
\usepackage{lmodern}
\usepackage{varioref}
\usepackage{url}
\usepackage{array}
\usepackage{paralist}{\obeyspaces\global\let =\space}
\usepackage{verbatim}
\usepackage{subfig}
\usepackage{tabularx}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{float}
\usepackage{amssymb}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{listings}
\usepackage[pass]{geometry}
\usepackage[figuresright]{rotating}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{amsmath}
\usepackage[babel]{csquotes}
\usepackage{hyperref}
\usepackage[style=authoryear-ibid, useprefix, hyperref, backend=bibtex]{biblatex}
\addbibresource{bibliography.bib}
\begin{document}
\ringraziamenti
\sommario
\tableofcontents
\listoffigures
\listoftables
\listofcodes
\mainmatter
\include{chap_one}
\include{chap_two}
\include{chap_three}
\include{chap_four}
\include{chap_five}
\include{chap_six}
\appendix
\include{app_a}
\phantomsection
\addcontentsline{toc}{chapter}{\refname}
\nocite{*}
\printbibheading[heading=bibintoc, title={Bibliografia}]
\printbibliography[heading=subbibintoc, type=book, title={Libri}]
\printbibliography[heading=subbibintoc, type=article, title={Articoli}]
\printbibliography[heading=subbibintoc, type=misc, title={Sitografia}]
\printbibliography[heading=subbibintoc, type=misc, title={Misc}]
\printbibliography[heading=subbibintoc, nottype=book, nottype=article, nottype=online, title={Did I miss anything?}]
\end{document}
答案1
您几乎已经完成了。如果您只想打印整体标题而不打印参考书目,则需要\printbibheading
而不是\printbibliography
。
\documentclass[italian]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[style=authoryear, backend=biber]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\autocite{sigfridsson,worman,nussbaum,aksin,cicero,itzhaki,itzhaki,baez/online,geer}
\printbibheading[heading=bibintoc, title={Bibliografia}]
\printbibliography[heading=subbibintoc, type=book, title={Libri}]
\printbibliography[heading=subbibintoc, type=article, title={Articoli}]
\printbibliography[heading=subbibintoc, type=online, title={Sitografia}]
\printbibliography[heading=subbibintoc,
nottype=book, nottype=article, nottype=online,
title={Did I miss anything?}]
\end{document}
请注意,我添加了最后一个\printbibliography
带有补充的nottype
s 来检查我们没有遗漏任何条目(在此示例中@thesis
为条目geer
)。您可能不希望在文档的最终版本中出现这一点,但它在写作过程中可能是一个方便的工具。