[Tex/LaTex] Per-chapter bibliographies in biblatex

biblatexsubdividing

I'm really new in using biblatex, compile the sample placed in Multiple bibliographies and one global bibliography – all with global labels, but what I get is

  1.1 Foo

  Some text [B02x ].

  1.2 Bar

  Some text [B02y ].

Do not get the bibliography by chapters, or the global references.

Really not remains to be done

 \documentclass{report}
 \usepackage[style=alphabetic]{biblatex}
 \addbibresource{references.bib}
 \begin{document}
 \chapter{First chapter}
 \section{Foo}
 Some text \cite{childs_temperature}.
 \printbibliography
 \chapter{Second chapter}
 \section{Bar}
 Some text \cite{hashemian}.
 \printbibliography
 \newpage
 \printbibliography
 \end{document}

And the 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}
  }

I need to obtain references by chapter and global cited references, but i don't know how compile.

Best Answer

It sounds like you want the refsection environment, detailed in Section 3.11.3 of biblatex

\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}
 \begin{refsection}
 \chapter{First chapter}
 \section{Foo}
 Some text \cite{childs_temperature}.
 \printbibliography
 \end{refsection}

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

 \nocite{*}
 \printbibliography
 \end{document}

Just to clarify, the compilation sequence is

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

You don't have to use the file extensions if you'd prefer not to :)

If you'd prefer to use bibtex then use

\usepackage[style=alphabetic,backend=bibtex]{biblatex}

and then run

pdflatex myfile.tex
bibtex myfile1-blx.aux
bibtex myfile2-blx.aux
bibtex myfile.aux
pdflatex myfile.tex
pdflatex myfile.tex

without the extensions if you wish. animation

Related Question