按章节打印参考书目

按章节打印参考书目

如何打印分段的参考书目?我尝试使用这种结构,但它先打印所有参考书目,然后再打印所有章节。

\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带有补充的nottypes 来检查我们没有遗漏任何条目(在此示例中@thesis为条目geer)。您可能不希望在文档的最终版本中出现这一点,但它在写作过程中可能是一个方便的工具。

相关内容