下面是我的错误的一个最小可行示例。*.tex
首先是文件:
\documentclass[letterpaper,man,apacite]{apa6}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage[hyphens]{url}
\usepackage{hyperref}
\hypersetup{breaklinks=true}
\title{Minimal example of my error}
\shorttitle{Minimal}
\author{Rick O. Gilmore}
\affiliation{{The Pennsylvania State University}}
\abstract{This is pretty abstract.}
\authornote{Rick O. Gilmore is still learning how to use LaTeX.}
\begin{document}
\maketitle
\section{Introduction}
This is the introduction to a very short paper. I'd like to cite this book \cite{borgman_big_2015} and this article \cite{boyd_critical_2012}.
\section{Conclusion}
The bibliography prints properly, but the in-text citations do not.
\bibliography{test}
\end{document}
及相关*.bib
文件:
@book{borgman_big_2015,
title = {Big {Data}, {Little} {Data}, {No} {Data}},
isbn = {9780262028561},
url = {https://mitpress.mit.edu/big-data},
publisher = {MIT Press},
author = {Borgman, Christine},
year = {2015}
}
@article{boyd_critical_2012,
title = {Critical {Questions} for {Big} {Data}},
volume = {15},
issn = {1369-118X},
url = {http://dx.doi.org/10.1080/1369118X.2012.678878},
number = {5},
urldate = {2015-07-27},
journal = {Information, Communication \& Society},
author = {boyd, danah and Crawford, Kate},
month = {June},
year = {2012},
pages = {662--679},
}
我收到一系列与\cite{}
命令相关的错误:
! Undefined control sequence.
\hyper@@link ->\let \Hy@reserved@a
\relax \@ifnextchar [{\hyper@link@ }{\hyp...
l.16 ...to cite this paper \cite{borgman_big_2015}
and this one, too \cite{b...
?
! Argument of \@@cite has an extra }.
<inserted text>
\par
l.16 ...to cite this paper \cite{borgman_big_2015}
and this one, too \cite{b...
?
Runaway argument?
>{\hyper@link@ }\def \reserved@b {\hyper@link@ [link]}\futurelet \@let@token \E
TC.
! Paragraph ended before \@@cite was complete.
<to be read again>
\par
l.16 ...to cite this paper \cite{borgman_big_2015}
and this one, too \cite{b...
?
! Undefined control sequence.
\hyper@@link ->\let \Hy@reserved@a
\relax \@ifnextchar [{\hyper@link@ }{\hyp...
l.16 ...to cite this paper \cite{borgman_big_2015}
and this one, too \cite{b...
?
! Argument of \@@cite has an extra }.
<inserted text>
\par
l.16 ...to cite this paper \cite{borgman_big_2015}
and this one, too \cite{b...
?
Runaway argument?
>{\hyper@link@ }\def \reserved@b {\hyper@link@ [link]}\futurelet \@let@token \E
TC.
! Paragraph ended before \@@cite was complete.
<to be read again>
\par
l.16 ...to cite this paper \cite{borgman_big_2015}
and this one, too \cite{b...
?
提前感谢您帮助我理清我所确信的一个简单错误。
答案1
我遇到了类似的问题,对我来说,这个问题已经解决了
\usepackage{hyperref}
前
\usepackage{apacite}
我不确定这对你在问题中发布的示例是否有效,因为我没有看到任何内容\usepackage{apacite}
(但我确实在顶部看到了 apacite \documentclass
)。即使它对你不起作用,它仍然可以帮助其他人通过谷歌搜索找到这个问题