This question already has an answer here:

I'm using Overleaf. The following example appears to compile correctly:


% Encoding: UTF-8
  author    = {R. J. Creasy},
  title     = {The Origin of the {VM}/370~{T}ime-Sharing System},
  year      = {1981},
  volume    = {25},
  number    = {5},
  pages     = {483--490},
  issn      = {0018-8646},
  doi       = {10.1147/rd.255.0483},
  url       = {http://dx.doi.org/10.1147/rd.255.0483},
  journal   = {{IBM} Journal of Research and Development},
  publisher = {{IBM}},
  type      = {Journal Article},


A reference \autocite{Creasy1981}

However, when the commented-out listings package is added back in, it complains at the \printbibliography line, asserting that /370z (I'm guessing in the title field of the bib entry - not sure where the z comes from though?) is some sort of control sequence.

./main.tex:11: Undefined control sequence.
<recently read> /370z

l.11 \end

I've removed the tilde, and there is now no problem, but I'm guessing the pre-filled DOI data had a non-breaking space there for a reason, so I'd rather it isn't removed. Why doesn't listings play nicely with this bib entry?

marked as duplicate by Joseph Wright Oct 25 '16 at 14:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    I've marked as a dupe here as the issue is really a bug in listings that manifests itself here: I hope this makes sense. – Joseph Wright Oct 25 '16 at 14:59
  • @JosephWright Thank you! I guess the biblatex red herring threw off the duplicate search when I was asking the question. Sorry about that! – studro Oct 25 '16 at 21:12

listings doesn't clash directly with biblatex. But it changes (somewhere) the \lccode of the tilde and so lowercase breaks:





Actually there is a duplicate: Textcase, Listings, and Tilde The answer of Joseph also identifies the place where the lccode is set.

  • So a dupe of the older question? – Joseph Wright Oct 25 '16 at 14:56
  • @JosephWright: Looks so. Did the maintainer answered to your message? – Ulrike Fischer Oct 25 '16 at 14:58

Not the answer you're looking for? Browse other questions tagged or ask your own question.