15

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!

19

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}
  • 2
    I thought it was sufficient to upload the .bbl and .tex as is after multiple compilations. All that arXiv needs is the .bbl so it doesn't have to run bibtex no? – Dai Bowen Sep 12 '16 at 13:35
  • Yes, but I don't know how to obtain the .bbl from .bib @Dan Brown – Alex Sep 12 '16 at 13:36
  • Ok, what is the directory for tex and where do I find it? @DaiBowen – Alex Sep 12 '16 at 13:39
  • Thank you, found it. I did not see it before because the directory was not showing all file name extensions by default. So I understand that I need to submit two separate files to ArXiV: one file "mypaper.tex" and another file" mypaper.bbl" ? @DaiBowen – Alex Sep 12 '16 at 13:49
  • @Casimir for the arXiv? Yes, upload the .bbl as with the rest of the files to arXiv should in principle work but you will need to use the same version of biblatex/biber locally as is on the arXiv in order to generate a compatible .bbl file which could be problematic, although the arXiv has recently updated to a TeXLive 2016 installation. – Dai Bowen Apr 26 '17 at 13:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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