I am using the hyperref
package to highlight URLs, abbreviations, and shorthand in citations for convenience in a document, and I am using biblatex-sbl
to get citations in SBL format. The hyperref
package generally does a great job highlighting things like the shortjournal
or shortseries
fields in citations, but it seems to trip up when it tries to highlight the shorttitle
field of an article
citation: the opening quote of the short article title is highlighted with the rest of the title, but the close quote is not.
For the sake of reproducibility, I've attached some code for a minimal (non-)working example, which consists of a bibliography file and a TeX file.
bibliography.bib
@article{
MWE20,
author = {Joey McCollum},
title = {A Minimal (Non-)Working Example},
shorttitle = {MWE},
journal = {TeX Stack Exchange Quarterly},
year = {2020},
pages = {1--2}
}
mwe.tex
\documentclass[12pt]{article}
%Include support for hyperreferences:
\usepackage{hyperref}
%Include support for citation format:
\usepackage[style=sbl, ibidtracker=false, idemtracker=false, citepages=omit, backend=biber]{biblatex}
%Add the bibliography source file:
\addbibresource{./bibliography.bib}
\begin{document}
This is a minimal (non-)working example.\footnote{\cite{MWE20}.} It is intended to illustrate unexpected behavior in \LaTeX.\footnote{\cite[2]{MWE20}.}
\printbibliography
\end{document}
I typeset this using the TeXLive 2020 release of pdfLaTeX and the corresponding release of XeLaTeX; both engines will reproduce this behavior.
I imagine the issue has something to do with substitutions made by biblatex-sbl
to ensure that a comma following a title in quotes is placed within the quotes (in accordance with American English style), but I can't say for sure. As it is, the current highlighting is a bit ugly. If there was a way to highlight the shortened title more consistently, either by including both the surrounding quotes and the comma or by highlighting only the title itself, without the surrounding quotes and the comma, that would be great. Is there any easy way to fix this, or is it a bug that will have to be fixed in one of the packages involved?
EDIT: As moewe has pointed out in the comments, this has been a known bug in biblatex
for a few years now (https://github.com/plk/biblatex/issues/499), and it affects citation styles other than sbl
(such as verbose-note
).
biblatex
other than SBL, too. Has it really been left unsolved since 2016?\printtext[citetitle]{\printfield[bibhyperlink]{...}}
instead of\printtext[bibhyperlink]{\printfield[citetitle]{...}}
(forverbose-note
as in thebiblatex
bug report). But of course that doesn't resolve the underlying problem. Or did you mean something else?