[Tex/LaTex] Sorting Dutch surnames with ‘van’ and ‘van der’ in bibliography

apa-stylebibliographiesnatbibsorting

In my document I use natbib package with apalike style. I really enjoy the citation style and would prefer not to change anything. However, there is a small issue: Dutch second names with van and van der appear in Bibliography with second names starting with V. For example, von Wright is a neighbour of Vardi in bibliography. Is there any way to have it sorted by the main part of second name? So that von Wright will appear together with Walter, rather than Vardi. Cheers!

Best Answer

I suggest you proceed as follows:

  • Locate the file apalike.bst in your TeX distribution. Make a copy of this file and call the copy, say, apalike-nl.bst. (You're obviously free to select another file name.)

  • Open the file apalike-nl.bst in a text editor; the program you use to edit your tex files will do fine.

  • Locate the function sort.format.names in the bst file. (In my copy of this file, this function starts on line 914.)

  • In this function, locate the following line:

          s nameptr "{vv{ } }{ll{ }}{  f{ }}{  jj{ }}" format.name$ 't := % <= here
    

    Change this line to

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

    I trust you can guess what the ll and vv components of a full name denote.

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

  • In the main tex file, change the instruction

    \bibliographystyle{apalike}
    

    to

    \bibliographystyle{apalike-nl}
    

    and rerun LaTeX, BibTeX, and LaTeX twice more to fully propagate the change.

Happy BibTeXing!


Here's a minimal working example (MWE). Observe that "van Bronckhorst" is listed before "de Bruyne"; with the standard version of apalike, "de Bruyne" would come before "van Bronckhorst".

enter image description here

\RequirePackage{filecontents}
\begin{filecontents}{mybib.bib}
@misc{kdb, author="Kevin de Bruyne", title="Thoughts", year=2018}
@misc{gvb, author="Giovanni van Bronckhorst", title="Thoughts", year=2018}
\end{filecontents}

\documentclass{article}
\usepackage[round,authoryear]{natbib}
\bibliographystyle{apalike-nl}

\begin{document}
\nocite{*}
\bibliography{mybib}
\end{document}
Related Question