5

Below is a short example of my code.

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}

\usepackage[backend=bibtex,
style=numeric,
sorting=nyt,
bibencoding=utf8,
defernumbers=true,
 natbib=true,
 ]{biblatex}

 \DefineBibliographyStrings{danish}{andothers = {et\addabbrvspace al\adddot}}

\addbibresource{Reference}

\begin{document}
This is a reference see \citep{Ovesen2012} and \citep{ctan}
\printbibliography[title={Referencer}]
\end{document}

In the file "Reference" there are the following:

@article{ctan,
author  = "George D. Greenwade",
title   = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
year    = "1993",
journal = "TUGBoat",
volume  = "14",
number  = "3",
pages   = "342--351",
keywords  = "latex"
}


@Book{Ovesen2012,
author = {Jens Ovesen and Marianen Hall and Ulirik Oven},
title = {An introduktion to latex},
publisher = {Polyteknisk forlag},
year = {2013},
}

I get the result as shown below, but I want the last names first, so it looks like this:

Greenwade, George D. "The Comprehensive Tex Archive Network (CTAN)". In: TUGBoat 14.3 (1993), pp. 342-351.

Ovesen, Jens; Marianen Hall and Ulirik Oven. An introduktion to latex. Polyteknisk forlag, 2013.

enter image description here

How can I do this ?

6

Add \DeclareNameAlias{author}{last-first} to your preamble.

5
  • For consistency reasons you might also want to add \DeclareNameAlias{editor}{last-first} and \DeclareNameAlias{translator}{last-first}. Alternatively, \DeclareNameAlias{default}{last-first} is shorter, but changes the format of some other names as well. – moewe Jan 30 '16 at 8:22
  • @moewe yes, you're right. But since the op only asked about the author, I decided to leave those out. – Alenanno Jan 30 '16 at 9:09
  • Fair enough, in my experience though, people often just use "author" as an umbrella term when, as far as biblatex is concerned, they could also mean editor and trasnslator. Just cite sigfridsson and matuz:doody in an example file with only \DeclareNameAlias{author}{last-first} and have a look at the terribly inconsistent output. – moewe Jan 30 '16 at 9:58
  • I'm using \usepackage[round,authoryear]{natbib} and I can't add the \DeclareNameAlias{author}{last-first} line, it gives me the following error ! Undefined control sequence. l.189 \DeclareNameAlias – mcExchange May 13 '19 at 13:33
  • @mcExchange Because you use the natbib package and the command mentioned above is for the biblatex package. – Zoltán Csáti Aug 30 '19 at 16:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.