4

I'm getting

! Missing $ inserted.<inserted text>$ ...y[prenote=myprenote,title={Bibliography}]

The respective line is

\printbibliography[prenote=myprenote,title={Bibliography}]

Is there something off in that line or must the fault lie with the bibliography itself?

The bib contains underscores in URLs, which according to some search results here may cause problems. But does that also count for bibliographies?

  • 1
    Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – user31729 Sep 7 '14 at 23:45
  • Use \usepackage{url}. Just a guess in the absence of MWE. – user11232 Sep 7 '14 at 23:46
  • url package is used, so I'll create a mwe. Will add it soon. – helm Sep 7 '14 at 23:50
  • For future readers: a solution I found helpful is entering scrollmode ('salvage' mode) by hitting s when LaTeX encounters the error, allowing the pdf to be created, then scanning the bibliography for math mode text (italics in weird spaces). Typically this will be a URL in the wrong field. – Hugh May 1 '16 at 8:44
5

Ok, it was rather simple. The title of a publication contained the $ sign. Found this when trying to create a mwe. Escaping it like this helped:

Title = {Gartner Says Worldwide Enterprise IT Spending to Reach \$2.7 Trillion in 2012},

It's somewhat embarassing that I didn't try figuring it out like that myself. Thanks for the kick in the butt and maybe this question will at least help someone else later.

  • 1
    Self-learning is sometimes the best method ;-) – user31729 Sep 8 '14 at 0:06
  • This is indeed a hell-like problem with bibliography. I never imagined until I saw your post that the problem is in fact there within .bib source. Thanks! – Loves Probability Apr 19 '17 at 10:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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