GeneralSeparate references for each chapter in specific template

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
koleygr
Posts: 21
Joined: Fri Jul 01, 2011 11:18 pm

Separate references for each chapter in specific template

Post by koleygr »

Hi,

I using the template I found here for a thesis:
http://www.latextemplates.com/template/ ... ral-thesis

I am trying to have different references for every chapter without any \cite
command in the text.

Please help me.

I tried with the

Code: Select all

\usepackage[sectionbib]{chapterbib}
command and then I bibtexed the chapter befor and after LaTeX the main document...

But it gives an empty bibliography.

Any help will be appreciated.

Thanks
Last edited by koleygr on Mon Feb 15, 2016 6:44 am, edited 1 time in total.
Using Kile 2.1.0 under Ubuntu software.
\XeLaTeX: XeTeX 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

koleygr
Posts: 21
Joined: Fri Jul 01, 2011 11:18 pm

Re: Seperate references for each chapter in specific templat

Post by koleygr »

I finally added the citations in a \phantom command and it works.

Thanks
Using Kile 2.1.0 under Ubuntu software.
\XeLaTeX: XeTeX 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Re: Seperate references for each chapter in specific templat

Post by Stefan Kottwitz »

Interesting! How did it work, how was the code fix?

Great to see that it works for you now!

Stefan
LaTeX.org admin
koleygr
Posts: 21
Joined: Fri Jul 01, 2011 11:18 pm

Separate references for each chapter in specific template

Post by koleygr »

Hi Stefan,

I have the lines:

Code: Select all

\phantom{\cite{cite1}\cite{cite2}...\cite{cite69}}

\bibliographystyle{plain}
\bibliography{ref-Chapter1}
in the chapter1 file

and the line:

Code: Select all

\usepackage[sectionbib]{chapterbib}
in the main file

I run once the latex or pdflatex command for the main file
so that tha aux file will be created

and then I run the bibtex command for the chapter file.
(Not for the main)

After that I run once or twice the pdflatex command for the main file and I have the separate references correct.
Using Kile 2.1.0 under Ubuntu software.
\XeLaTeX: XeTeX 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Separate references for each chapter in specific templat

Post by Johannes_B »

Package biblatex is capable of doing bibiliographies for each chapter, though actually not citing anything is a problem (from an academic point of view).

Package chapterbib is incompatible with biblatex.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply