Biblatex: submitting to a journal
it is also possible, but not so easy as with bibtex
. When you finished your document write into the preamble after the already existing biblatex definition:
\documentclass{...}
...
\usepackage[style=numeric-verb]{biblatex}% change it for your needs
\bibliography{examples}
%-------------- start insert modified commands ------------------
\makeatletter
\def\blx@bblfile@biber{%
\blx@secinit
\begingroup
\blx@bblstart
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%% copy here the contents of the created bbl file
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\blx@bblend
\endgroup
\csnumgdef{blx@labelnumber@\the\c@refsection}{0}}
\makeatother
%-------------- end insert modified commands ------------------
...
\begin{document}
...
\printbibliography
\end{document}
the only difference is that \printbibliography
now takes the contents of the bib not from the external file but from the inserted bbl contents.
If you run bibtex
instead of biber
(btw: biber
is the better choice) then you have to use it in this way:
\usepackage[...,backend=bibtex]{biblatex}
....
\def\blx@bblfile@bibtex{% instead of ...\blx@bblfile@@biber
\blx@secinit
\begingroup
\blx@bblstart
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%% copy here the contents of the created bbl file
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\blx@bblend
\endgroup
\csnumgdef{blx@labelnumber@\the\c@refsection}{0}%
\iftoggle{blx@reencode}{\blx@reencode}{}}
Pay attention that you do not insert the last line of the bbl
file which is the command \endinput
. This one should be deleted or commented with a preceding %
.
For journal submission, I'm afraid my answer would be 'do not use biblatex
'. The bibliography is generated at the LaTeX end by biblatex
, and so it is not possible to 'paste in the formatted result'. Most journals want you to either do this or use their own BibTeX style, so biblatex
is a bad choice. (This is a shame, but unless/until the journals update their workflows that is how it is.)
One point to note in particular is that you cannot be sure of the package or engine availability on journal systems. For example, the American Chemical Society do not have the e-TeX extensions available on their servers (at the time of writing). These were finalised in 1999, so the time lag is significant. biblatex
requires e-TeX, so it would be impossible to use if for a submission to the ACS.
A second area to bear in mind is journal work flows. Depending on the journal, your LaTeX source may be converted into some other format for publishing. To do that, the publisher may use additional data written to the .bbl
file (for example the data repeated in an XML 'comment') or some form of .bbl
parser to convert the bibliography. That will not work with biblatex
unless they have set up their workflow to deal with it.
I have spent some time on submitting through Springer's "Editorial manager", this may work for other submissions too. Although the latex system of the journal must not be too old.
Basically there are three problems that I have run into.
Match .bbl file with biblatex version. Just now "Editorial manager" uses texlive-2015, but my .bbl file is produced with texlive-2016 so "Editorial manager" biblatex version does not match my biber version. Solution: submit the biblatex style files.
Have "Editorial manager" accept the file extensions of the biblatex style files. "Editorial manager" forces most of the biblatex style files to be Supplementary material, and as such it is not available at compilation time. Solution: use the
filecontents
package to generate the biblatex style files from a .sty file."Editorial manager" does not accept the .bbl file anyway. I have noticed that any comments added at the beginning of the file makes biblatex think biber did not produce the file, and refuse to use it. Perhaps Editorial manager adds something, I do not know. Solution: use the
filecontents
package to generate the .bbl file.
To this end, I wrote a Python program to generate the needed .sty file, the below program assumes your .bbl file is named Manuscript.bbl
:
#! /usr/bin/env python
from os import path
# Author: Jan-AAke Larsson <[email protected]>
f=open("biblatex-files.sty","w")
f.write("""% File containing the needed environment for biblatex
%
% Included here to bypass Editorial Manager heavy-handed file classification
%
% The .bbl file needs to be included too, probably Editorial Manager adds
% a LaTeX comment header that makes biblatex think biber did not produce it
% Enable overwriting files
\\RequirePackage{filecontents}
""")
for i in ["Manuscript.bbl",
"/usr/share/texlive/texmf-dist/tex/latex/biblatex/biblatex.sty",
"/usr/share/texlive/texmf-dist/tex/latex/biblatex/blx-dm.def",
"/usr/share/texlive/texmf-dist/tex/latex/biblatex/blx-compat.def",
"/usr/share/texlive/texmf-dist/tex/latex/biblatex/biblatex.def",
"/usr/share/texlive/texmf-dist/tex/latex/biblatex/bbx/numeric.bbx",
"/usr/share/texlive/texmf-dist/tex/latex/biblatex/bbx/standard.bbx",
"/usr/share/texlive/texmf-dist/tex/latex/biblatex/cbx/numeric.cbx",
"/usr/share/texlive/texmf-dist/tex/latex/biblatex/biblatex.cfg",
"/usr/share/texlive/texmf-dist/tex/latex/biblatex/lbx/english.lbx"]:
f.write("\\begin{filecontents*}{"+path.basename(i)+"}\n")
g=open(i)
for j in g.readlines():
f.write(j)
g.close()
f.write("\\end{filecontents*}\n\n\n")
f.close()
This generates biblatex-files.sty
that you can include in your submission instead of the .bbl file. The biblatex style files I found by doing grep latex/biblatex Manuscript.log
, you may need to include other files if you use a different biblatex style than me. Of course, you need put the following in your preamble.
\usepackage{biblatex-files.sty}
In my submission there are now only two manuscript files: Manuscript.tex
and biblatex-files.sty
, and a collection of figures.
A final hint: a recurring problem in all this is that "Editorial manager" only returns the log file if LaTeX fails completely, otherwise an incomplete manuscript PDF. So there is no way to know what went wrong if there are warnings only and an incomplete PDF. If you run into problems and need to know the cause, I recommend putting the following in the preamble, this will include the LaTeX log at the end of your PDF. Do not OK this PDF in the submission system, though. :)
\usepackage{fancyvrb}
\AtEndDocument{\VerbatimInput{Manuscript.log}}