Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Can't get references sorted alphabetically with BibTeX

  1. Feb 18, 2013 #1
    Hi all,

    Could you help me figure out what packages I should use to get all references sorted alphabetically?

    These are the packages and settings I'm using... I've tested many without success:

    \usepackage{natbib}
    \bibpunct{(}{)}{;}{a}{,}{,}
    %...
    \bibliographystyle{plainnat}
    \renewcommand{\bibname}{Referências}
    \bibliography{Referencias}


    Thank you in advance

    Márcio
     
  2. jcsd
  3. Feb 18, 2013 #2

    DrDu

    User Avatar
    Science Advisor

  4. Feb 18, 2013 #3
  5. Feb 18, 2013 #4

    DrDu

    User Avatar
    Science Advisor

    You don't need any package at all. I would try it out
    using only

    \bibliographystyle{plainnat} %or whatever style you chose
    \renewcommand{\bibname}{Referências}
    \bibliography{Referencias}

    However it may be that you don't have all of the bibstyles installed on your computer although most of them should come with any modern tex-distribution.
     
  6. Feb 18, 2013 #5
    Hi DrDu,

    I tried with 4 packages (abbrvnat, plainnat, unsrtnat and apasoft, but the later didn't work at al) which seemed to work for my PhD thesis. All of them showed the references like this:

    [Zhu et al.(2005)Zhu, Zheng, Guo, and Zhu]


    and not like this:

    Zhu et al.(2005)


    meaning they all put the names of all authors after they are cited.

    Any help will be very much appreciated.
     
  7. Feb 19, 2013 #6

    DrDu

    User Avatar
    Science Advisor

    Maybe you can show us a small example file and some information about what distribution you are using on which platform?
     
  8. Feb 19, 2013 #7

    DrDu

    User Avatar
    Science Advisor

    I could reproduce this. The styles you tried require
    \usepackage[sort]{natbib}
    \bibpunct{(}{)}{;}{a}{,}{,}

    \bibliographystyle{plainnat}
    \renewcommand{\bibname}{Referências}
    \bibliography{Referencias}
     
  9. Feb 19, 2013 #8
    It worked like a charm after your suggestion of adding 'sort' and after I replaced 'plainnat' with 'ametsoc'.
    I'm using MikTeX on Windows 8.

    Thank you very much

    Márcio
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Can't get references sorted alphabetically with BibTeX
  1. Using BibTEX (Replies: 5)

  2. Bibtex latex (Replies: 1)

Loading...