将 bibsection 添加到目录(biblatex)

将 bibsection 添加到目录(biblatex)

我成功地使用了 biblatexbiblatex 中的每章参考书目获取按章节划分的多个书目和全局书目。

但我需要将 bisection 添加到目录中

  Contents
  List of figures
  List of tables
  1. Name of the chapter one ..................... 1
     1.1 Introduction ...........................  2
     1.2 Other introduction .....................  3
     References to the chapter one...............  4
  2. Name of the chapter two ..................... 5
     2.1 Introduction ...........................  6
     2.2 Other introduction .....................  7
     References to the chapter two...............  8

  Global references .............................  10

  --------------------------------

  Chapter 1

  Name of the chapter one

  1.1 Introduction
  Bla bla (Someone, 2012)

  1.2 Other introduction (Someone, 2010)
  Bla bla

  References
  Someone, 2012, Title, IEEE.
  Someone, 2010, Title, Elsevier.

答案1

听起来你需要

\printbibliography[heading=subbibintoc]
\printbibliography[heading=bibintoc]

基于您上一个问题中的 MWE,下面是一个完整的 MWE:) 编译顺序如下

pdflatex myfile.tex
biber myfile.bcf
pdflatex myfile.tex
pdflatex myfile.tex

如果愿意,您可以省略文件扩展名。

\begin{filecontents*}{references.bib}
@BOOK{childs_temperature,
  title = {Practical Temperature Measurement},
  publisher = {Butterworth - Heinemann},
  year = {2001},
  author = {Childs, Peter R N},
  address = {Great Britain},
  edition = {1},
  isbn = {0 7506 5080 X}
  }

  @PHDTHESIS{hashemian,
  author = {Hashemian, Hashem Mehrdad},
  title = {Measurements of dynamic temperatures and pressures in nuclear power plants},
  school = {{The University of Western Ontario}},
  year = {2011},
  type = {PhD {T}hesis}
  }
\end{filecontents*}

\documentclass{report}
 \usepackage[style=alphabetic]{biblatex}
 \addbibresource{references.bib}

 \begin{document}

 \tableofcontents
 \begin{refsection}
 \chapter{First chapter}
 \section{Foo}
 Some text \cite{childs_temperature}.
\printbibliography[heading=subbibintoc]
 \end{refsection}

 \begin{refsection}
 \chapter{Second chapter}
 \section{Bar}
 Some text \cite{hashemian}.
 \printbibliography[heading=subbibintoc]
 \end{refsection}

 \nocite{*}
 \printbibliography[heading=bibintoc]
 \end{document}

动画片

相关内容