Fix [Author, Year] bibliography style
This commit is contained in:
@@ -1,18 +1,26 @@
|
||||
\usepackage[
|
||||
backend=biber,
|
||||
style=authoryear,
|
||||
style=alphabetic,
|
||||
backref=true,% Show page numbers where citations appear
|
||||
maxbibnames=99,% Show all authors in bibliography
|
||||
maxcitenames=1,% Show only one author in citations
|
||||
uniquelist=false% Force maxcitenames
|
||||
maxalphanames=1,% Show only one author in citations
|
||||
]{biblatex}
|
||||
|
||||
\DefineBibliographyStrings{english}{andothers={}} % Remove "et al." in citations
|
||||
\renewcommand*{\labelalphaothers}{} % Remove "et al." in citations
|
||||
|
||||
% Use square brackets for citations
|
||||
\AtEveryCite{
|
||||
\let\bibopenparen=\bibopenbracket%
|
||||
\let\bibcloseparen=\bibclosebracket%
|
||||
% Define citation style to be [Author, Year]
|
||||
\DeclareLabelalphaTemplate{
|
||||
\labelelement{
|
||||
\field[final]{shorthand}
|
||||
\field{labelname}
|
||||
\field{label}
|
||||
}
|
||||
\labelelement{
|
||||
\literal{,\addhighpenspace}
|
||||
}
|
||||
\labelelement{
|
||||
\field{year}
|
||||
}
|
||||
}
|
||||
|
||||
% Remove some fields from bibliography
|
||||
|
||||
Reference in New Issue
Block a user