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

For several papers, the same bibliography files are used and always written at the bottom of the paper:


I'm wondering if there is a way to hide these commands form the user and simply use a .cls file that import the bibliographies with the correct style. This is useful if for instance the number of files can increase and items are moved from one file to another one.

share|improve this question
\AtEndDocument{\bibliography{<whatever>}}? – egreg Jul 14 '14 at 10:32
Indeed, that did the job, can you post this as an answer, I will accept it... – Willem Van Onsem Jul 14 '14 at 10:45
up vote 6 down vote accepted

I'm not sure if this is a good way to do it, but surely you know better about your environment.

The trick is


but you should be aware that pending floats could be printed after the bibliography.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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