BibTeX, biblatex and biberbiblatex | Seemingly inconsistent Name Formats

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
jmcLC
Posts: 3
Joined: Fri Jan 18, 2013 12:16 am

biblatex | Seemingly inconsistent Name Formats

Post by jmcLC »

Hi All,

I recently started using biblatex (my installation is TeX Live 2010). My preamble syntax is:

Code: Select all

\usepackage[backend=bibtex,style=authoryear]{biblatex}
When I cite a source with two authors, the bibliography entry prints the author names using an inconsistent format. For instance, suppose my .bib file entry is:

Code: Select all

@book{Abramowitz,
author = "Abramowitz, M. and Stegun, I.",
title  = "Handbook of Mathematical Functions",
publisher = {Dover Publications},
year = "1965" }
If I issue the command \parencite{Abramowitz} in my document, the bibliography entry prints as:

Abramowitz, M. and I. Stegun (1965). Handbook of Mathematical Functions. Dover Publications.

Notice that the name format used for the 1st author is inconsistent with that used for the 2nd author. The 1st author is printed using Last Name First format, but the 2nd author is printed using Last Name Last format. What I want is for the entry to print like this:

Abramowitz, M. and Stegun, I. (1965). Handbook of Mathematical Functions. Dover Publications.

How do I get biblatex to do what I want? Is this inconsistency a known biblatex Bug?

Any help would be much appreciated.


Thanks in advance,
Jerry
Last edited by cgnieder on Fri Jan 18, 2013 12:57 am, edited 1 time in total.

Recommended reading 2024:

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

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

User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

biblatex | Seemingly inconsistent Name Formats

Post by cgnieder »

Hi Jerry,

welcome to the LaTeX community!
jmcLC wrote:How do I get biblatex to do what I want? Is this inconsistency a known biblatex Bug?
I don't think this is a bug but a deliberate decision. There is an easy way out if you don't like it:

Code: Select all

\documentclass{article}

\usepackage[backend=bibtex,style=authoryear]{biblatex}
\DeclareNameAlias{sortname}{last-first}% <= this is the key here!
\addbibresource{\jobname.bib}

% for having a self-contained example:
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{Abramowitz,
author = "Abramowitz, M. and Stegun, I.",
title  = "Handbook of Mathematical Functions",
publisher = {Dover Publications},
year = "1965" }
\end{filecontents}

\begin{document}

\cite{Abramowitz}
\printbibliography

\end{document}
BTW, biblatex has lots more possibilities when used with biber as backend (name disambiguation, just to mention one)
jmcLC wrote:my installation is TexLive 2010
You are aware that this is already quite outdated, I suppose? (The last biblatex update which is in my TL 2012 installation is from Jan 10th 2013!)

Regards
site moderator & package author
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

biblatex | Seemingly inconsistent Name Formats

Post by cgnieder »

For everyone as information: this question has also been asked on TeX.sx where it has gotten the exact same answer...
site moderator & package author
jmcLC
Posts: 3
Joined: Fri Jan 18, 2013 12:16 am

biblatex | Seemingly inconsistent Name Formats

Post by jmcLC »

Hi Clemens,

Thanks for your suggestion. And as you've correctly noted, I posted the same query at stackexchange, where I got essentially the same reply. The suggested fixes don't work, but they come very close to working. After incorporating your suggestion, my preamble syntax now reads:

Code: Select all

\usepackage[style=authoryear]{biblatex}
\DeclareNameAlias{sortname}{last-first}
\bibliography{mybibs}
The bibligraphy entry now prints both authors in Last Name First format, which is great, but now erroneous repetitions of the author intials are appearing. The bibliography entry now prints as:

AbramowitzA.M.M.StegunS.I.I. (1965). Handbook of Mathematical Functions. Dover Publications.

Can you think of any reason why these repeated initials are occuring? Your working example involved the use of \documentclass{article}, whereas my actual preamble uses \documentclass[12pt,final,letterpaper]{book}. Also, my preamble syntax uses \bibliography{mybibs} instead of \addbibresource{\jobname.bib}. Maybe these differences cause the fix to fail?

Again, I appreciate your reply, and it does come close to solving the problem. Re your reply to my other post (about the \RN command conflict), I'll take your advice and have the text editor do a search-and-replace.

Jerry
Last edited by cgnieder on Fri Jan 18, 2013 2:22 am, edited 1 time in total.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

biblatex | Seemingly inconsistent Name Formats

Post by cgnieder »

jmcLC wrote:Your working example involved the use of \documentclass{article}, whereas my actual preamble uses \documentclass[12pt,final,letterpaper]{book}. Also, my preamble syntax uses \bibliography{mybibs} instead of \addbibresource{\jobname.bib}. Maybe these differences cause the fix to fail?
These differences should not at all have any effect. I used article because it's the standard class for Infominimal working examples. However, the book class doesn't make any definitions differently from article that could possibly effect biblatex.

The command \jobname holds the name of the file compiled with latex without the extension. That way I could use one file containing both the source and the bib file at once. Other than that there is no difference.

\addbibresource is the recommended biblatex way for inputting bibliography files but again \bibliography also works and should in no way have effects on the appearance of the bibliography style.

Conclusion: please post a complete Infominimal working example that shows the issue. Before you do that copy my example and compile it. If it also shows the erroneous behavior this is probably a version issue and you should update.

Regards (and good night, it's late on this half of the globe)
site moderator & package author
Post Reply