BibTeX, biblatex and biberchapterbib ? citations

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
acarlier
Posts: 4
Joined: Tue Feb 04, 2014 7:29 pm

chapterbib ? citations

Post by acarlier »

Hi,

I'm currently working on my PhD text and I want a bibliography at the end of every chapter. I'm doing the latex-bibtex-latex-latex compilation and I do get a bibliography at the end of the chapter (the .bbl file looks ok) but no numbers in the text only ? for the citations. I have already read all the google-comments, I really do not know anymore what I'm doing wrong. I have included my main file as well as the first chapter. Any help is greatly appreciated since I've been working on this problem for more than a day now :-)!
Attachments
introduction.tex
(28.62 KiB) Downloaded 388 times
thesis.tex
(5.88 KiB) Downloaded 381 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

chapterbib ? citations

Post by Johannes_B »

A single section and a header aren't enought to reproduce the cause of problem. Please try to prepare a minimal working example. This is the safest (and smartest) way to find troublemakers.

If you do not depend on Bibtex, i advise you to use the modern package biblatex in conjunction with the processor biber (instead of the very old BibTeX)
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
acarlier
Posts: 4
Joined: Tue Feb 04, 2014 7:29 pm

Re: chapterbib ? citations

Post by acarlier »

Hi Johannes,

Thank you for your quick response. I'm not familiar with biblatex/biber and since it is almost working I prefer fixing this.
The thing is as well that I'm using a template from the doctoral school, maybe there are some incompatibilities there?
I have deleted almost everything out of both files and I still get the warning. Do you have any idea?

best wishes,
Aurélie
Attachments
MWE.zip
(194 KiB) Downloaded 350 times
hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

chapterbib ? citations

Post by hugovdberg »

First of all, this is still not a true MWE since you only commented out instead of deleted the irrelevant lines, this means we still have to skip through a lot of space.
When I compile your provided MWE it only warns me for another bibdata command in test2.aux, but it produces the citation numbers just fine. Have you tried removing the auxiliary files (so everything except your .tex and .bib files) and then recompile from the start? I used this procedure to produce attached pdf:
  • 2x pdflatex test.tex
  • bibtex test2.aux
  • bibtex test.aux
  • 2x pdflatex test.tex
Attachments
test.pdf
(92.51 KiB) Downloaded 393 times
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit
acarlier
Posts: 4
Joined: Tue Feb 04, 2014 7:29 pm

Re: chapterbib ? citations

Post by acarlier »

Hi Hugo,

Thank you so much for your reply. I am getting a step closer! I can indeed generate your pdf using your procedure. Also, if I apply it to my complete PhD it also works. However, in the pdf you get a bibliography in the beginning as well, which I do not want, I just want a bibliography at the end of each chapter. How can I solve this last issue?

thank you!
best wishes,
Aurélie
hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

chapterbib ? citations

Post by hugovdberg »

That first bibliography is the direct result of the \bibliography{literatuur} on line 112 of test.tex, simply omitting that line will remove the bibliography at the very beginning of the document.
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit
acarlier
Posts: 4
Joined: Tue Feb 04, 2014 7:29 pm

Re: chapterbib ? citations

Post by acarlier »

Hi Hugo,

I though that too, but if I do that then I get the question marks again :-S?
I'm also wondering, in other posts it is latex - bibtex on all the included files and then latex latex; now it is twice latex in the beginning and also bibtex on test.aux. Why is it different in my case?

Thank you so much for any input!!!
best wishes,
Aurélie
hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

chapterbib ? citations

Post by hugovdberg »

I have done a little more testing, and the problem seems to originate from the documentclass adsphd, using the code below as main file the references work perfectly. I did take a look at that classfile but I think you best try to get some support for that custom class at your doctorate school, since they created the class.

Another option would be to try biblatex, I noticed the class does provide an option biblatex to automatically include the package. It might take an hour or two to get the basics of biblatex, but I recently decided to adopt it halfway through a project and the conversion wasn't actually that hard. Given the fact you already wasted some time on trying to get this method going it might actually be faster to start using biblatex ;)

Code: Select all

\documentclass{report}
\usepackage{chapterbib}
\usepackage[dutch,english]{babel}
\begin{document}
\include{chapters/test2/test2}
\end{document}
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit
Post Reply