From 9f8e8f7f14835cde2fef6389afada8ec478ca38b Mon Sep 17 00:00:00 2001
From: Nao Pross <np@0hm.ch>
Date: Sun, 31 Oct 2021 13:06:26 +0100
Subject: Create tex/docstyle and fix notation in theory

---
 doc/thesis/tex/docstyle.sty | 50 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 doc/thesis/tex/docstyle.sty

(limited to 'doc/thesis/tex/docstyle.sty')

diff --git a/doc/thesis/tex/docstyle.sty b/doc/thesis/tex/docstyle.sty
new file mode 100644
index 0000000..8b1cb80
--- /dev/null
+++ b/doc/thesis/tex/docstyle.sty
@@ -0,0 +1,50 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{tex/docstyle}[2021/10/31 v0.1 Document Style]
+
+%% Page Margins (done with KOMA)
+% \PassOptionsToPackage{geometry}{
+% 	a4paper, showframe
+% }
+% \RequirePackage{geometry}
+% \AfterCalculatingTypearea{%
+% 	\geometry{%
+% 			inner = 1cm, outer = 1cm, includeheadfoot
+% 			top = 3cm, bottom = 3cm
+% 	}
+% }
+
+%% Pager headers and footers (using KOMA)
+\PassOptionsToPackage{scrlayer-scrpage}{autooneside = false}
+\RequirePackage{scrlayer-scrpage}
+\setkomafont{pagenumber}{\sffamily\bfseries\upshape}
+% Add marks
+\lehead{\leftmark}
+\rohead{\rightmark}
+
+%% Font configuration
+%% use roboto from sans serif
+\RequirePackage{roboto}
+
+%% Bibliography style
+\PassOptionsToPackage{biblatex}{%
+	backend = biber,
+	style = ieeee,
+}
+\RequirePackage{biblatex}
+
+%% Set up links
+\PassOptionsToPackage{hyperref}{%
+	bookmarks = true,
+	% pdftitle = {}
+	pdfsubject = {Semester Thesis}
+	pdfauthor = {Naoki Pross, Sara Halter}
+	plainpages = false,
+	psepdfpagelabels,
+	urlcolor = black,
+	citecolor = black,
+	linkcolor = black,
+	colorlinks = true,
+}
+\RequirePackage{hyperref}
+
+% vim: set ts=2 sw=2 noet:
-- 
cgit v1.2.1


From ac09d6f42654ecd15ef42022ed2030bbdad1d369 Mon Sep 17 00:00:00 2001
From: Nao Pross <np@0hm.ch>
Date: Sun, 31 Oct 2021 13:40:09 +0100
Subject: More styling

---
 doc/thesis/tex/docstyle.sty | 32 +++++++++++++++++++++++++++-----
 1 file changed, 27 insertions(+), 5 deletions(-)

(limited to 'doc/thesis/tex/docstyle.sty')

diff --git a/doc/thesis/tex/docstyle.sty b/doc/thesis/tex/docstyle.sty
index 8b1cb80..3f0d76f 100644
--- a/doc/thesis/tex/docstyle.sty
+++ b/doc/thesis/tex/docstyle.sty
@@ -16,15 +16,25 @@
 %% Pager headers and footers (using KOMA)
 \PassOptionsToPackage{scrlayer-scrpage}{autooneside = false}
 \RequirePackage{scrlayer-scrpage}
-\setkomafont{pagenumber}{\sffamily\bfseries\upshape}
+
+\setkomafont{pagenumber}{\sffamily\bfseries}
+\setkomafont{pageheadfoot}{\itshape}
+
 % Add marks
 \lehead{\leftmark}
 \rohead{\rightmark}
 
 %% Font configuration
-%% use roboto from sans serif
+% use roboto from sans serif
 \RequirePackage{roboto}
 
+%% Floating captions configuration
+% set captions font
+\setkomafont{captionlabel}{\sffamily\bfseries}
+% set caption style
+\setcapindent{0pt}
+\renewcommand*{\captionformat}{\quad}
+
 %% Bibliography style
 \PassOptionsToPackage{biblatex}{%
 	backend = biber,
@@ -33,18 +43,30 @@
 \RequirePackage{biblatex}
 
 %% Set up links
+\RequirePackage{xcolor}
 \PassOptionsToPackage{hyperref}{%
 	bookmarks = true,
+	%% TODO: set title
 	% pdftitle = {}
 	pdfsubject = {Semester Thesis}
 	pdfauthor = {Naoki Pross, Sara Halter}
 	plainpages = false,
 	psepdfpagelabels,
-	urlcolor = black,
+}
+\RequirePackage{hyperref}
+\hypersetup{
+	% remove ugly boxes
+	hidelinks,
+	% set link colors
+	colorlinks = true,
+	anchorcolor = black,
 	citecolor = black,
+	filecolor = black,
 	linkcolor = black,
-	colorlinks = true,
+	menucolor = black,
+	runcolor = black,
+	urlcolor = {black!50!blue}, 
+	urlcolor = black,
 }
-\RequirePackage{hyperref}
 
 % vim: set ts=2 sw=2 noet:
-- 
cgit v1.2.1


From a7f21af3c4dbd3190e4b696258c9fb733e425c25 Mon Sep 17 00:00:00 2001
From: Nao Pross <np@0hm.ch>
Date: Sun, 31 Oct 2021 23:43:23 +0100
Subject: Fix notation and typos, add placeholder titlepage

---
 doc/thesis/tex/docstyle.sty | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'doc/thesis/tex/docstyle.sty')

diff --git a/doc/thesis/tex/docstyle.sty b/doc/thesis/tex/docstyle.sty
index 3f0d76f..ae33342 100644
--- a/doc/thesis/tex/docstyle.sty
+++ b/doc/thesis/tex/docstyle.sty
@@ -17,7 +17,7 @@
 \PassOptionsToPackage{scrlayer-scrpage}{autooneside = false}
 \RequirePackage{scrlayer-scrpage}
 
-\setkomafont{pagenumber}{\sffamily\bfseries}
+\setkomafont{pagenumber}{\sffamily\bfseries\slshape}
 \setkomafont{pageheadfoot}{\itshape}
 
 % Add marks
-- 
cgit v1.2.1


From c68d09d1683bdd4d303f9ced50f7da2844c468b6 Mon Sep 17 00:00:00 2001
From: Nao Pross <np@0hm.ch>
Date: Tue, 2 Nov 2021 16:17:16 +0100
Subject: Set up drafting options

---
 doc/thesis/tex/docstyle.sty | 25 ++++++++++++++++++++-----
 1 file changed, 20 insertions(+), 5 deletions(-)

(limited to 'doc/thesis/tex/docstyle.sty')

diff --git a/doc/thesis/tex/docstyle.sty b/doc/thesis/tex/docstyle.sty
index ae33342..32a76e8 100644
--- a/doc/thesis/tex/docstyle.sty
+++ b/doc/thesis/tex/docstyle.sty
@@ -1,5 +1,11 @@
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tex/docstyle}[2021/10/31 v0.1 Document Style]
+\ProvidesPackage{tex/docstyle}[2021/10/31 v0.1 Styling for my thesis]
+
+% Package options
+\newif\ifdraftmode
+\DeclareOption{draft}{\draftmodetrue}
+
+\ProcessOptions\relax
 
 %% Page Margins (done with KOMA)
 % \PassOptionsToPackage{geometry}{
@@ -13,19 +19,29 @@
 % 	}
 % }
 
+%% Need colors
+\RequirePackage{xcolor}
+
 %% Pager headers and footers (using KOMA)
-\PassOptionsToPackage{scrlayer-scrpage}{autooneside = false}
+\PassOptionsToPackage{scrlayer-scrpage}{autooneside=false, draft=false}
 \RequirePackage{scrlayer-scrpage}
 
 \setkomafont{pagenumber}{\sffamily\bfseries\slshape}
 \setkomafont{pageheadfoot}{\itshape}
 
-% Add marks
 \lehead{\leftmark}
 \rohead{\rightmark}
 
+%% Draft date when in draft mode
+\ifdraftmode
+	\RequirePackage{scrtime}
+	\newcommand{\draftfooterstring}{\footnotesize\slshape (Draft of \today\ at \thistime)}
+	\cefoot{\draftfooterstring}
+	\cofoot{\draftfooterstring}
+\fi
+
 %% Font configuration
-% use roboto from sans serif
+% use roboto for sans serif
 \RequirePackage{roboto}
 
 %% Floating captions configuration
@@ -43,7 +59,6 @@
 \RequirePackage{biblatex}
 
 %% Set up links
-\RequirePackage{xcolor}
 \PassOptionsToPackage{hyperref}{%
 	bookmarks = true,
 	%% TODO: set title
-- 
cgit v1.2.1

