
\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}
Isso dá o erro "Faltando $ inserido". O que o modo matemático tem a ver com apacite ou citeauthor?
Responder1
O problema está _
na url, que normalmente só pode ser usada no modo matemático. Para usá-los em uma URL, use o url
ou o hyperref
pacote.
\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}