3

I'm trying to copy the contents of my .bib file into the .tex file for final submission. Below, I am using the suggestion of Biblatex: submitting to a journal but this does not work. I also tried copying the .bbl file, which has worked when using bibtex, but not with biblatex.

Could someone help?

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{Yemini2021,
author = {Yemini, Eviatar and Lin, Albert and Nejatbakhsh, Amin and Varol, Erdem and Sun, Ruoxi and Mena, Gonzalo E. and Samuel, Aravinthan D.T. and Paninski, Liam and Venkatachalam, Vivek and Hobert, Oliver},
doi = {https://doi.org/10.1016/j.cell.2020.12.012},
journal = {Cell},
pages = {272--288.e11},
title = {{NeuroPAL: A multicolor atlas for whole-brain neuronal identification in C. elegans}},
volume = {184},
year = {2021},
addendum = {\\{\color{black}*An experimental approach based on multicolor labeling that enables the matching of cellular identity between structural and functional connectomes.}}
}
\end{filecontents*}

\documentclass{article}

%% encoding \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{csquotes} \usepackage{authblk} \usepackage[raggedright]{titlesec}

%% Figures and graphics \usepackage{graphicx} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage{float} \usepackage[a4paper,margin=1.1in,footskip=0.25in]{geometry}

%% OTHER PACKAGES \usepackage{url} \usepackage[hyperindex,colorlinks,hyperfootnotes = false,linkcolor=blue,urlcolor=black,citecolor=blue]{hyperref} \usepackage{makecell}

%% Math \usepackage{bm} \usepackage{amssymb} \usepackage{amsmath}

%bibliography \usepackage[doi=false,maxbibnames=10,maxcitenames=2,mincitenames=1,articlein=false,giveninits,sorting=none,style=ext-numeric,useprefix]{biblatex} \addbibresource{\jobname.bib} \usepackage{xpatch}% load the xpatch package \xpatchbibdriver{online}% patch the online driver: {\printfield{entrysubtype}}% replace this line {\printfield{entrysubtype}% with these lines \newunit\newblock \printfield{addendum}} {} {}

\defbibenvironment{thebibliography} {\textbackslash begin{thebibliography}{99} \renewcommand*{\mkbibemph}[1]{\textbackslash textit{##1}} \list{}{}} {\endlist \textbackslash end{thebibliography}} {\item\textbackslash bibitem{\printfield{entrykey}}\}

\usepackage[default]{sourcesanspro}

\newbibmacro{string+doiurl}[1]{% \iffieldundef{doi} {\iffieldundef{url} {#1} {\href{\thefield{url}}{#1}}} {\href{\thefield{doi}}{#1}}}

\makeatletter \def\blx@driver#1{% \ifcsdef{blx@bbx@#1} {\usebibmacro{string+doiurl}{\csuse{blx@bbx@#1}}} } \makeatother

\DefineBibliographyStrings{english}{ byeditor = {edited by}, editor = {ed}, editors = {eds}, }

\renewcommand{\bibinitdelim}{} \renewcommand{\bibinitperiod}{} \renewcommand{\bibpagespunct}{\addcolon} \renewcommand{\intitlepunct}{\addspace} \renewcommand{\jourvoldelim}{\addcomma\space} \renewcommand{\pubdatedelim}{\addsemicolon\space} \renewcommand{\revsdnamepunct}{\addspace} \renewcommand{\volnumdelim}{\addcolon}

\DeclareDelimFormat[bib,biblist]{editortypedelim}{\addspace} \DeclareDelimFormat[bib,biblist]{nametitledelim}{\addcolon\space}

\DeclareFieldFormat{editortype}{\bibsentence\mkbibparens{#1}} \DeclareFieldFormat{issuedate}{#1} \DeclareFieldFormat{pages}{#1} \DeclareFieldFormat{titlecase}{% \ifboolexpr{ test {\ifentrytype{article}} or test {\ifentrytype{incollection}} } {\MakeSentenceCase*{#1}} {#1}} \DeclareFieldFormat{titlecase:booktitle}{#1} \DeclareFieldFormat{titlecase:journaltitle}{#1} \DeclareFieldFormat[article,incollection]{title}{\mkbibbold{#1}} \DeclareFieldFormat[article]{volume}{\mkbibbold{#1}}

%\DeclareNameAlias{default}{family-given}

% reorder date in article \renewbibmacro{journal+issuetitle}{% \usebibmacro{journal}% \setunit{\addspace}% \usebibmacro{issue+date}% \setunit{\jourvoldelim}% \iffieldundef{series} {} {\setunit{\jourserdelim}% \printfield{series}% \setunit{\servoldelim}}% \usebibmacro{volume+number+eid}% \setunit{\addcolon\space}% \usebibmacro{issue}% \newunit}

% lowercase prefix \renewbibmacro*{begentry}{\midsentence}

\DeclareFieldFormat{labelnumberwidth}{#1\adddot}

%highlights \usepackage{xcolor}

\makeatletter \newcommand{\printfnsymbol}[1]{ \textsuperscript{@fnsymbol{#1}} } \makeatother

\usepackage{lineno} \linenumbers

\begin{document}

\defbibnote{myprenote}{Papers of special interest\ \relax *Papers of outstanding interest} \printbibliography[env=thebibliography] \printbibliography

\end{document}

  • 1
    what you can do depends a lot on how the journal will process your file, e.g. if they will allow the use of biblatex, and if yes which version they use. – Ulrike Fischer Feb 04 '22 at 09:58
  • 1
    I don't have this information, but I can try to obtain it. I'm using biblatex because that was the only way I could meet the formatting requirements. – Adam Gosztolai Feb 04 '22 at 10:02
  • 2
    Just in addition to Ulrikes comment. A .bbl produced by bibtex is basically the final formatted form of the bibliography, and is sowhat selfcontained. Therefore you can easily include it into the .tex file for a journal submission. If on the other hand, you look at the code in a .bbl produced via biber for biblatex you can see that these are "data structures" and the formatting of these depends on the biblatex version and thus this can cause issues. This is one of the large problems people have with arXiv vs biblatex – daleif Feb 04 '22 at 10:03
  • 2
    @AdamGosztolai if the journal accepts LaTeX submissions and have a specific requirement regarding formatting the bibliography then they should provide a bibtex style that fulfils that requirement. – daleif Feb 04 '22 at 10:04

0 Answers0