I want to display names in a Hardvard style used in my institution where references are displayed like:
Author, F. M., Author2 F. M., Author3 F. M. (2019) etc
However, my document shows it like this:
\usepackage[
backend=biber,
style=authoryear,
sorting=nyt,
citestyle=authoryear,
sortcites=true,
giveninits=true,
maxcitenames=2,
maxbibnames=99,
uniquename=init
]{biblatex}
Above is my \biblatex code. Does anyone have a suggestion where I've gone wrong?
Also I want all listings to include the author, not like the way it is displayed in the image below:
Edit:
Also I have defined two \cite-commands for my document:
\newcommand{\mcite}[1]{\textcolor{black}{\citeauthor{#1} (\citeyear{#1})}}
\newcommand{\hcite}[1]{(\textcolor{black}{\citeauthor{#1}, \citeyear{#1}})}
Citing Author (Date) and (Author Date).
However, I would like these cite-commands to make clickable citations in the document (will not work with hyperref like \cite). Suggestions?
EDIT 2:
\documentclass[12pt,twoside]{report}
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm]{geometry}
\usepackage[utf8]{inputenc}
%colors
\usepackage{color}
\usepackage[dvipsnames]{xcolor}
\definecolor{mycolor}{RGB}{30,75,180} %Blue
\definecolor{mycolor2}{RGB}{40,75,90} %Greyblue
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage[backend=biber,
style=authoryear,
maxcitenames=2,
maxbibnames=99,
giveninits=true,
uniquename=init,
dashed=false]{biblatex}
\DeclareNameAlias{sortname}{family-given}
\DeclareDelimAlias{finalnamedelim}{multinamedelim}
\addbibresource{bibliography.bib}
\usepackage[colorlinks = true,
linkcolor = black,
urlcolor = mycolor,
citecolor = black,
anchorcolor = mycolor]{hyperref}
\newcommand{\mcite}[1]{\textcolor{black}{\citeauthor{#1} (\citeyear{#1})}}
\newcommand{\hcite}[1]{(\textcolor{black}{\citeauthor{#1}, \citeyear{#1}})}
\begin{document}
\section{Introduction}
Text written by
"Cite": \cite{RN1}
"Citeyear": \citeyear{RN1}
"Citeauthor": \citeauthor{RN1}
"Mcite": \mcite{RN1}
"Hicte": \hcite{RN1}
% Bibliography
\phantomsection
\addcontentsline{toc}{chapter}{References}%
\printbibliography
\end{document}
Above you can see an example code of the one with the suggested solution, however I now get two errors:
"Undefined control sequence" for the:
\DeclareDelimAlias{finalnamedelim}{multinamedelim}
and "Latex error: Missing \begin{document}"




\citeauthorand\citeyearas done in\mciteand\hciteis usually ill-advised, since commands defined like this will have problems with multiple citations, don't properly support pre- and postnotes and can at worst mess up citation tracking features. The proper way to define new\...citemacros is most of the time via\DeclareCiteCommand. – moewe May 03 '19 at 16:00\DeclareDelimAlias, your version ofbiblatexis outdated. (It must be more than a year old now.\DeclareDelimAliaswas added in version 3.8 released on 2017-11-04.) – moewe May 09 '19 at 07:58biblatexthere and are stuck with their outdated version. I'll update the answer with a workaround shortly. – moewe May 09 '19 at 08:01biblatex(such as the one run by Overleaf.) – moewe May 09 '19 at 08:10