From fb449f41549b6b1523e0112850392e470cf07170 Mon Sep 17 00:00:00 2001 From: Erwan Normand Date: Tue, 22 Oct 2024 11:24:12 +0200 Subject: [PATCH] Fix indentation in references section --- config/bibliography.tex | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/config/bibliography.tex b/config/bibliography.tex index 5869a7c..3584214 100644 --- a/config/bibliography.tex +++ b/config/bibliography.tex @@ -60,3 +60,23 @@ \clearfield{url}% } +% References section (https://tex.stackexchange.com/a/298992) +% tex-fmt: off +\setlength{\biblabelsep}{2\labelsep}% +\defbibenvironment{bibliography}{% + \list{% + \printtext[labelalphawidth]{% + \printfield{prefixnumber}% + \printfield{labelalpha}% + \printfield{extraalpha}% + }% + }{% + \setlength{\labelsep}{\biblabelsep}% + \setlength{\leftmargin}{\labelsep}% + \setlength{\itemsep}{\bibitemsep}% + \setlength{\parsep}{\bibparsep}% + }% +\renewcommand*{\makelabel}[1]{##1\hss}% +}{\endlist}% +{\item}% +% tex-fmt: on