This is a follow up question to Biblatex: submitting to a journal and to Biblatex: include bbl, problem with "verb" field.
I am using the biblatex nature style, which uses \verb
a lot, resulting in compilation errors when using this solution. I tried Ulrike's solution, but the code generates no bibliography whatsoever with pdfLaTeX/Biber (TeXLive 2016). It does, beautifully, if references are stored in bib files and included via \addbibresource{}
. A MWE is appended to illustrate this problem.
I am not sure if the "all tex" failure is caused by some of the biblatex options I use; most of them seem necessary to meet the journal's specifications, but maybe not all. I have >700 references so @Herbert's manual formatting fix is impractical.
I'd be grateful for any insight on how to make this work. The journal, unfortunately, won't accept any bibtex or biblatex auxiliary files.
\documentclass[english]{article}
\usepackage{babel}
\usepackage{amsmath,url}
\usepackage{graphicx,fancyhdr,lineno}
\usepackage{filecontents}
\usepackage[style=nature,date=year,backend=biber,natbib=true,doi=false,defernumbers=true]{biblatex}
\AtEveryBibitem{\clearfield{issue}}
\AtEveryBibitem{\clearfield{issn}}
\AtEveryCitekey{\clearfield{issn}}
\AtEveryBibitem{\clearfield{isbn}}
\AtEveryCitekey{\clearfield{isbn}}
\DeclareCiteCommand{\citenum}
{}
{\printfield{labelnumber}}
{}
{}
% define bib resources
\begin{filecontents}{mybib.bbl}
\refsection{0}
\sortlist{entry}{nty}
\entry{A1}{article}{}
\name{author}{1}{}{%
{{hash=6336f16c9082808449bbd32fdb646d7e}{%
family={{\relax PAGES2k Consortium}},
familyi={{\relax PAGES2k Consortium}\bibinitperiod}}}%
}
\list{publisher}{1}{%
{Nature Publishing Group, a division of Macmillan Publishers Limited. All Rights Reserved.}%
}
\strng{namehash}{6336f16c9082808449bbd32fdb646d7e}
\strng{fullhash}{6336f16c9082808449bbd32fdb646d7e}
\strng{authornamehash}{6336f16c9082808449bbd32fdb646d7e}
\strng{authorfullhash}{6336f16c9082808449bbd32fdb646d7e}
\field{sortinit}{5}
\field{sortinithash}{c9df3c9fb8f555dd9201cedc5e343021}
\field{labelnamesource}{author}
\field{labeltitlesource}{title}
\field{isbn}{1752-0894}
\field{journaltitle}{Nature Geoscience}
\field{month}{05}
\field{number}{5}
\field{title}{Continental-scale temperature variability during the past two millennia}
\field{volume}{6}
\field{year}{2013}
\field{pages}{339\bibrangedash 346}
\range{pages}{8}
\verb{doi}
\verb 10.1038/ngeo1797
\endverb
\verb{url}
\verb http://dx.doi.org/10.1038/ngeo1797
\endverb
\endentry
\entry{A2}{online}{}
\name{author}{1}{}{%
{{hash=6190cb5961651414f637857f879c5cb3}{%
family={{\relax PAGES 2k Consortium}},
familyi={{\relax PAGES 2k Consortium}\bibinitperiod}}}%
}
\strng{namehash}{6190cb5961651414f637857f879c5cb3}
\strng{fullhash}{6190cb5961651414f637857f879c5cb3}
\strng{authornamehash}{6190cb5961651414f637857f879c5cb3}
\strng{authorfullhash}{6190cb5961651414f637857f879c5cb3}
\field{sortinit}{6}
\field{sortinithash}{02bbed3ed82f61ae046619460488516d}
\field{labelnamesource}{author}
\field{labeltitlesource}{title}
\field{howpublished}{FigShare}
\field{title}{A really nice data citation}
\field{urlyear}{2017}
\field{urldateera}{ce}
\verb{doi}
\verb 10.6084/123.456mwe
\endverb
\verb{url}
\verb https://figshare.com/s/12345678
\endverb
\endentry
\endsortlist
\endrefsection
\end{filecontents}
%-------------- start insert modified commands ------------------
\makeatletter
\def\blx@bblfile@biber{%
\blx@secinit
\begingroup
\blx@bblstart
\input{mybib.bbl}%<------------
\blx@bblend
\endgroup
\csnumgdef{blx@labelnumber@\the\c@refsection}{0}}
\makeatother
%-------------- end insert modified commands ------------------
\begin{document}
In this paper, we have regular citations \cite{A1} and data citations \cite{A2}. Both are important.
% %%%%%%%%% Citations %%%%%%%%%%%%%%%%%
\printbibliography[title={References},nottype=online,resetnumbers=true]
\printbibliography[title={Data citations},type=online,resetnumbers=true]
\end{document}