BibTeX, biblatex and biberbabelbib | Style "babalpha" inconsistent in Name Order

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
Fibonacci
Posts: 37
Joined: Tue Jan 25, 2011 1:16 am

babelbib | Style "babalpha" inconsistent in Name Order

Post by Fibonacci »

So, say I'm citing a book by two authors, using the following BiBTeX file:

Code: Select all

@book{Does,
  author = "Doe, John and Doe, Jane",
  title = "Boring book title",
  publisher = "Random House"
}
I'm using babelbib for that:

Code: Select all

\documentclass{article}
\usepackage[english]{babel}  %Any language will do
\usepackage[fixlanguage]{babelbib}
\begin{document}
\cite{Does}
\bibliography{aforementioned_file}
\bibliographystyle{babalpha}
\end{document}
The reference I get on the final document looks like this:

[DD] Doe, John and Jane Doe: Boring book title. Random House.

As you will notice, the authors are cited as "Lastname, Firstname" first and "Firstname Lastname" second, which is inconsistent.

Is there any way to make it consistent?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

babelbib | Style "babalpha" inconsistent in Name Order

Post by localghost »

It works if you group the names with additional curly braces.

Code: Select all

\documentclass[11pt,english]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage[fixlanguage]{babelbib}
\usepackage{filecontents}

\begin{filecontents*}{\jobname.bib}
@book{Does,
  author = {{Doe, John} and {Doe, Jane}},
  title = {Boring book title},
  publisher = {Random House}
}
\end{filecontents*}

\bibliographystyle{babalpha}

\begin{document}
  \nocite{*}
  \bibliography{\jobname}
\end{document}
Remarks:
  • It has become very common to use curly braces instead of quotation marks for data in a BibTeX entry.

Thorsten
Fibonacci
Posts: 37
Joined: Tue Jan 25, 2011 1:16 am

babelbib | Style "babalpha" inconsistent in Name Order

Post by Fibonacci »

localghost wrote:It works if you group the names with additional curly braces.
That, unfortunately, makes BiBTeX treat each name as a single indivisible unit, so if I later decide to switch to (say) \bibliographystyle{plain}, which (consistently) uses "Firstname Lastname", they will still appear as "Lastname, Firstname" unless I manually change each one of them on my BiBTeX file.

Is there no way to make babalpha consistent in the way it handles names?
ruohomaa
Posts: 1
Joined: Fri Feb 15, 2013 3:27 pm

Re: babelbib | Style "babalpha" inconsistent in Name Order

Post by ruohomaa »

We ran into the same problem recently.

The solution seems to be to use as bibliography style babalpha-lf (last-first) or babalpha-fl (first-last).
Fibonacci
Posts: 37
Joined: Tue Jan 25, 2011 1:16 am

Re: babelbib | Style "babalpha" inconsistent in Name Order

Post by Fibonacci »

Thank you, that is exactly what I was looking for.
Post Reply