# Missing $inserted<inserted text>$. natbib

I have problem with my bibliography. I try to figure out what was happening for tree days.. but I have no idea (I am new in latex) and I am using overleaft. please help me

Now I have this error:

./0-complete.bbl:11:

Missing $inserted. <inserted text>$
l.11 ...1786321_Intercalators_as_Anticancer_Drugs}


this is my code

\documentclass[12pt, a4paper, oneside, onecolumn, openany]{book}

\setlength{\parskip}{\medskipamount} \setlength{\parindent}{0em}

\usepackage{ae}

\usepackage{aecompl}

\usepackage{amssymb}

\usepackage{mathptmx}

\usepackage{amsbsy}

\usepackage{setspace}

\setstretch{1.5}

\onehalfspacing

\doublespacing

\usepackage{hyperref}

\usepackage{amsmath}

\usepackage{mathtools}

\usepackage{textgreek}

\usepackage{graphicx}

\usepackage{subfigure}

\usepackage{textcomp}

\usepackage{caption}

\captionsetup{justification=justified}

\usepackage{color}

\usepackage{nomencl}

\makenomenclature

\usepackage{xspace}

\usepackage{tabularx}

\usepackage{booktabs}

\usepackage{fancyvrb}

\usepackage{longtable}

\usepackage{natbib}

\usepackage{xcolor}

\usepackage{colortbl}

\definecolor{bgGreen}{HTML}{F0FFF0}

\definecolor{fntGreen}{HTML}{008000}

\definecolor{bgRed}{HTML}{FFFFCC}

\definecolor{fntRed}{HTML}{FF0000}

\definecolor{fntDots}{HTML}{C0C0C0}

\graphicspath{{graphics/}{.}}

\usepackage{a4wide}

\usepackage[a4paper, top=3cm, bottom=2cm, left=2cm, right=3cm]{geometry}

\usepackage[printonlyused]{acronym}

\usepackage{makeidx}

\makeindex

\hypersetup{

unicode=true,          % non-Latin characters in Acrobat’s bookmarks

pdftoolbar=true,        % show Acrobat’s toolbar

pdffitwindow=true,      % page fit to window when opened

pdftitle={XXX},    % title

pdfauthor={XXX},     % author

pdfsubject={XXX},   % subject of the document

pdfnewwindow=true,      % links in new window

pdfkeywords={keywords}, % list of keywords

citecolor=black,        % color of links to bibliography

filecolor=green,      % color of file links

urlcolor=blue,

\begin{document}

\pagenumbering{Alph}

\begin{titlepage}

\end{titlepage}

\frontmatter

\include{commands}

\acresetall % Reset acronyms - they'll be displayed in full again

\include{Acknowledgements}

\include{Declaration}

\include{Abstract}

\begin{singlespace}

\setcounter{tocdepth}{3}

\setcounter{secnumdepth}{3}

\tableofcontents

\begin{sloppypar}

\listoffigures

\end{sloppypar}

\listoftables

\include{acronyms}

\printnomenclature

\end{singlespace}

\mainmatter

\pagenumbering{arabic}

\acresetall % Reset acronyms - they'll be displayed in full again

\include{1-introduction}

\include{2-Aims}

\include{3-Materials_and_Methods}

\include{4-structure protein}

\backmatter

\bibliographystyle{agsm}

%\begin{singlespace}

\pagestyle{plain}

\bibliography{Zotero}

%\bibliography{bibFile}

%http://merkel.zoneo.net/Latex/natbib.php

%\end{singlespace}

\end{document}


I don't have bbl file, but I have different files as Zotero.bib, agsm.bst , alpha.bst, gla-thesis.sty, newPlain.bst, plain.bst, texcount.pl, url.sty.

what can I do?

• the line identified in the error report is a url, which contains underscore characters. if these strings are properly identified with \url{...} this situation should be taken care of. but since you are getting the error message, it's apparent that they are not properly identified. try to identify the particular url that is reported; see how it is identified in the .bib file, and make the necessary correction there (and to similar entries). i'm not a biblatex user, so i can't say exactly what identifier should be used, but this is almost certainly the problem. Aug 19 '16 at 19:45
• @barbarabeeton Neither is the OP. They've just mis-tagged the question.
– cfr
Aug 20 '16 at 0:04
• If your bibliography style supports it, you may have an url field supported. Otherwise, you'll need to mark up the url manually. You should note that you are using many obsolete packages and that you are loading packages in the wrong order and issuing conflicting and entirely incompatible configuration commands in your preamble. Extensive pruning is recommended: it is worth your while as your life will be much easier and you will prevent problems and make diagnosis of any which nonetheless occur much easier.
– cfr
Aug 20 '16 at 0:08

You can't have a_b anywhere in your TeX document, including when TeX tries to compile the bibliography, except in math mode (i.e. $a_b$ is OK).
You have two basic choices: 1) as suggested above, wrap the offending bibtex entry \url{a_b} if it is indeed a url. 2) If not, you can simply escape the underscore in the bibtex entry a\_b.