latex 中的引用问题

latex 中的引用问题

我打算在我的论文中写引用。

参考文献是硕士论文,我得到了这个输出

在此处输入图片描述

以下是代码

@MastersThesis{Paper10,
  author    = "Hasan Fleyeh",
  title     = "Traffic and Road Sign Recognition",
  school    = "Napier University",
  %type     = "diploma thesis",
  %address  = "",
  year      = "2008",
  month    = "July",
  %note     = "",
   }

你知道如何修复它吗?

答案1

您的参考书目条目中的注释行是导致观察到的行为的罪魁祸首。

这是该文件的内容.blg

This is BibTeX, Version 0.99dThe top-level auxiliary file: test.aux
The style file: IEEEtranS.bst
Database file #1: test.bib
You're missing a field name---line 5 of file test.bib
 :
 : %type     = "diploma thesis",
(Error may have been on previous line)
I'm skipping whatever remains of this entry
-- IEEEtranS.bst version 1.13 (2008/09/30) by Michael Shell.
-- http://www.michaelshell.org/tex/ieeetran/bibtex/
-- See the "IEEEtran_bst_HOWTO.pdf" manual for usage information.
** Sorting version - not for normal IEEE work.
Warning--empty year in Paper10

Done.
(There was 1 error message)

从日志中可以看出,BibTeX 跳过了schoolso之后的所有字段year,因此month不会被打印。

因此,解决方案是删除参考书目条目中的注释行(以 开头的行%不是参考书目条目中的注释):

@MastersThesis{Paper10,
  author    = "Hasan Fleyeh",
  title     = "Traffic and Road Sign Recognition",
  school    = "Napier University",
  year      = "2008",
  month    = "July",
  }

梅威瑟:

\documentclass{IEEEtran}

\usepackage{filecontents}

\begin{filecontents*}{\jobname.bib}
@MastersThesis{Paper10,
  author    = "Hasan Fleyeh",
  title     = "Traffic and Road Sign Recognition",
  school    = "Napier University",
  year      = "2008",
  month    = "July",
  }
\end{filecontents*}

\begin{document}

\nocite{*}

\bibliographystyle{IEEEtranS}
\bibliography{\jobname}

\end{document} 

输出:

在此处输入图片描述

相关内容