Shorter authoryear bib style

This commit is contained in:
2024-06-27 17:56:19 +02:00
parent 65de33bb60
commit 8cb0b4bfc3

View File

@@ -14,20 +14,35 @@
\linespread{1.15} % Set line spacing to 1.15
%% Content
\usepackage[backend=biber, backref=true, doi=false, style=authoryear]{biblatex} % Bibliography
\addbibresource{references.bib}
\AtEveryBibitem{% Remove some fields from bibliography
\clearfield{day}%
\clearfield{location}%
\clearfield{month}%
\clearfield{series}%
}
%% Bibliography
\usepackage[
backend=biber,
style=authoryear,
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
]{biblatex}
\DefineBibliographyStrings{english}{andothers={}} % Remove "et al." in citations
\AtEveryCite{% Use square brackets for citations
\let\bibopenparen=\bibopenbracket%
\let\bibcloseparen=\bibclosebracket%
}
\addbibresource{references.bib} % Load bibliography
\AtEveryBibitem{% Remove some fields from bibliography
\clearfield{doi}%
\clearfield{day}%
\clearfield{location}%
\clearfield{month}%
\clearfield{series}%
}
%% Content
\usepackage{bookmark} % Manage bookmarks
\usepackage[draft, defaultcolor=Blue, xcolor=dvipsnames]{changes} % Track changes
@@ -65,9 +80,6 @@
%% Custom commands
\input{utils/commands}
\renewcommand{\citeauthorcite}[1]{\citeauthor*{#1}~\parencite*{#1}}
\definechangesauthor[color=RawSienna]{CP}
\newcommand{\CP}[1]{\comment[id=CP]{#1}}