在 LaTex 中包含参考书目会出现错误

在 LaTex 中包含参考书目会出现错误

我正在写一篇 IEEE 论文,我想在我的研究论文中使用 IEEEtran 书目样式。我使用以下代码添加书目

\documentclass[conference]{IEEEtran}
\title{Title}
}
\begin{document}
\bibliographystyle{IEEEtran}
\bibliography{myreferences}
\end{document}

当我第一次使用 PDFLatex 编译代码时,它不会生成任何错误,事实上它会生成一个名为 myPaper.bbl 的新文件,当我第二次编译该文档时,我收到以下错误

./myPaper.bbl:3:Something's wrong--perhaps a missing \item. \end{thebibliography}

的内容myPaper.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}

我的另一个观察是,如果我将参考书目的样式从 IEEEtran 更改为普通样式,在这种情况下我也会注意到同样的错误。

经过这样的改变之后,我明白了,问题不在于 IEEEtran 文件或普通样式文件,唯一的问题在于自动创建的 myPaper.bbl 文件。

由于我对 kile 文档的了解有限,我无法更深入地了解该问题。

有人可以帮我解决这个问题吗?

答案1

我当前的版本IEEEtran需要这个biblatex包。它适用于当前的 TeXLive 2014:

\documentclass[conference]{IEEEtran}
\usepackage{biblatex}
\addbibresource{IEEEexamples}
\title{Title}

\newcommand\BibTeX{Bib\TeX}
\begin{document}
\nocite{*}
\printbibliography
\end{document}

我跑pdflatex -> biber -> pdflatex -> pdflatex

在此处输入图片描述

相关内容