使用 {unsrt} 按照引用出现的顺序制作参考书目

使用 {unsrt} 按照引用出现的顺序制作参考书目

我是 LaTeX 的新手,我正在尝试弄清楚如何根据文档本身的出现情况对我为会议撰写的论文中的引文进行排序。会议希望论文/参考书目采用特定的样式,因此我尝试将此代码用于我的论文。当我第一次编译时,一切都很顺利,一切都按正确的顺序排列,但后来我编辑引文,在 Bibtex 和 LaTeX 中重新编译,它又回到了按字母顺序排列。我做错了什么吗?让参考书目按引文出现情况排序的最佳方法是什么?

非常感谢!

\documentclass[a4paper,11pt,twocolumn]{article}
\usepackage{ICPhS2015}
\usepackage{graphicx}
\title{this is the title of my paper}
\author{XXX}
\organization{XXX}
\email{XXX}
\begin{document}    

\begin{document}

Words \cite{gu_smoothing_2002} words \cite{_matlab_2012} words \cite{gu2007gss} words \cite {r_developmentcoreteam_r:_2007} words 

\bibliographystyle{ICPhS2015}{unsrt}
\bibliography{ICPhS2015}
\end{document}

这是参考书目的一个例子,我想按引用出现顺序排序,而不是按字母顺序排序......

\begin{thebibliography}{10}

\bibitem{r_developmentcoreteam_r:_2007}
{DevelopmentCoreTeam}, R. 2007.
\newblock {\em R: A language and environment for statistical computing}.
\newblock R Foundation for Statistical Computing.

\bibitem{gu_smoothing_2002}
Gu, C. 2002.
\newblock {\em Smoothing Spline {ANOVA} Models}.
\newblock Springer Series in Statistics. Springer New York.

\bibitem{gu2007gss}
Gu, C. 2007.
\newblock gss: General smoothing splines.
\newblock http://cran.r-project.org/web/packages/gss/gss.pdf.

\bibitem{_matlab_2012}
MATLAB,  2012.
\newblock {\em Version 7.14.0.039 (R2012a)}.
\newblock The {MathWorks} Inc.
\end{thebibliography}

答案1

我没有您在 MWE 中使用的参考书目样式。您有该样式的链接吗,以便我们可以使用它?

所以我改变了你的 MWE 来向你展示如何获得想要的结果。诀窍是使用书目样式unsrt。然后你按照引用调用的顺序获得书目列表。包filecontents用于在一个 MWE 中包含 bib 文件和 tex 代码:

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@Book{companion,
  author    = {Goossens, Michel and Mittelbach, Frank and Samarin, Alexander},
  title     = {The LaTeX Companion},
  edition   = {1},
  publisher = {Addison-Wesley},
  location  = {Reading, Mass.},
  year       = {1994},
}
@Book{adams,
  title     = {The Restaurant at the End of the Universe},
  author    = {Douglas Adams},
  series    = {The Hitchhiker's Guide to the Galaxy},
  publisher = {Pan Macmillan},
  year      = {1980},
}
@misc{hfs,
  Date-Added    = {2012-10-18 15:39:01 +0100},
  Date-Modified = {2012-10-18 15:44:41 +0100},
  Howpublished  = {\url{http://developer.apple.com/legacy/mac/library/#technotes/tn/tn1150.html}},
  Institution   = {Apple Computer, Inc.},
  Month         = {March},
  Number        = {Technical Note TN1150},
  Title         = {HFS Plus Volume Format},
  Year          = {2004},
  key           = {Apple2},
}
\end{filecontents*}


\documentclass[a4paper,11pt,twocolumn]{article}
%\usepackage{ICPhS2015}
\usepackage{graphicx}
\usepackage{hyperref}

\title{this is the title of my paper}
\author{test}

\begin{document}
Words \cite{hfs} words \cite{adams} words \cite{companion} words 

\bibliographystyle{unsrt}
\bibliography{\jobname}
\end{document} 

参见 bib 文件中条目的顺序和 MWE 中的调用顺序。

我得到以下pdf文件:

生成的 pdf 文件

您可以根据自己的需要调整它吗?

相关内容