I would like to tweak the authoryear style in biblatex. Specifically, I would like to define separate cases for maxbibnames.
The behavior I am looking for is:
- If the publication has up to 8 authors, I want to cite all authors in the bibliography
- If the publication has more than 8 authors, I want to cite the first 7 authors + et. al.
Furthermore, I need to change the order of the author's last and first names between the first and subsequent authors.
- first author: Last name, first name
- all subsequent authors: first name, last name
I have tried defining maxbibnames=7. This will list all authors in publications with up to 7 authors and list the first author + et. al. in publications with more than 7 authors.
Lets say the .bib file my_ref.bib looks like this:
@Article{Danecek2011,
author = {Danecek, Petr and Auton, Adam and Abecasis, Goncalo and Albers, Cornelis A. and Banks, Eric and DePristo, Mark A. and Handsaker, Robert E. and Lunter, Gerton and Marth, Gabor T. and Sherry, Stephen T. and McVean, Gilean and Durbin, Richard and 1000 Genomes Project Analysis Group},
title = {{The variant call format and VCFtools}},
journal = {Bioinformatics},
year = {2011},
volume = {27},
number = {15},
pages = {2156-2158},
doi = {10.1093/bioinformatics/btr330},
}
In a nutshell my code looks like this:
% !BIB TS-program = biber
\documentclass[12pt,a4paper]{article}
\usepackage[a4paper,left=2.6cm, right=2.9cm, top=3.5cm, bottom=3.5cm]{geometry}
\usepackage[sorting=nyt, citestyle = authoryear, bibstyle = authoryear, giveninits=true, isbn = false, url = false, eprint = false, doi = false, dashed = false, uniquelist = minyear, maxcitenames = 2, maxbibnames = 7, backend = biber]{biblatex}
\addbibresource{my_ref.bib}
\begin{document}
\cite{Danecek2011}
\printbibliography
\end{document}
The output is:
Danecek, P. et al. (2011): "The variant call format and VCFtools". In: Bioinformatics 27.15, pp. 2156-2158.
I would like to receive something like:
Danecek, P., A. Auton, G. Abercasis, C. A. Cornelius, E. Banks, M. A. DePristo, R. E. Handsaker et al. (2011): "The variant call format and VCFtools". In: Bioinformatics 27.15, pp. 2156-2158.
minbibnames(https://tex.stackexchange.com/q/76240) – Dai Bowen Feb 16 '23 at 16:00minbibnames = 7andmaxbibnames = 8gives the desired behavior without changing the last name and first name order. Thank you! – Mareike Feb 16 '23 at 16:191000 Genomes Project Analysis Groupin the author field should be protected with additional curly braces:{1000 Genomes Project Analysis Group}. Otherwise Biber will try to parse it into given and family name. Alsotitle = {{The variant call format and VCFtools}},would be better astitle = {The Variant Call Format and {VCFtools}},. – moewe Feb 16 '23 at 19:41