BibTeX, biblatex and biber[SOLVED] Missing headers only after compilation

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
daviddoji
Posts: 13
Joined: Wed Sep 19, 2012 12:18 pm

[SOLVED] Missing headers only after compilation

Post by daviddoji »

Hi guys!
I'm getting a weird problem with my main.tex document. I'm compiling my PhD manuscript which is divided into chapters to handle them better.
When I compile for the first time my main.tex with pdflatex, it throws some warnings because of the bibliography and \hbox. But everything is displayed as it should be, I mean, headers and footers are present in all the document. The only thing missing is the bibliography. So far so good.

After that, I compile individually each chapter with BibTeX and then I compile two times with pdflatex the main.tex file and here the problem starts. The headers of all chapters are missing except in the first one!


I'm using Kile as a TeX editor, although I tried TeXmaker as well. I don't know how to get rid of this inconvenient!

Can I upload my main.tex file and you have a look on it?

It was my redefinition of bibliography environment which causes this mess!
Last edited by daviddoji on Mon Feb 16, 2015 10:08 pm, edited 2 times in total.

Recommended reading 2024:

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

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

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

[SOLVED] Missing headers only after compilation

Post by Johannes_B »

Hi, uploading your main.tex isn't going to help anybody. Try to prepare a minimal working example that boils down the cause to the bare minimum.


Why are you processing every single chapter? What is going on there? How do you process your bibliography? All this can be answered by just a few lines of code.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
daviddoji
Posts: 13
Joined: Wed Sep 19, 2012 12:18 pm

[SOLVED] Missing headers only after compilation

Post by daviddoji »

Thanks for the fast reply Johannes_B.

Apparently the problem is with the bibliography. As I said, I've divided my manuscript in chapters. At the end of each chapter I call:

Code: Select all

\bibliographystyle{unsrtnat}
\bibliography{biblio}
in order to print it. If I comment this two lines, everything works fine and I get the headers in all chapters, but not the bibliographic references.

In the preamble of my main.tex I load these:

Code: Select all

\usepackage[square, comma, sort&compress, numbers]{natbib}
\usepackage[sectionbib]{chapterbib}
What's wrong with this approach?
Last edited by Stefan Kottwitz on Mon Feb 23, 2015 4:21 pm, edited 1 time in total.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

[SOLVED] Missing headers only after compilation

Post by Johannes_B »

I don't know whats wrong, there is no code to test.

Do you have to use the old natbib/bibtex combo? I suggest to use the modern combo of biblatex and biber. I was giving an example about this a while back.
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