使用 bibLaTeX 将参考书目显示为目录中的编号章节

使用 bibLaTeX 将参考书目显示为目录中的编号章节

我想将我的参考书目显示为一个章节,具体来说,标题应该看起来像一个章节标题,它应该像一个章节一样编号,页码应该是(章节号)-(页码),它应该像一个章节一样显示在目录中。

我尝试过numbib来自的命令tocbibind,也尝试过传递bibliography = numbered文档类,但似乎没有什么区别。

任何建议将不胜感激。

\documentclass[a4paper,11pt,bibliography=numbered,oneside]{book}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}

\usepackage[maxcitenames=2, 
  maxbibnames=99, 
  backend=biber, 
  citestyle=authoryear, 
  bibstyle=authoryear, 
  sorting=nyt, %sort by name title year 
  natbib=true,
  giveninits=true,
  hyperref
  ]{biblatex} % CustomBib

\DeclareNameAlias{sortname}{family-given} % that multiple authors get shorted familty name-given name
\setlength\bibitemsep{1.5\itemsep}
\bibliography{References/references} % Path to your References.bib file
\usepackage[nottoc,numbib]{tocbibind} % to include in table of content heading in the TOC, to have the bibliograph display as a normal section
\usepackage[auto]{chappg} %want to have page numbering per section, example 1-1,1-2,1-3, 2-1 etc.

\begin{document}
\pagenumbering{roman} 
\tableofcontents
\newpage
\pagenumbering{bychapter}
\chapter{First chapter}
\newpage
\chapter{Second chapter}
blabla bla \citep{2000_adams_prob}
\cleardoublepage
\printbibliography[heading=bibintoc, title={References}]
\end{document}

我的 references.bib 文件包含以下条目:

@book{2000_adams_prob,
  title={Urban stormwater management planning with analytical probabilistic models},
  author={Adams, Barry J},
  year={2000},
  publisher={John Wiley and Sons, Inc., New York, NY (US)}
}

在此处输入图片描述

答案1

只需将选项heading从更改bibintocbibnumbered

\printbibliography[heading=bibnumbered, title={References}]

tocbibind顺便说一句,没有必要。

调整你的 MWE:

\documentclass[a4paper,11pt,bibliography=numbered,oneside]{book}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}

\usepackage[maxcitenames=2,
  maxbibnames=99,
  backend=biber,
  citestyle=authoryear,
  bibstyle=authoryear,
  sorting=nyt, %sort by name title year
  natbib=true,
  giveninits=true,
  hyperref
  ]{biblatex} % CustomBib


\begin{filecontents}{\jobname.bib}
@book{2000_adams_prob,
  title={Urban stormwater management planning with analytical probabilistic models},
  author={Adams, Barry J},
  year={2000},
  publisher={John Wiley and Sons, Inc., New York, NY (US)}
}
\end{filecontents}

\DeclareNameAlias{sortname}{family-given} % that multiple authors get shorted familty name-given name
\setlength\bibitemsep{1.5\itemsep}
\addbibresource{\jobname.bib} % Path to your References.bib file
\usepackage[auto]{chappg} %want to have page numbering per section, example 1-1,1-2,1-3, 2-1 etc.

\begin{document}
\pagenumbering{roman}
\tableofcontents
\newpage
\pagenumbering{bychapter}
\chapter{First chapter}
\newpage
\chapter{Second chapter}
blabla bla \citep{2000_adams_prob}
\cleardoublepage
\printbibliography[heading=bibnumbered, title={References}]
\end{document}

在此处输入图片描述

相关内容