I'm a total newbie at LaTeX, and I'm trying to figure out how to sort citations within a paper I'm writing for a conference based on their appearance in the document itself. The conference has a specific style they want for the paper/bibliography, so I tried using this code for my paper. When I compiled the first time, this went fine and everything was ordered properly, but then I went in to edit a citation, and recompiled in Bibtex and then LaTeX, and it went back to being alphabetically. Am I doing something wrong? What's the best way to make the bibliography sort by appearance of citation?

Thanks so much!

\title{this is the title of my paper}


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


And here's an example of the bibliography, which I want to sort by citation appearance, not by alphabetical order...


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

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

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

MATLAB,  2012.
\newblock {\em Version (R2012a)}.
\newblock The {MathWorks} Inc.
  • Your MWE is incomplete : where is your preamble with \documentclass{article}...? – Paul Gaborit Jan 28 '15 at 20:07
  • Sorry - forgot about all of the top part and examples and such - like I said, I'm a total newbie with this awesome program >.< – Marissa Jan 28 '15 at 20:19
  • The statement \bibliographystyle{ICPhS2015}{unsrt} doesn't look right: the macro takes only one argument, not two. What happens if you type \bibliographystyle{unsrt} instead? – Mico Mar 11 '15 at 5:36
  • The conference style sorts by alphebatical order. If you are submitting to them, you need to follow their style. – Andrew Swann Jul 9 '15 at 8:35

I do not have the bibliography style you used in your MWE. Do you have a link to the style so that we can use it?

So I changed your MWE to show you how you can get the wanted result. The trick is to use the bibliography style unsrt. Then you get the bibliography list in the order of the cite calls. Package filecontents is used to have the bib file and the tex code in one MWE:

  author    = {Goossens, Michel and Mittelbach, Frank and Samarin, Alexander},
  title     = {The LaTeX Companion},
  edition   = {1},
  publisher = {Addison-Wesley},
  location  = {Reading, Mass.},
  year       = {1994},
  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},
  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},


\title{this is the title of my paper}

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


See the order of entries in the bib file and the order of calls in the MWE.

I get the following pdf file:

Resulting pdf file

Can you adapt this to your needs?

  • 1
    I tried to do that, the problem I had was that I couldn't use more than one style (that I know of, at least), and the icphs style (it's for a conference) is needed. Is there a way to do \bibliographystyle{unsrt}{icphs} or something like that? – Marissa Feb 10 '15 at 1:45
  • The style can be downloaded from the conference site in the LaTeX template. – Marissa Feb 11 '15 at 22:48
  • 1
    Writing a paper for a conference usualy forces you to use the given style or classes. If you change things, for example using a modified bst file, your article will not be printed as you wish ... – Mensch May 29 '15 at 17:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.