为什么参考文献没有出现在这里?

为什么参考文献没有出现在这里?

我已经创建了一个单独的 references.bib 文件,如下所示,然后将其添加到 main.tex 中,但它没有出现。
有什么想法可以解决这个问题吗?

这是我的main.tex

\documentclass[lettersize,journal]{IEEEtran}
\usepackage{natbib}

\begin{document}
This is an example.
\bibliographystyle{IEEEtran}
\bibliography{references.bib}
\end{document}

这是references.bib放在同一个文件夹中的。

@article{knuth:1984,
  title={Literate Programming},
  author={Donald E. Knuth},
  journal={The Computer Journal},
  volume={27},
  number={2},
  pages={97--111},
  year={1984},
  publisher={Oxford University Press}
}
@inproceedings{FosterEtAl:2003,
  author = {George Foster and Simona Gandrabur and Philippe Langlais and Pierre
    Plamondon and Graham Russell and Michel Simard},
  title = {Statistical Machine Translation: Rapid Development with Limited Resources},
  booktitle = {Proceedings of {MT Summit IX}},
  year = {2003},
  pages = {110--119},
  address = {New Orleans, USA},
}
@phdthesis{Alsolami:2012,
    title    = {An examination of keystroke dynamics
                for continuous user authentication},
    school   = {Queensland University of Technology},
    author   = {Eesa Alsolami},
    year     = {2012}
}

但是,我编译时的结果如下main.tex。引用没有出现:

在此处输入图片描述

答案1

\documentclass[lettersize,journal]{IEEEtran}
\usepackage[noadjust]{cite}
\begin{document}
This is an example.
\cite{knuth:1984,FosterEtAl:2003,Alsolami:2012}
\bibliographystyle{IEEEtran}
\bibliography{references.bib}
\end{document}

在此处输入图片描述

建议您使用cite包而不是natbibpackage,示例文件中有以下描述裸露的_jrnl.tex以供参考。

% *** CITATION PACKAGES ***
%
%\usepackage{cite}
% cite.sty was written by Donald Arseneau
% V1.6 and later of IEEEtran pre-defines the format of the cite.sty package
% \cite{} output to follow that of the IEEE. Loading the cite package will
% result in citation numbers being automatically sorted and properly
% "compressed/ranged". e.g., [1], [9], [2], [7], [5], [6] without using
% cite.sty will become [1], [2], [5]--[7], [9] using cite.sty. cite.sty's
% \cite will automatically add leading space, if needed. Use cite.sty's
% noadjust option (cite.sty V3.8 and later) if you want to turn this off
% such as if a citation ever needs to be enclosed in parenthesis.
% cite.sty is already installed on most LaTeX systems. Be sure and use
% version 5.0 (2009-03-20) and later if using hyperref.sty.
% The latest version can be obtained at:
% http://www.ctan.org/pkg/cite
% The documentation is contained in the cite.sty file itself.

相关内容