apa7 中 apacite 的引用錯誤

apa7 中 apacite 的引用錯誤

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

相關內容