I have problems with my cite numbering. For example the first citation in my document is number 6 which is numbered correctly in the bibliography but how can I change it to number 1,2,3 and so on as I use them in my document not as 6,4,12,1,4

I am using natbib package and these are the commands I am using


Maybe it's got something to do with the bibliographystyle?

  • The hunch you expressed in the final sentence -- that it's got something to do with the bibliography style -- is correct. Are you free to choose a different bibliography style, or are you required to use ksfh_nat?
    – Mico
    Jun 23 '15 at 15:26
  • I am free to use bibliograpy style but i want it in this format [1] Green, Don W. / Willhite, G. Paul (1998): SPE Textbook Series, Volume 6 : Enhanced Oil Recovery. Richardson, TX, USA, Society of Petroleum Engineers. Like auther first and date in brackets afterwards =/ Jun 23 '15 at 15:28

A comment up front: The ksfh_nat bibliography style appears to be quite buggy. For instance, in the example below, you'll see that for entries of type @article the issue number rather than the volume number is shown. Yikes!

Assuming you want to keep using this style, though, and merely want to replace the alphabetical sorting order for the typeset entries with the order in which the items are (first) cited in the body of the paper, you could proceed as follows:

  • Find the file ksfh_nat.bst in your TeX distribution. Make a copy of this file and call the copy, say, ksfh_unsrt.bst.

  • Open the file ksfh_unsrt.bst in a text editor. (The editor you use for your tex files will do fine).

  • Near the bottom of the file -- on lines 1208 and 1210 in my copy of the file -- you find the instructions

    ITERATE {presort}
  • Comment out (or delete) both of these instructions.

  • Save the file ksfh_unsrt.bst, either in the directory where your main tex file is located, or in a directory that's searched by your TeX distribution. If you choose the second option, be sure to update the filename database of your TeX distribution.

  • Start using the modified bibliography style by replacing the instruction \bibliographystyle{ksfh_nat} with \bibliographystyle{ksfh_unsrt}. Be sure to re-run LaTeX, BibTeX, and LaTeX twice more to fully propagate all changes.

Happy BibTeXing!

enter image description here


   author  = "Anne Author",
   title   = "Thoughts",
   journal = "Circularity Today",
   year    = 3001,
   volume  = 1,
   number  = 2,
   pages   = "3--4",
   author  = "Bert Branson",
   title   = "Further Thoughts",
   journal = "Circularity Today",
   year    = 3002,
   volume  = 5,
   number  = 6,
   pages   = "7--8",
   author  = "Jack Handy",
   title   = "Deep Thoughts",
   journal = "Circularity Today",
   year    = 3003,
   volume  = 10,
   number  = 11,
   pages   = "12--13",

\cite{jjj}, \cite{bbb}, \cite{aaa}
  • Thank you so much for help... I am new to latex where do I find this file ksfh_nat.bst Jun 23 '15 at 15:55
  • @BakhtawarKhattak - The location of the file will depend on the TeX distribution you use. Can you open a command window and type "kpsewhich ksfh_nat.bst"?
    – Mico
    Jun 23 '15 at 16:05
  • omg thank you so much... i found it... i love u Jun 23 '15 at 16:07
  • I'm blushing...
    – Mico
    Jun 24 '15 at 13:10

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.