编译时 \cite 中出现未定义的控制序列错误

编译时 \cite 中出现未定义的控制序列错误

这是 .tex 文件的开头:

\documentclass{llncs}  
\newcommand{\modelName}{ABC}  %This is the name of the model  
\title{XYZ}  
\begin{document}

\section{Introduction}  

Believable non-playable characters are critical to creating an immersive character-rich game world whether it is for entertainment or training \cite{reilly1996believable}.

\bibliographystyle{splncs}
\bibliography{aiide2014mx}

上面的代码行出现了以下错误。如果有人知道这一点,那将非常有帮助!我在 bib 文件中确实有引文条目。所以我不确定为什么会出现这个错误。

! Undefined control sequence.
\b@reilly1996believable ->\citeauthoryear
{Reilly}{1996}
l.90 ...nt or training \cite{reilly1996believable}
. Emotionally plausible ch...
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.

.bib 文件是:

@techreport{reilly1996believable,
Author = {Reilly, W Scott},
Date-Added = {2014-05-13 05:53:57 +0000},
Date-Modified = {2014-05-13 05:53:57 +0000},
Institution = {Defense Technical Information Center (DTIC) Document},
Title = {{Believable Social and Emotional Agents.}},
Year = {1996}}

答案1

可能是你的内核文件没有更新。以下是输出结果。转到施普林格并下载 zip 文件,llncs2e.zip然后将 llncs.cls 提取到您的工作目录中。

在此处输入图片描述

代码

\documentclass{llncs}  
\newcommand{\modelName}{ABC}  %This is the name of the model  
\title{XYZ}  
\begin{document}

\section{Introduction}  

Believable non-playable characters are critical to creating an immersive character-rich game world whether it is for entertainment or training \cite{reilly1996believable}.

\bibliographystyle{splncs}
\bibliography{aiide2014mx}
\end{document}

相关内容