I am getting the following error:
(build/proposal-tufte-mwe.bbl
Runaway argument?
\BIBentryALTinterwordspacing S.~Koenig and M.~Likhachev, ``Fast repla\ETC.
! Paragraph ended before \BR@c@bibitem was complete.
<to be read again>
\par
l.30
?
Search results indicate this can be caused by % characters in URLs, but that's not the case for me.
Here is a minimal example:
\documentclass{tufte-book}
\usepackage{natbib}
\setcitestyle{square, numbers} % \documentclass{tufte-book}' usesnatbib` too. Avoid option clash
\begin{filecontents}{minimal-references.bib}
@article{koenigFastReplanningNavigation2005,
title = {Fast Replanning for Navigation in Unknown Terrain},
author = {Koenig, S. and Likhachev, M.},
date = {2005-06},
journaltitle = {IEEE Transactions on Robotics},
doi = {10.1109/TRO.2004.838026},
url = {http://ieeexplore.ieee.org/document/1435479/},
}
\end{filecontents}
\begin{document}
\mainmatter
\section{Related Work}
Such is the case in the heuristic incremental search for a navigation algorithm~\cite{koenigFastReplanningNavigation2005}.
% \backmatter
% debug bib
% \show\bibitem
% \show\BR@c@bibitem
\bibliographystyle{IEEEtran}
\bibliography{minimal-references}
\end{document}
When I hit enter to "ignore" the Runaway argument? error, I see the following:
! Package natbib Error: Bibliography not compatible with author-year citations.
which surprises me, given the line \setcitestyle{square, numbers}.
I am not sure if this is helpful, but I did try to debug:
$ latexdef --class tufte-book --find \BR@b@bibitem
\BR@b@bibitem first defined in "/usr/local/texlive/2020/texmf-dist/tex/latex/natbib/bibentry.sty".
\BR@b@bibitem:
macro:->@protected@testopt \BR@b@bibitem \BR@b@bibitem {}
\BR@b@bibitem first defined in "/usr/local/texlive/2020/texmf-dist/tex/latex/natbib/bibentry.sty".
\BR@b@bibitem:
\long macro:[#1]#2->\ifthenelse {\isempty {#1}}{\BR@bibitem {#2}}{\BR@bibitem [#1]{#2}}\BR@c@bibitem {#2}
I am not tied to using natbib, and perhaps I should use the nobib option to disable it in tufte-book.
I would like an explanation for the error, and a recommendation for a working configuration.
