书目编号问题

书目编号问题

如果这个问题之前有人问过,或者它相当琐碎,我深表歉意。我无法让我的引文以我想要的方式出现在我的报告中。我的引文以以下方式出现:

这是我的引文出现的方式的图像。

我希望它们只是数字(因此,例如,它可能看起来像[1, 2]而不是[Knu64, CW99])。我将包括如何在 BibDesk 界面中输入我的一个参考文献。

在此处输入图片描述

如果我的帖子有点笨拙,我深表歉意。我很困惑,希望得到任何帮助。以下是我的作品的一个简略示例:

\documentclass[12pt]{report}
\usepackage{mathtools, amsmath, amssymb, mathrsfs, amsthm}
\usepackage{graphicx}
\begin{document}
\makesigpage
\maketitlepage

\include{acknowl}
\include{abstract}


\tableofcontents

\StartBody

\include{Introduction}
\include{Construction}
\include{Results}

\bibliographystyle{alpha}
\addcontentsline{toc}{chapter}{\bibname}
\bibliography{ref}


\StartAppendix
\include{AppendixA}
\include{AppendixB}


\end{document}

我的 .bib 文件的条目如下所示

@article{E,
Author = {Donald E. Knuth},
Date-Added = {2016-11-11 17:51:39 +0000},
Date-Modified = {2016-11-11 17:52:40 +0000},
Journal = {Journal of Algebra 2},
Month = {September},
Pages = {182-217},
Title = {Finite Semifields and Projective Planes},
Year = {1964}}

@unpublished{G,
Author = {Greg Wene},
Date-Added = {2016-11-11 17:58:19 +0000},
Date-Modified = {2016-11-11 17:59:12 +0000},
Title = {Notes on 32-Element Semifields}}

\end{document}

答案1

只是为了结束这一切......

请查看以下 MWE(该包filecontents仅用于将 TeX 代码和 bib 文件合并到一个可编译的 MWE 中):

\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{E,
  Author = {Donald E. Knuth},
  Date-Added = {2016-11-11 17:51:39 +0000},
  Date-Modified = {2016-11-11 17:52:40 +0000},
  Journal = {Journal of Algebra 2},
  Month = {September},
  Pages = {182-217},
  Title = {Finite Semifields and Projective Planes},
  Year = {1964}
}
@unpublished{G,
  Author = {Greg Wene},
  Date-Added = {2016-11-11 17:58:19 +0000},
  Date-Modified = {2016-11-11 17:59:12 +0000},
  Title = {Notes on 32-Element Semifields}
}
\end{filecontents}


\documentclass[12pt]{article}

\begin{document}

Test \cite{E} test \cite{G} test

\bibliographystyle{alpha} % alpha plain  <================================
\bibliography{\jobname}

\end{document}

所选的书目样式\bibliographystyle{alpha}将产生以下结果:

生成的 pdf

现在我们只改变一行,将样式alpha改为plain

\bibliographystyle{plain}

有了新的 MWE,您现在就可以

\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{E,
  Author = {Donald E. Knuth},
  Date-Added = {2016-11-11 17:51:39 +0000},
  Date-Modified = {2016-11-11 17:52:40 +0000},
  Journal = {Journal of Algebra 2},
  Month = {September},
  Pages = {182-217},
  Title = {Finite Semifields and Projective Planes},
  Year = {1964}
}
@unpublished{G,
  Author = {Greg Wene},
  Date-Added = {2016-11-11 17:58:19 +0000},
  Date-Modified = {2016-11-11 17:59:12 +0000},
  Title = {Notes on 32-Element Semifields}
}
\end{filecontents}


\documentclass[12pt]{article}

\begin{document}

Test \cite{E} test \cite{G} test

\bibliographystyle{plain} % alpha plain  <==============================
\bibliography{\jobname}

\end{document}

你可以通过以下标签获得期望的结果[1]

生成的 pdf

所以你可以看到仅有的书目样式定义了最终书目的布局...

相关内容