Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Trying to get my dissertaion sorted (due in a few hours) and I keep getting this error:

! Missing $ inserted.
<inserted text> 
                $
l.190 ... pp. 225--236, 10.1007/978-0-387-68772-8_
                                                  18. [Online].
? 

Really struggling to sort it out.

I'm fairly new to LaTeX.

Edit: This is 189-204 of the bibtex

@inproceedings{davis,
 author = {Davis, Alan and Dieste, Oscar and Hickey, Ann and Juristo, Natalia and Moreno, Ana M.},
 title = {Effectiveness of Requirements Elicitation Techniques: Empirical Results Derived from a Systematic Review},
 booktitle = {Proceedings of the 14th IEEE International Requirements Engineering Conference},
 series = {RE '06},
 year = {2006},
 isbn = {0-7695-2555-5},
 pages = {176--185},
 numpages = {10},
 url = {http://dx.doi.org/10.1109/RE.2006.17},
 doi = {10.1109/RE.2006.17},
 acmid = {1174006},
 publisher = {IEEE Computer Society},
 address = {Washington, DC, USA},
 keywords = {Systematic review, software engineering, elicitation techniques, empirical studies},
} 

Please help!

share|improve this question
1  
You need to supply more information. What does your code look like around line 190 of the file? Seems like an entry in a bibliography. Edit your question and include that detail (perhaps the entire bibliography?). –  Werner Sep 11 '12 at 23:58
add comment

3 Answers

up vote 17 down vote accepted

The line number in the error message is the line of the .bbl file that is generated by bibtex, it is not the line of the .bib file. Therefore the question quotes the wrong lines. The line in the error message contains:

pp. 225--236, 10.1007/978-0-387-68772-8_18. [Online].

Therefore I think the entry in the .bib file contains

doi = {10.1007/978-0-387-68772-8_18},

It seems the DOI numbers are not well supported. The prefix doi: is missing:

doi:10.1007/978-0-387-68772-8_18

Or as URL:

http://dx.doi.org/10.1007/978-0-387-68772-8_18

Also special characters like _ are not well supported. The _ causes the trouble. Make a minimal example (MWE) that shows, how the doi entries in the .bib file are handled in your document.

If there are no special macros that handle the doi numbers, then you can try \_ instead of _ in the .bib file.

share|improve this answer
    
Cheers for the help guys, bit stressed with the deadline looming. Thanks again. –  Jon Sep 12 '12 at 0:37
add comment

The problem is the underscore _ in a doi. It occurs in line 190 of the LaTeX file (or in the .bbl) not in the .bib file.

Search for 10.1007/978-0-387-68772-8_18 in your .bib file. You can use the url package and enclose the entry in \url{10.1007/978-0-387-68772-8_18} to avoid the error. Alternatively you can use a bibtex style that knows about dois.

share|improve this answer
add comment

What Werner and Gonzalo said would indeed be very helpful. From the limited info given however, I guess Latex struggles with the _ in the line, since it normally sees that as a subscript indicator and only expects it in math mode.

A very short solution (and impossible to say if that works without taking a look at the offending code) is to escape the underscore, by placing a backslash before it.

share|improve this answer
    
Which underscore? –  Jon Sep 12 '12 at 0:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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