Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

\bibliographystyle{alpha}
\bibliography{../biba,../bibb,../bibc}

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
2  
\AtEndDocument{\bibliography{<whatever>}}? –  egreg Jul 14 at 10:32
    
Indeed, that did the job, can you post this as an answer, I will accept it... –  CommuSoft Jul 14 at 10:45

1 Answer 1

up vote 5 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

\AtEndDocument{\bibliography{<whatever>}}

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

share|improve this answer

Your Answer

 
discard

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.