This is a bit urgent. I'm getting an error on my file (it complies on Overleaf but not on pdflatex), and I cannot figure out how to fix this. I've checked the documentation, and a lot of other stack overflow questions, but I can't figure this out.
Any suggestions?
Full error:
! Package biblatex Error: Patching \addtocontents failed.
See the biblatex package documentation for explanation.
Type H <return> for immediate help.
I don't actually use addtocontents anywhere, and I'm getting this error at \begin(document).
\documentclass{IOS-Book-Article}
\usepackage[utf8]{inputenc}
\makeatletter
\let\c@author\relax
\makeatother
\usepackage{graphicx}
\graphicspath{ {./images/} }
\usepackage{mathptmx}
\usepackage{stmaryrd}
\usepackage{array}
\usepackage{amsmath}
\usepackage{booktabs}
\usepackage{ragged2e}
\usepackage{bbold}
\usepackage{multirow}
\usepackage[compact]{titlesec}
\usepackage[dvipsnames]{xcolor}
\usepackage[backend=biber, style=vancouver, doi=false, isbn=false, url=false]{biblatex}
\addbibresource{references2.bib}
\AtBeginBibliography{\footnotesize}
...
\printbibliography
\end{document}
.tex
file that comes in the.zip
file you point to has its bibliography generated with manualthebibliography
.thebibliography
is completely incompatible withbiblatex
and I find no mention ofbiblatex
anywhere in the documentation. The workflow of some (many/most) publishers is incompatible withbiblatex
. My usual advice is to avoidbiblatex
in submissions to publishers/journals unless they explicitly ask you to use it. (See also tex.stackexchange.com/q/12175/35864.)