出了点问题——可能缺少 \item

出了点问题——可能缺少 \item

我已经创建了一个单独的文件用于引用,references.bib并希望使用以下语法在我的 tex 文件中调用它

\documentclass[conference]{IEEEtran}
\begin{document}
\section{Related Works}
   The work \cite{Zhnag05}...
\bibliographystyle{IEEEtran}
\bibliography{references}
\end{document}

bib 文件包含

@IEEEtranBSTCTL{IEEEexample:BSTcontrol,
CTLdash_repeated_names = "no",
}

@article{Zhang05,
  author = "Author1 and Author2",
  title = "{The title}",
  booktitle = {ACM},
  year = {2005},
  volume = {3},
  issue = {2},
  pages = {363-387},
}

但是我在编译过程中收到此错误

(./bare_conf.bbl
! LaTeX Error: Something's wrong--perhaps a missing \item.

.bbl文件包含

% Generated by IEEEtran.bst, version: 1.13 (2008/09/30)
\begin{thebibliography}{}
\providecommand{\url}[1]{#1}
\csname url@samestyle\endcsname
\providecommand{\newblock}{\relax}
\providecommand{\bibinfo}[2]{#2}
\providecommand{\BIBentrySTDinterwordspacing}{\spaceskip=0pt\relax}
\providecommand{\BIBentryALTinterwordstretchfactor}{4}
\providecommand{\BIBentryALTinterwordspacing}{\spaceskip=\fontdimen2\font plus
\BIBentryALTinterwordstretchfactor\fontdimen3\font minus
  \fontdimen4\font\relax}
\providecommand{\BIBforeignlanguage}[2]{{%
\expandafter\ifx\csname l@#1\endcsname\relax
\typeout{** WARNING: IEEEtran.bst: No hyphenation pattern has been}%
\typeout{** loaded for the language `#1'. Using the pattern for}%
\typeout{** the default language instead.}%
\else
\language=\csname l@#1\endcsname
\fi
#2}}
\providecommand{\BIBdecl}{\relax}
\BIBdecl
\end{thebibliography}

有一个类似的问题这里,但是并没有解决我的问题。

有什么办法可以解决这个问题吗?

答案1

您引用的bibtex密钥错误。它\cite{Zhang05}不是\cite{Zhnag05}

\documentclass[conference]{IEEEtran}
\usepackage{filecontents}
\begin{filecontents*}{references.bib}
 @IEEEtranBSTCTL{IEEEexample:BSTcontrol,
CTLdash_repeated_names = "no",
}

@article{Zhang05,
  author = "Author1 and Author2",
  title = "{The title}",
  booktitle = {ACM},
  year = {2005},
  volume = {3},
  issue = {2},
  pages = {363-387},
}
\end{filecontents*}
\begin{document}
\section{Related Works}
   The work \cite{Zhang05}...
\bibliographystyle{IEEEtran}
\bibliography{references}
\end{document}

在此处输入图片描述

顺便说一句,对于类型的条目@article,您应该使用字段journal而不是booktitle来存储字符串“ACM”。

相关内容