apacite에 삽입된 $가 누락되었나요?

apacite에 삽입된 $가 누락되었나요?
\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}

그러면 "$ 누락됨" 오류가 발생합니다. 수학 모드는 apacite 또는 citeauthor와 어떤 관련이 있나요?

답변1

문제는 _일반적으로 수학 모드에서만 사용할 수 있는 URL에 있습니다. URL에서 사용하려면 또는 url패키지 를 사용하십시오 hyperref.

\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}

관련 정보