[Tex/LaTex] Getting natbib to use numerical keys when the bibliography will be in a separate file.

bibliographiesnatbib

I am using the natbib package in a collaborative (which means I can't jettison the use of natbib entirely) document. I want to get citations in numeric form in both the text and bibliography, i.e I'd like a reference to Jones et al to appear as [15] in the text and [15] Jones et al ... in the bibliography.

Using the numbers option to natbib gets me the former, but with the plainnat or abbrvnat bibliography style I'm unable to get the latter. In fact I have to use abbrv and deal with some minor warnings. While I can get what I want to work, I'm wondering if I'm just not doing the right thing to get the desired behavior without kludging.

Update: In response to the comment, I tried to create an MWE, and realized that the problem is possibly coming from a different source. This is part of a grant proposal, and so the references need to be separated from the main text. So the original document called a.tex contains

\documentclass{article}
\usepackage[numbers]{natbib}

\begin{document}
\citep{something}

\bibliographystyle{plainnat}
\bibliography{bibfile.bib}
\end{document}

and the file references.tex contained

\documentclass{article}

\begin{document}
\input{a.bbl}   
\end{document} 

If I compile a.tex directly to PDF, the referencing works fine. But if I compile it, and then compile references.tex to PDF, I get an author-year bibliography listing in references.pdf.

I'll reiterate that there are other ways to do this (for example, I use the pdfpages package in my own documents to strip out the references). But for now I'm stuck with this setup, so I'd like to solve the problem with minimal change in workflow.

Best Answer

You need natbib in both documents: the way it works means that the labels are generated by LaTeX and are not part of the .bbl file.

Related Question