[Tex/LaTex] How to obtain and use the .bbl file in the tex document for ArXiv submission

arxivbblbibliographiespdftex

I am submitting my first article to ArXiv and in the instructions they specify I have to include the .bbl file. Their instructions are:

"We do not run BibTeX in the auto-TeXing procedure. If you use it, include in your submission the .bbl file that BibTeX produces on your own machine; otherwise your references will not come out correctly. We do not run BibTeX because the .bib database files can be quite large, and the only thing necessary to resolve the references for a given paper is the .bbl file. The name of the .bbl file must match the name of the main .tex file for the system to process the references correctly."

My knowledge of LaTeX is basic, and I have not heard of .bbl file before. I am using TeXmaker. I have my tex file and my bib file. So what do I exactly do to obtain the .bbf file correctly and submit the article?

Thanks a lot!

Best Answer

Start with an new directory. Copy your file mwe.tex and mwe.bib inside it.

File mwe.bib:

@Book{Goossens,
  author    = {Goossens, Michel and Mittelbach, Frank and 
               Samarin, Alexander},
  title     = {The LaTeX Companion},
  edition   = {1},
  publisher = {Addison-Wesley},
  location  = {Reading, Mass.},
  year      = {1994},
}
@Book{adams,
  title     = {The Restaurant at the End of the Universe},
  author    = {Douglas Adams},
  series    = {The Hitchhiker's Guide to the Galaxy},
  publisher = {Pan Macmillan},
  year      = {1980},
}

File mwe.tex:

\documentclass[10pt,a4paper]{article}

\usepackage{hyperref} % for better urls


\begin{document}

This is text with \cite{Goossens} and \cite{adams}.

\nocite{*} % to test all bib entrys
\bibliographystyle{unsrt}
\bibliography{mwe} % file mwe.bib

\end{document}

The trick is to run first pdflatex mwe.tex, suppose your tex code is mwe.tex. Then you will see more files in the directory, important is the new file mwe.auc, containing several informations, for example the used (cited) bib entrys.

Now run (second) bibtex mwe. Check the directory again. BiBTeX builds a new file, mwe.bbl and mwe.blg. In mwe.blg is the log file for the bibtex run, in mwe.bbl is that file you need for submitting.

Resulting file mwe.bbl:

\begin{thebibliography}{1}

\bibitem{Goossens}
Michel Goossens, Frank Mittelbach, and Alexander Samarin.
\newblock {\em The LaTeX Companion}.
\newblock Addison-Wesley, 1 edition, 1994.

\bibitem{adams}
Douglas Adams.
\newblock {\em The Restaurant at the End of the Universe}.
\newblock The Hitchhiker's Guide to the Galaxy. Pan Macmillan, 1980.

\end{thebibliography}

Now run (third) pdflatex mwe.tex twice to get a correct page numbering and ...

Now copy your file mwe.tex to mwe-arxiv.tex and delete the usage of bibtex to create the bibliography.

Insert instead the content of the mwe.bbl file.

New file mwe-arxiv.tex with included mwe.bbl:

\documentclass[10pt,a4paper]{article}

\usepackage{hyperref} % for better urls


\begin{document}

This is text with \cite{Goossens} and \cite{adams}.

\nocite{*} % to test all bib entrys
%\bibliographystyle{unsrt} % <======================== not longer needed!
%\bibliography{\jobname} % <========================== not longer needed!
\begin{thebibliography}{1} % <================================== mwe.bbl

\bibitem{Goossens}
Michel Goossens, Frank Mittelbach, and Alexander Samarin.
\newblock {\em The LaTeX Companion}.
\newblock Addison-Wesley, 1 edition, 1994.

\bibitem{adams}
Douglas Adams.
\newblock {\em The Restaurant at the End of the Universe}.
\newblock The Hitchhiker's Guide to the Galaxy. Pan Macmillan, 1980.

\end{thebibliography} % <======================================= mwe.bbl

\end{document}

Now you have only to submit this new file mwe-arxiv.tex ...

Or just use \input{mwe.bbl} (but please see I do not know if that is allowed by arxiv) but now see you have to submit two files (mwe-arxiv.tex and mwe.bbl).

New file mwe-arxiv-input.tex with \inputed mwe.bbl:

\documentclass[10pt,a4paper]{article}

\usepackage{hyperref} % for better urls


\begin{document}

This is text with \cite{Goossens} and \cite{adams}.

\nocite{*} % to test all bib entrys
%\bibliographystyle{unsrt} % <======================== not longer needed!
%\bibliography{\jobname} % <========================== not longer needed!
\input{mwe.bbl} % <============================================= mwe.bbl

\end{document}
Related Question