I have some bibliography entries whose titles contain underscores, which I am entering as \textunderscore
. These compile fine when using plain BibTeX, or when using Biblatex and BibTeX as the backend, but not when using Biblatex with Biber as the backend:
\documentclass{article}
\usepackage[
%backend=bibtex, % this works
backend=biber, % this doesn't
]{biblatex}
\addbibresource{\jobname.bib}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@inproceedings{pramanick2017jucsenlp,
author = {Aniket Pramanick and Dipankar Das},
title = {{JU}{\textunderscore}{CSE}{\textunderscore}{NLP} at
{SemEval}-2017 {Task} 7: Employing Rules to Detect and
Interpret {English} Puns},
booktitle = {Proceedings of the 11th International Workshop on Semantic
Evaluation (SemEval-2017)},
year = {2017},
}
\end{filecontents}
\begin{document}
\nocite{*}\printbibliography
\end{document}
Result of running pdflatex:
! Missing $ inserted.
<inserted text>
$
l.23 \end
{document}
Am I doing something wrong or is this a bug in Biblatex and/or Biber? I am using TeX Live 2017 with Biblatex 3.7 and Biber 2.7.
\bibunderscore
in the bib or some other name that biber doesn't know and then in the document\let\bibunderscore\textunderscore
.\textunderscore
into_
. And that comes out problematic. You can complain at github.com/plk/biber/issues