I'm aiming for following bibliography:
Andersson, S. 1999. Morphology....
Armenta, J.K., Dunn, P.O. & Whittingham, L.A. 2008. Effects.....
So three things need fixing in bibliography
- remove space between initials
- delimit first and second authors with ','
- delimit second and last author with '&'
Code: Select all
\documentclass{article}
\usepackage[
firstinits = true ,
style = authoryear ,
natbib = true ,
doi = false ,
isbn = false ,
url = false ,
uniquename = false ,
uniquelist = false ,
sorting = nyt ,
maxcitenames = 2
]{biblatex}
% remove comma inline citations
\renewcommand*{\nameyeardelim}{\addspace}
% delimits authors inline citations with &
\renewcommand*{\finalnamedelim}{\addspace\&\space}
% seperate multi authors by comma
\renewcommand*{\multicitedelim}{\addcomma\space}
% keep the example self-contained and let it create the bib file on the fly:
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@ARTICLE{AnderssonS1999,
author = {Andersson, S.},
title = {Morphology of UV reflectance in a whistling-thrush: implications
for the study of structural colour signalling in birds},
journal = {Journal of Avian Biology},
year = {1999},
volume = {30:},
pages = {193-204}
}
@ARTICLE{armenta2008,
author = {Armenta, J. K. and Dunn, P. O. and Whittingham, L. A.},
title = {{Effects of specimen age on plumage color}},
journal = {The Auk},
year = {2008},
volume = {125:},
pages = {803--808},
file = {:Users/rossahmed/Library/Application Support/Mendeley Desktop/Downloaded/Armenta, Dunn, Whittin\textit{g\textit{}}ham - 2008 - Effects of specimen age on plumage color.pdf:pdf},
publisher = {BioOne},
url = {http://www.bioone.org/doi/abs/10.1525/auk.2008.07006}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\DeclareFieldFormat
[article,inbook,incollection,inproceedings,patent,thesis,unpublished]
{title}{#1\isdot}
\renewbibmacro{in:}{%
\ifentrytype{article}{}{%
\printtext{\bibstring{in}\intitlepunct}}}
\makeatletter
\ifcsundef{abx@macro@\detokenize{date+extrayear}}{%
}{%
\renewbibmacro*{date+extrayear}{%
\iffieldundef{year}{%
}{%
\addperiod\space
\printtext{\printdateextra}%
}%
}%
}
\makeatother
\DeclareFieldFormat[article]{pages}{#1}
\DeclareNameFormat[article,periodical,book,electronic]{author}{%
\mkbibbold{#5\addspace#1\addcomma\addspace#4}}
\begin{document}
\title{test}
\author{test}
\date{}
\maketitle
some text \parencite{AnderssonS1999} and more text \parencite{armenta2008}
\printbibliography
\end{document}