Bug: importing underscores in BibTex files

When importing a BibTex file (whether via clipboard or via the file directly) which contains an underscore character, Zotero appears to interpret this as a subscript modifier.

As a result, if I have a URL or DOI containing an underscore then Zotero corrupts this by replacing _X for a subscript character.

I'm using Zotero on Ubuntu (I haven't tested this on Windows).
  • A bare underscore outside math mode is invalid LaTeX, but the fallback behavior for rendering _hello seems to be to subscript the h as if it were in math mode (just tested on overleaf).
  • For URLs in an url field the rules are different, and bare underscores are allowed. Can you post a full sample of what you are trying to import?
  • I've given an example below. If I import this .bib file into Zotero then the _7 becomes a subscript.

    @Inbook{Laskar2013,
    author="Laskar, Jacques",
    editor="Duplantier, Bertrand
    and Nonnenmacher, St{\'e}phane
    and Rivasseau, Vincent",
    title="Is the Solar System Stable?",
    bookTitle="Chaos: Poincar{\'e} Seminar 2010",
    year="2013",
    publisher="Springer Basel",
    address="Basel",
    pages="239--270",
    isbn="978-3-0348-0697-8",
    doi="10.1007/978-3-0348-0697-8_7",
    url="https://doi.org/10.1007/978-3-0348-0697-8_7"
    }
  • Ah, gotcha. If you report this on the BBT github I'll get you a fix.
  • edited March 9, 2022
    @jean-jacq: This is specific to BBT? I'm not seeing this with the built-in BibTeX import. (BBT-specific issues should always be posted to the BBT GitHub.)
Sign In or Register to comment.