bash-3.2$ diff -u main.tex ~/Links/texmf-local-latex/LaPreprint/main.tex
--- main.tex 2022-10-30 08:39:25.000000000 +0100
+++ /Users/voss/Links/texmf-local-latex/LaPreprint/main.tex 2022-10-30 08:35:49.000000000 +0100
@@ -88,7 +88,8 @@
\input{src/main/results}
\input{src/main/discussion}
\input{src/main/formal}
-\bibliography{src/bibliography}
+
+\printbibliography
% DON'T EDIT. If "endfloat" option is enabled all floats appear before appendices
\if@endfloat\clearpage\processdelayedfloats\clearpage\fi
bash-3.2$ diff -u src/main/introduction.tex ~/Links/texmf-local-latex/LaPreprint/src/main/introduction.tex
--- src/main/introduction.tex 2022-10-30 08:39:25.000000000 +0100
+++ /Users/voss/Links/texmf-local-latex/LaPreprint/src/main/introduction.tex 2022-10-30 08:37:18.000000000 +0100
@@ -1,5 +1,5 @@
\section{Introduction} \label{intro}
-Let's begin with some great papers for those interested in radically improving the scientific infrastructure \citep{Pooley2021, Bezuidenhout2021,Brembs2021}.
+Let's begin with some great papers for those interested in radically improving the scientific infrastructure \parencite{Pooley2021, Bezuidenhout2021,Brembs2021}.
\lipsum[1-2]
\lipsum[3-4]
\sidenote{This is a sidenote made with the \textbackslash sidenote package. \lipsum[1]}
\ No newline at end of file
bash-3.2$ diff -u lapreprint.cls ~/Links/texmf-local-latex/LaPreprint/lapreprint.cls
--- lapreprint.cls 2022-10-30 08:39:25.000000000 +0100
+++ /Users/voss/Links/texmf-local-latex/LaPreprint/lapreprint.cls 2022-10-30 08:34:53.000000000 +0100
@@ -8,7 +8,7 @@
\RequirePackage{calc}
\RequirePackage{etoolbox}
\RequirePackage{regexpatch}
-\RequirePackage{ifxetex,ifluatex}
+\RequirePackage{iftex}
\RequirePackage{marginfix} % Solves the issue of long notes running over the bottom of the page
\newif\ifxetexorluatex
@@ -84,7 +84,7 @@
\RequirePackage{unicode-math}
% v1.7: xits-math font name changed to XITSMath in TL2019
\RequirePackage[default]{opensans}
- \setmonofont[Scale=MatchUppercase]{Latin Modern Mono}
+ \setmonofont[Scale=MatchUppercase,FakeStretch=0.9]{AnonymousPro}
% XITSMath is really STIX. Really.
% https://tex.stackexchange.com/questions/227216/stix-versus-xits
\setmathfont[Extension = .otf,BoldFont = XITSMath-Bold,]{XITSMath-Regular}
@@ -162,42 +162,10 @@
% \captionsetup*[table]{skip=\medskipamount}
-\RequirePackage{natbib}
+\RequirePackage[style=vancouver]{biblatex}
+\addbibresource{src/bibliography.bib}
+
\renewcommand{\bibfont}{\small}
-% modifed from https://github.com/gbhutani/vancouver_authoryear_bibstyle/
-\IfFileExists{vancouver-elife.bst}
- {\bibliographystyle{vancouver-elife}}
- {\PackageWarning{elife}{vancouver-elife.bst not found; falling back to apalike bibliography style.}\bibliographystyle{apalike}}
-
- % Make author in citation italic
-\renewcommand{\NAT@nmfmt}[1]{{\bfseries\itshape\color{eLifeMediumGrey} #1}}
-
-% ...as well as the year
-\xpatchcmd{\NAT@citex}
-{\@citea\NAT@hyper@{\NAT@nmfmt{\NAT@nm}\NAT@date}}
-{\@citea\NAT@hyper@{\NAT@nmfmt{\NAT@nm}\NAT@nmfmt{\NAT@date}}}
-{}{\PackageWarning{eLife}{Failed to patch year format in citation}}
-
-\xpatchcmd{\NAT@citex}
-{\else\unskip\NAT@spacechar\NAT@hyper@{\NAT@date}}
-{\else\unskip\NAT@spacechar\NAT@hyper@{\NAT@nmfmt{\NAT@date}}}
-{}{\PackageWarning{eLife}{Failed to patch year format in citation}}
-
-\xpatchcmd{\NAT@citex}
-{\hyper@natlinkbreak{\NAT@aysep\NAT@spacechar}{\@citeb\@extra@b@citeb}\NAT@date}
-{\hyper@natlinkbreak{\NAT@nmfmt{\NAT@aysep\NAT@spacechar}}{\@citeb\@extra@b@citeb}\NAT@nmfmt{\NAT@date}}
-{}{\PackageWarning{eLife}{Failed to patch year format in citation}}
-
-\xpatchcmd{\NAT@citex}
-{\@citea\NAT@hyper@{\NAT@date}}
-{\@citea\NAT@hyper@{\NAT@nmfmt{\NAT@date}}}
-{}{\PackageWarning{eLife}{Failed to patch year format in citation}}
-
-\xpatchcmd{\NAT@citex}
-{{\@citeb\@extra@b@citeb}\NAT@date}
-{{\@citeb\@extra@b@citeb}\NAT@nmfmt{\NAT@date}}
-{}{\PackageWarning{eLife}{Failed to patch year format in citation}}
-%% There, we're finally done with patching the year in citations.
% headers and footers