¿Falta $ insertado con apacita?

¿Falta $ insertado con apacita?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[natbibapa]{apacite}

\title{For testing}

\begin{document}

Information about natbib in \citeauthor{sharelatex}.

\bibliographystyle{apacite}
\bibliography{bibli.bib}

\end{document}

Esto genera el error "Falta $ insertado". ¿Qué tiene que ver mathmode con apacite o citeauthor?

Respuesta1

El problema está _en la URL, que normalmente sólo se puede utilizar en modo matemático. Para usarlos en una URL, use urlo el hyperrefpaquete.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[natbibapa]{apacite}

\usepackage{url}


\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@misc{sharelatex, 
    title={ShareLaTeX, the Online LaTeX Editor},
    url={nl.sharelatex.com/learn/Natbib_citation_styles},
    journal={ShareLaTeX, Online LaTeX-verwerker}
} 
\end{filecontents*}


\title{For testing}

\begin{document}

Information about natbib in \citeauthor{sharelatex}.

\bibliographystyle{apacite}
\bibliography{\jobname}

\end{document}

información relacionada