From d06ffdfb65cc74bde0016115871fd86aa41be1df Mon Sep 17 00:00:00 2001 From: lordkekz <lordkekz@lkekz.de> Date: Tue, 21 Jan 2025 13:52:41 +0100 Subject: [PATCH] cls: minor fixes; sample: Use biblatex instead of bibtex --- .gitattributes | 2 +- mluthesis.cls | 4 ++-- sample.pdf | 4 ++-- sample.tex | 14 ++++++++------ 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.gitattributes b/.gitattributes index 5b2719d..4952350 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,2 @@ *.pdf filter=lfs diff=lfs merge=lfs -text -mlu-siegel-transparent.png filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text diff --git a/mluthesis.cls b/mluthesis.cls index fcffc88..ce6782b 100644 --- a/mluthesis.cls +++ b/mluthesis.cls @@ -8,7 +8,7 @@ \ProvidesClass{mluthesis}[2020/04/20 v1.0] % Load base class (scrbook). -\LoadClass[a4paper,12pt,oneside,bibliography=totoc,chapterprefix=true,appendixprefix=true]{scrbook} +\LoadClass[a4paper,12pt,oneside,bibliography=nottotoc,chapterprefix=true,appendixprefix=true]{scrbook} % Encoding: \RequirePackage[utf8]{inputenc} @@ -274,7 +274,7 @@ % Pass default options to hyperref class, if loaded. \newcommand{\hyperoptions}{ colorlinks=false, - pageanchor=false + pageanchor=true } \newcommand{\hyperpdfoptions}{ pdftex, diff --git a/sample.pdf b/sample.pdf index 28197ce..0981de6 100644 --- a/sample.pdf +++ b/sample.pdf @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:54e8bfe81e0c17acd4d6e5eba92d346c21303e0dec7cfcf82688738709a89145 -size 521006 +oid sha256:67be6396d7b3954a0008988048b7397808fef35f0d5ea0135a310112427e7aed +size 532190 diff --git a/sample.tex b/sample.tex index 48a6442..9d703e4 100644 --- a/sample.tex +++ b/sample.tex @@ -1,11 +1,14 @@ \documentclass[english]{mluthesis} % Supported languages: english, german -\usepackage{hyperref} -\usepackage{natbib, doi} -\usepackage{graphicx} \usepackage{amsmath} \usepackage{csquotes} \MakeOuterQuote{"} +\usepackage{graphicx} +\usepackage{hyperref} + +\usepackage{biblatex} +\addbibresource{sample.bib} +\usepackage{doi} \usepackage{lipsum} % for lorem ipsum sample text @@ -28,7 +31,7 @@ % This is a list, seperated with commata. % If you only put one entry, the numbers will be omitted. -\ThesisSetSupervisors{{Prof. Professor McProfessorface}, {Dr. Noonien Soong}} +\ThesisSetSupervisors{{Prof. McProfessorface},{Dr. Noonien Soong}} % This puts the MLU sigil on the title page. \ThesisSetLogo{\includegraphics[width=\linewidth]{mlu-siegel-transparent.png}} @@ -71,8 +74,7 @@ \lipsum[5-7] \nocite{*} -\bibliographystyle{plainnat} -\bibliography{sample} % uses file sample.bib +\printbibliography \declaration -- GitLab