I use Biber for my reference in the following format:
\usepackage[backend=biber,style=authoryear]{biblatex}
...
\addbibresource{REF.bib}
...
\printbibliography
arXiv recommends to Include .bbl files if you use BibTeX, but gives the following error when I try and upload my bbl
file:
Undefined control sequence.
l.21 \sortlist
{entry}{nyt}
I have tried to inline my bbl
file using the following link, excluding the first \@ifundefined{ver@biblatex.sty}
group and the last \endinput
line, but this gives the error: ! Use of \blx@bbl@verbadd@i doesn't match it's definition
.
Using the follow-up question here, I have been able to get it to compile with the following code:
\documentclass[a4paper,10pt]{article}
\usepackage{biblatex}
%\addbibresource{REF.bib} don't need this now that it is inlined
\usepackage{filecontents}
\begin{filecontents}{testinput-bbl.bbl}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%% copy here the contents of the created bbl file
%% (do not include "Missing 'biblatex' package" group -or- final \endinput)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{filecontents}
%-------------- start insert modified commands ------------------
\makeatletter
\def\blx@bblfile@biber{%
\blx@secinit
\begingroup
\blx@bblstart
\input{testinput-bbl.bbl}%<------------
\blx@bblend
\endgroup
\csnumgdef{blx@labelnumber@\the\c@refsection}{0}}
\makeatother
%-------------- end insert modified commands --------------
...
\begin{document}
...
\printbibliography
\end{document}
The problem is that if I upload this to arXiv, it still gives me an error, even though it compiles locally. How do I solve this? I thought about the possibility of incompatible versions of LaTeX, since I'm using distro 2015 and they are using 2011, but I haven't tested this. A detailed description of version incompatibilities can be found here.