无法将参考书目添加到 llncs 文件

无法将参考书目添加到 llncs 文件

尝试运行 时出现以下错误Latex,然后运行Bibtex​​,然后运行两次Latex。我在 Linux 上的 Texmaker 上执行此操作。

! Undefined control sequence.
<argument> \bibname
\@mkboth {\sl \uppercase {\bibname }}{\sl \uppercase {\b...
l.1 \begin{thebibliography}{10}
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.
! Undefined control sequence.
<argument> \@listctr
l.5 \bibitem{altman2005ranking}
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.
! You can't use `\relax' after \the.
<recently read> \c@
l.5 \bibitem{altman2005ranking}
I'm forgetting what you said and using zero instead.
! Undefined control sequence.
<argument> \@listctr

但是,PDF 生成时存在以下问题。

  1. 参考书目已添加到 PDF 中,但格式不正确。我尝试使用方括号编号系统,其中参考文献在文本中显示为“[2]”,在参考文献下显示为“[2] Altman, A., Tennenholtz, M.: 排名系统:pagerank 公理。在:第 6 届 ACM 电子商务会议论文集。第 1--8 页。ACM (2005)”但就我而言,参考文献只是按以下方式推送到 PDF 中,没有任何编号: 在此处输入图片描述
  2. 此外,文中引用的书目不正确。所有引用都显示为“(0)” 在此处输入图片描述

我的Latex文件如下:

\documentclass[a4paper,twoside]{llncs}

\usepackage{calc}
\usepackage{amssymb}
\usepackage{amstext}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{multicol}
\usepackage{pslatex}
\usepackage{apalike}
\usepackage{algorithm}
\usepackage{listings}
\usepackage{spverbatim}
\usepackage{enumitem}
\usepackage{breqn}
\usepackage{fancyvrb}
\usepackage{fixltx2e}
\usepackage{bera}

\begin{document}

 Text goes here. References call by \cite{altman2005ranking}.

\section{References}
\bibliographystyle{splncs03}
\bibliography{example}
\end{document}

bbl文件如下:

\begin{thebibliography}{10}
\providecommand{\url}[1]{\texttt{#1}}
\providecommand{\urlprefix}{URL }

\bibitem{altman2005ranking}
Altman, A., Tennenholtz, M.: Ranking systems: the pagerank axioms. In: Proceedings of the 6th ACM conference on Electronic commerce. pp. 1--8. ACM (2005)
\end{thebibliography}

最后,aux文件的最后几行是:

\bibdata{example}
\@writefile{toc}{\contentsline {section}{\numberline {5}References}{8}}
\bibcite{altman2005ranking}{0}
\bibcite{amato2013decentralized}{0}
\bibcite{amato2014planning}{0}
\bibcite{gmytrasiewicz2004interactive}{0}
\bibcite{gosavi2014simulation}{0}
\bibcite{howard1960dynamic}{0}
\bibcite{kaelbling1998planning}{0}
\bibcite{kaelbling1996reinforcement}{0}
\bibcite{parkes2013dynamic}{0}
\bibcite{pineau2003point}{0}
\bibcite{puterman2014markov}{0}
\bibcite{sondik1971optimal}{0}
\bibcite{tennenholtz2004dynamic}{0}
\bibcite{undurti2010online}{0}
\bibcite{wiering2007computing}{0}

bib 文件附有以下示例:

@inproceedings{amato2013decentralized,
title={Decentralized control of partially observable Markov decision processes},
author={Amato, Christopher and Chowdhary, Girish and Geramifard, Alborz and {\"U}re, N Kemal and Kochenderfer, Mykel J},
booktitle={52nd IEEE Conference on Decision and Control},
pages={2398--2405},
year={2013},
organization={IEEE}
}

@inproceedings{pineau2003point,
title={Point-based value iteration: An anytime algorithm for POMDPs},
author={Pineau, Joelle and Gordon, Geoff and Thrun, Sebastian and others},
year={2003}
}

还有人遇到过这些问题吗?任何帮助都将不胜感激!

答案1

我因为这一行而遇到了这个问题:

\usepackage{apalike}

由于我对 Latex 还比较陌生,我认为这里发生的事情是,这个包与 LNCS zip 包提供的参考书目模板和样式文件发生冲突。删除相同的文件后,PDF 就可以生成而不会出现任何错误。

我感谢@ChristianHupfer 在这篇文章的评论中提出的建议。

相关内容