I encounter the "Missing \endcsname inserted" error when I have both biblatex and underscore packages. I need both for my text.
\documentclass{article}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage[strings]{underscore}
\usepackage[style=authoryear-icomp,
backend=biber,
giveninits=false,
uniquelist = false,
uniquename=init,
isbn=false,
maxcitenames=3,
dashed=false,
maxbibnames=999,
doi=false,
url=false,
eprint=false,
date=year,
]{biblatex}
\renewbibmacro{in:}{}
\addbibresource{reference.bib}
\begin{document}
\textcite{hilt_when_2022}
\printbibliography
\end{document}
The citation is
@article{hilt_when_2022,
title = {When Uncle Sam introduced Main Street to Wall Street: Liberty Bonds and the transformation of American finance},
volume = {145},
issn = {0304-405X},
url = {https://www.sciencedirect.com/science/article/pii/S0304405X21003135},
doi = {10.1016/j.jfineco.2021.06.043},
shorttitle = {When Uncle Sam introduced Main Street to Wall Street},
pages = {194--216},
number = {1},
journaltitle = {Journal of Financial Economics},
shortjournal = {Journal of Financial Economics},
author = {Hilt, Eric and Jaremski, Matthew and Rahn, Wendy},
urldate = {2022-05-30},
date = {2022-07-01},
langid = {english}
}
I couldn't figure out a way to get around it.
underscore
you must avoid underscores in\cite
and\ref
commands. Since the package dates from 2006, and is unaware ofbiblatex
thestrings
. Although there is a mechanism to make it aware of new commands, it doesn't seem to work forbiblatex
commands.