TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm experiencing a strange behavior of the \bibliography command (BibTeX). I'm seeing that, after \bibliography is issued, the \textheight is changed, and the references go slightly beyond the end of the text at the bottom of the page.

I have my own document class, and the formatting for the bibliography is done with:

% Bibliography formatting

\bibpunct[, ]{(}{)}{;}{a}{,}{,}

where eage.bst has been created answering to the questions received while running latex makebst.tex.

Into the LaTeX file, at the end of the document, I simply issue


and then I see references at the bottom of the right column (I have a two column article) going slightly beyond the bottom of the left column (and then they continue on the next page).

share|improve this question

closed as too localized by Marco Daniel, Torbjørn T., percusse, lockstep, egreg Apr 9 '12 at 21:23

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Do you actually mean that \textheight is changed? (what happens if you insert \showthe\textheight at various places, do you get different values shown? Or do you just mean that some text overran the bottom of the page (which could be for lots of reasons, not all of which involve \textheight) For example if any entries are being placed in unbreakable boxes this could happen. As usually the case, a full minimal working example would help. – David Carlisle Mar 30 '12 at 14:51
The issues you're experiencing may be related more to the specific two-column page layout of your document class than to the natbib package, the redefined \bibsection macro, or the specific bibliography style file you've created with the makebst utility. (BibTeX definitely does not do any typesetting on its own.) Does your document class by any cnance modify the \thebibliography macro? – Mico Mar 30 '12 at 16:25
You are right. I have tried the same bst but with the standard article document class and the references are perfectly aligned with the column on the left. So the problem should be in my cls file. I have to figure out which is the command that breaks things. – Michele Mar 30 '12 at 20:07

I've found where the problem was. In my .cls file, I was setting the \textheight to a value that was not an integer multiple of \baselineskip. For this reason, the column of text was never completely full (in fact, I was receiving underfull vbox warnings). On the other hand, the bibliography list was able to fill the text area slightly more, and the effect was what I described at the beginning.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.