Bibliography in each chapter

Good evening.

I'm writing my thesis and I want to put a bibliography in each chapter. for that, I use the package \usepackage{chapterbib} and at the end of each chapter I define the concerned bibliography.

But when I compile, I get the first bibliography repeated at the end of each chapters knowing that I give each bibliograhy a specific name.

Please can you help me. Thank you

• you mind sharing your code with us? – naphaneal Dec 4 '16 at 21:51
• If you're using chapterbib, you're not actually using biblatex are you (as the tag suggests)? – Torbjørn T. Dec 4 '16 at 21:53
• no i'm using chapterbib @Torbjørn T – A H Dec 4 '16 at 21:59
• But are you using biblatex? Or the old BiBTeX? – Peter Flynn Dec 4 '16 at 22:09
• I'm using Bibtex @PeterFlynn – A H Dec 4 '16 at 22:14

I'd use package bibunits if you have to use old BiBTeX, eg (call this test.tex)

\documentclass{report}
\usepackage[sectionbib]{bibunits}
\usepackage{url}
\begin{document}
\title{My Thesis}
\author{A N Other}
\maketitle
\begin{bibunit}[ieeetr]
\chapter{Intro}
Text \cite{flynn2009}
\putbib[test]
\end{bibunit}
\begin{bibunit}[vancouver]
\chapter{Research}
Text \cite{flynn2013}
\putbib[test]
\end{bibunit}
\begin{bibunit}[acm]
\chapter{Conclusion}
Text \cite{flynn2016}
\putbib[test]
\end{bibunit}
\end{document}


Run with something that automates the process such as latexmk, using this as your test.bib, eg latexmk -gg -pdf -bibtex test

@inproceedings{flynn2009,
author     = {Peter Flynn},
title      = {{Why writers don't use \textsc{xml}:
The usability of editing software for structured documents}},
series     = {{Balisage---The Markup Conference (11--14 August)}},
year   = {2009},
publisher      = {Balisage Series on Markup Technologies},
volume     = {3},
url    = {http://www.balisage.net/Proceedings/vol3/html/Flynn01/BalisageVol3-Flynn01.html}
}

@inproceedings{flynn2013,
author     = {Peter Flynn},
title      = {{Markup to generate markup to generate markup}},
subtitle   = {Using \textsc{xml} to create and maintain
\LaTeX{} packages and classes},
series     = {{Balisage---The Markup Conference (6--9 August 2013)}},
year   = {2013},
publisher      = {Balisage Series on Markup Technologies},
volume     = {10},
url    = {http://www.balisage.net/Proceedings/vol10/html/Flynn01/BalisageVol10-Flynn01.html}
}

@book{flynn2016,
author     = {Peter Flynn},
title      = {{Formatting Information}},
publisher      = {Silmaril},