如何将此模板的参考书目样式更改为 IEEE

如何将此模板的参考书目样式更改为 IEEE

我正在使用以下论文模板。我需要将参考文献样式更改为 IEEE 样式。这是使用我需要更改的参考文献样式运行的脚本:

\documentclass[a4paper,twoside]{ociamthesis}

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[LAE,T1]{fontenc}

%%%%% BIBLIOGRAPHY SETUP

\usepackage[style=numeric, sorting=none, backend=bibtex, doi=false, isbn=false]{biblatex}
\addbibresource{references}

\newcommand*{\bibtitle}{References}

% This makes the bibliography left-aligned (not 'justified') and slightly smaller font.
\renewcommand*{\bibfont}{\raggedright\small}


\title{Test Title}

\begin{document}
\chapter{First Chapter}
\section{First Section}
I cite this~\cite{preece1994human}


\setlength{\baselineskip}{0pt} % JEM: Single-space References

{\renewcommand*\MakeUppercase[1]{#1}%
    \printbibliography[heading=bibintoc,title={\bibtitle}]}

\end{document}

为了改变风格,我从上面的脚本中删除了以下两行:

\usepackage[style=numeric, sorting=none, backend=bibtex, doi=false, isbn=false]{biblatex}
    \addbibresource{references}

并将其替换为:

\bibliographystyle{IEEEtran}
\bibliography{references}

但我收到以下错误:

line 18: \bibfont undefined. \renewcommand*{\bibfont}
line 32: Undefined control sequence. \printbibliography
: No file Oxford_Thesis.bbl.
line 26: Citation `preece1994human' on page 1 undefined
: There were undefined references.

我如何才能使上述模板脚本使用 IEEE 参考样式。请注意,我在编译之前放置了 IEEE 必需.sty文件.bst,但仍然出现错误。

编辑:

为了阐明为什么添加style=ieee不能提供所需的输出,这里有一些说明:

如果我有这个参考书目条目:

@misc{smith09,
    author = {Smith, James},
    title = {Obama inaugurated as President},
    date = {2009},
    note = {accessed Jun. 12, 2009},
    url = {https://www.cnn.compolitics},
}

根据电气电子工程师学会(检查 P 网站部分),它应该看起来像这样(注意网站标题中的双引号):

1J. Smith,《奥巴马就任总统》,2009 年 6 月 12 日访问。[在线]。可访问:https://www.cnn.compolitics

上面的输出是我在 Latex 脚本中使用 IEEEtran 时得到的。但是,在论文模板中,相同的参考书目条目在参考文献部分显示如下(标题中为斜体且没有引号):

J.史密斯,奥巴马就任总统,2009 年 6 月 12 日访问。[在线]。可用:https://www.cnn.compolitics

如果我在条目中使用@online而不是@misc,它会从标题中删除斜体,但不会添加引号,并且显示如下:

J. Smith。(2009 年)。奥巴马就任总统。2009 年 6 月 12 日访问,[在线]。可用:https://www.cnn.compolitics

如何才能使使用论文模板的参考文献在 IEEEtran 中以相同的方式显示(即网站标题是非斜体且带有引号)?

答案1

您可以使用 获得 IEEE 书目样式的规范 biblatex,只需使用

\usepackage[style=ieee]{biblatex}

代替[style=numeric],并使用bib扩展名(与命令\addbibresource{references.bib} 相反 ),正如@Mico 在他的评论中指出的那样。bibtexbibliography{references}

此外, biblatex不使用.bst文件,而是.bbx使用参考书目样式的文件、.cbx引用样式的文件和.lbx 语言相关字符串文件。您可以在以下位置找到更多解释这个答案由@moewe 指出

答案2

该软件包的最新版本biblatex-ieee已经修复了发布的问题,并且@online参考书目条目现在应该符合 IEEE 一致格式。

相关内容