migrate to biblatex
[phd-thesis.git] / preamble / bibliography.tex
1 \usepackage{csquotes}
2 \usepackage[natbib,backref,backend=biber,style=authoryear-comp,useprefix=true,uniquelist=false,uniquename=false,giveninits=true,dashed=false,date=year,maxcitenames=2,maxbibnames=99,minnames=1]{biblatex}
3 \DeclareSortingNamekeyTemplate{
4 \keypart{
5 \namepart{family}
6 }
7 \keypart{
8 \namepart{prefix}
9 }
10 \keypart{
11 \namepart{given}
12 }
13 \keypart{
14 \namepart{suffix}
15 }
16 }
17
18 \addbibresource[glob]{bib/*.bib}
19 \usepackage{ragged2e}
20 \renewcommand{\bibfont}{\footnotesize}%\RaggedRight}
21 \setlength\bibitemsep{0pt}
22 \newcommand{\refurl}[2]{\url{#1}, accessed on: #2}
23
24 \makeatletter
25 \newcommand{\citepage}[1]{p.~#1}
26 \newcommand{\citepages}[1]{pp.~#1}
27 \newcommand{\citechapter}[1]{\cref@chapter@name~#1}
28 \newcommand{\citechapters}[1]{\cref@chapter@name@plural~#1}
29 \newcommand{\citesection}[1]{\cref@section@name~#1}
30 \newcommand{\citesections}[1]{\cref@section@name@plural~#1}
31 %\newcommand{\citesection}[1]{\S.~#1}
32 %\newcommand{\citesections}[1]{\S\S.~#1}
33 \newcommand{\citeparagraph}[1]{\P.~#1}
34 \newcommand{\citeparagraphs}[1]{\P\P.~#1}
35 \newcommand{\citelisting}[1]{\cref@listing@name~#1}
36 \makeatother