使用 apacite 时 apa7 中的引用出现错误

使用 apacite 时 apa7 中的引用出现错误

在 bibtex 之后第二次运行 PDFlatex 时,我遇到了一堆错误,这是第一个错误:

! Undefined control sequence.
\hyper@@link ->\let \Hy@reserved@a
\relax \@ifnextchar [{\hyper@link@ }{\hyp...
l.17 \citeA{foo}
blah blah blah blah. Stuff goes here.
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

我很确定这完全是由于更新我的文件以使用 apa7 而不是 apa6 造成的,但如果可能的话,我想让它与 apa7 一起工作。

梅威瑟:

\documentclass[stu, apacite]{apa7}

\title{Title}
\shorttitle{Other title}
\author{My name}
\authorsaffiliations{School, College}
\course{Course name}
\professor{Dr. So and So}
\duedate{November 15, 2020}

\begin{document}
\maketitle

\section{A section}
\citeA{foo} blah blah blah blah. Stuff goes here. 

\section{A different section}
More writing and stuff \cite{bar}. 

\bibliography{testb}
\end{document}

MWE 的围兜:

@book{foo,
  title={A book title},
  author={Doe, John Bob},
  year={2034},
  publisher={A company}
}

@misc{bar,
  title={Here's a website},
  author={Smith, Jane},
  url={https://www.google.ca}
}

相关内容