From d324cdf7ff332573caba14d839cec33017d34d47 Mon Sep 17 00:00:00 2001
From: Nikolaj Tatti <nikolaj.tatti@helsinki.fi>
Date: Mon, 21 Sep 2020 17:46:04 +0300
Subject: [PATCH] Fix for overriding biblatex bibliography name. Works now in
 overleaf

---
 HYthesisML.cls | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/HYthesisML.cls b/HYthesisML.cls
index 0911540..02ac3d1 100644
--- a/HYthesisML.cls
+++ b/HYthesisML.cls
@@ -558,9 +558,7 @@
 }
 
 
-
-\AtBeginDocument{
-
+\AtEndPreamble{
    % Biblatex doesn't use bibname or refname. Instead it overwrites it with its own value.
    % These values must be fixed manually, and done after biblatex has been loaded.
    \@ifpackageloaded{biblatex}{
@@ -574,8 +572,9 @@
        }
    }
 
+}
 
-
+\AtBeginDocument{
     \newcounter{numberofpages}
     \newcounter{numberofappendixpages}
 
-- 
GitLab