I'm trying to insert a Harvard reference list to my report. I'm using the Swedish language package and biblatex. However, I am having some problems with the reference list:
(1) I would like the references to be written like this:
Author1lastname, author1first name, Author2lastname, author2firstname, Author3lastname, author3firstname (year)...
However, the second and third authors names show up firstname-lastname (please see picture).
(2) I would like my references to be sorted by author last name. However, the list starts with an author whose last name starts with the letter W :(
If I add some more references, they get sorted by author last name, so I think the problem might have to do with the Swedish language package? How can I solve this problem, so that the W comes after V?
Example tex file:
\documentclass[a4paper,11pt,twoside]{article}
\usepackage[T1]{fontenc}
\usepackage[swedish]{babel}
\usepackage[utf8]{inputenc}
\usepackage{algorithmic}
\usepackage[style=authoryear,backend=biber,maxbibnames=99]{biblatex}
\addbibresource{reference.bib}
\begin{document}
\title{My title}
\author{My name}
\maketitle
\section{I have multiple sections}
I write references like this (\cite{key1}). This shows up first in the referencelist (\cite{key2}).
\newpage
\printbibliography
\end{document}
Example bib file:
@inproceedings{key1,
author = {Author1lastname, Author1firstname and Author2lastname, Author2firstname and Author3lastname, Author3firstname},
title = {Title},
booktitle = {Booktitle},
series = {Series},
year = {Year},
isbn = {ISBN},
location = {Location},
pages = {Pages},
numpages = {Numpages},
url = {URL},
doi = {DOI},
publisher = {Publisher},
}
@inproceedings{key2,
author = {WAuthor1lastname, Author1firstname and Author2lastname, Author2firstname and Author3lastname, Author3firstname},
title = {Title},
booktitle = {Booktitle},
series = {Series},
year = {Year},
isbn = {ISBN},
location = {Location},
pages = {Pages},
numpages = {Numpages},
url = {URL},
doi = {DOI},
publisher = {Publisher},
}
I'm new to LaTex and would be very thankful for help :)
\documentclass{...}
and ending with\end{document}
. In particular, in your case it should be a minimal working example with bibliography (MWEB).\DeclareNameAlias{sortname}{family-given}
, which is updated in the answer mentioned in the one you linked. (last-first
still works, but might not do so in the future, as the uptodate form isfamily-given
).