# Per-chapter bibliographies in biblatex

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}
\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},
edition = {1},
isbn = {0 7506 5080 X}
}

@PHDTHESIS{hashemian,
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.

-
The outut contains the bibtex labels of the .bib file. This looks like you didn't call bibtex to process your cited references. Did you call latex bibtex latex? – Benedikt Bauer Dec 17 '12 at 22:10
Depending on the set up in your file, you may want biber rather than bibtex: we'll need an example to provide more help. – Joseph Wright Dec 17 '12 at 22:20
@JosephWright I think the example is the one he linked in the question... – Vivi Dec 17 '12 at 23:01
Welcome to TeX.sx! Usually, we don't put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Upvoting is the preferred way here to say "thank you" to users who helped you. – Guido Dec 18 '12 at 2:47
I understand... – Andres Sarmiento C Dec 18 '12 at 14:14

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},
edition = {1},
isbn = {0 7506 5080 X}
}

@PHDTHESIS{hashemian,
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}

\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}.
\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.

-
I don't know since which version, but now you use the refsection option of biblatex (i.e. \usepackage[refsection=chapter]{biblatex}) and you would not need to manually put the refsections in each chapter – YuppieNetworking Jul 3 '13 at 14:59
@YuppieNetworking that's good to know, thanks! – cmhughes Jul 3 '13 at 15:16
How can we add global or combined references at the end ? \nocite{*} will add all entries in bibfile. Instead, how to combine the all references in the subbibliographies in one list at the end? – – Anusha Apr 21 '14 at 15:36