[Tex/LaTex] Change the ordering of names of bibliographic entries to “Surname, Name” format

bibliographiesbibtex

I use the very popular Easy Thesis template with very common standard packages and only slight adaptions, like natbib (see below). Everything works smoothly, aside one small issue, the Bibliography writes the Name, Surname format.

It seems to be a popular problem, and Mico offered a solution to same kind, but I cannot reproduce it. Where should I change the format, or even is there a better way. I'm fearing any massive changes, because I cannot overview them. However, I will try any proposal, since I'm stuck. Thank You!

\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage[UKenglish, USenglish]{babel}
\usepackage[threshold=2]{csquotes}
\usepackage{enumitem}
\usepackage{fixltx2e}
\usepackage{hyperref}
\usepackage{booktabs}
\usepackage{tabularx}
\setlength{\heavyrulewidth}{0.08em}
\usepackage{tablefootnote}
\usepackage{url}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage[authoryear, numbers, comma, sort&compress]{natbib}
\usepackage{breakcites}
\usepackage{longtable}
\usepackage{ltxtable}
\usepackage{listings}
\usepackage{verbatim} 

Best Answer

When using BibTeX, the formatting of the bibliographic entries -- including the ordering of first and last names -- is determined by the settings contained in the bibliography style file that's in use. It would appear that you're using the plainnat style file. Fortunately, it's not difficult to modify the settings in plainnat.bst that govern the ordering of first and last names.

  • Find the file plainnat.bst in your TeX distribution. (One way to find this file is to issue the command kpsewhich plainnat.bst at a command prompt; this should provide you with the needed information. If you can't find the file on your computer's hard drive, you can always obtain it from the CTAN.) Copy this file to, say myplainnat.bst; don't edit directly a file provided as part of your TeX distribution.

  • Open the file myplainnat.bst in your favorite text editor and search for function named format.names. (It starts on line 216 in my copy of plainnat.bst.)

  • In this function, look for the line

    { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't :=
    

    Change this line to

    { s nameptr "{vv~}{ll}{, ff}{, jj}" format.name$ 't :=
    
  • Save the file myplainnat.bst either to the directory that contains your main .tex file or to a directory that's searched by your BibTeX distribution. (If you choose the second option, depending on your TeX distribution, you may also have to refresh the filename database of the TeX distribution.)

  • Start using the modified bibliography style file by issuing the command \bibliographystyle{myplainnat}, and be sure to run LaTeX, BibTeX, and LaTeX twice more on the main .tex file to propagate all changes.