Bibtex Export Page Reference Bug

Bug: I noticed in my thesis recently that zotero was not exporting certain page references correctly.

Specifically, if the page reference was for instance "53–75", then the symbol "–" is not rendered in LaTeX.

Cause: The character "–" has the unicode value U+2013. It is distinct from "-" which has unicode U+002D. LaTeX and PDFLaTeX do not have out-of-the-box support for high unicode values. So while "53–75" does not render correctly, page references like "53-75" are fine.

Workaround: I put the following code in my preamble, which solved the issue:
\usepackage[utf8]{inputenc}
\DeclareUnicodeCharacter{2013}{--}
  • Cause: The character "–" has the unicode value U+2013. It is distinct from "-" which has unicode U+002D. LaTeX and PDFLaTeX do not have out-of-the-box support for high unicode values. So while "53–75" does not render correctly, page references like "53-75" are fine.
    If you change the export character set from UTF-8 to ISO-8859-1, then "–" will be transliterated to the LaTeX entity "\textendash".

This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.