aboutsummaryrefslogtreecommitdiffstats
path: root/doc/thesis/tex
diff options
context:
space:
mode:
Diffstat (limited to 'doc/thesis/tex')
-rw-r--r--doc/thesis/tex/docmacros.sty2
-rw-r--r--doc/thesis/tex/docstyle.sty87
-rw-r--r--doc/thesis/tex/titlepage.tex32
3 files changed, 90 insertions, 31 deletions
diff --git a/doc/thesis/tex/docmacros.sty b/doc/thesis/tex/docmacros.sty
index 433fe19..4c71004 100644
--- a/doc/thesis/tex/docmacros.sty
+++ b/doc/thesis/tex/docmacros.sty
@@ -1,7 +1,9 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tex/docmacros}[2021/09/27 v0.1 Document Macros]
+\RequirePackage{mathtools}
\RequirePackage{amsmath}
+\RequirePackage{amssymb}
\RequirePackage{bm}
% Probability
diff --git a/doc/thesis/tex/docstyle.sty b/doc/thesis/tex/docstyle.sty
new file mode 100644
index 0000000..32a76e8
--- /dev/null
+++ b/doc/thesis/tex/docstyle.sty
@@ -0,0 +1,87 @@
+\NeedsTeXFormat{LaTeX2e}
+\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}{
+% a4paper, showframe
+% }
+% \RequirePackage{geometry}
+% \AfterCalculatingTypearea{%
+% \geometry{%
+% inner = 1cm, outer = 1cm, includeheadfoot
+% top = 3cm, bottom = 3cm
+% }
+% }
+
+%% Need colors
+\RequirePackage{xcolor}
+
+%% Pager headers and footers (using KOMA)
+\PassOptionsToPackage{scrlayer-scrpage}{autooneside=false, draft=false}
+\RequirePackage{scrlayer-scrpage}
+
+\setkomafont{pagenumber}{\sffamily\bfseries\slshape}
+\setkomafont{pageheadfoot}{\itshape}
+
+\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 for 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,
+ style = ieeee,
+}
+\RequirePackage{biblatex}
+
+%% Set up links
+\PassOptionsToPackage{hyperref}{%
+ bookmarks = true,
+ %% TODO: set title
+ % pdftitle = {}
+ pdfsubject = {Semester Thesis}
+ pdfauthor = {Naoki Pross, Sara Halter}
+ plainpages = false,
+ psepdfpagelabels,
+}
+\RequirePackage{hyperref}
+\hypersetup{
+ % remove ugly boxes
+ hidelinks,
+ % set link colors
+ colorlinks = true,
+ anchorcolor = black,
+ citecolor = black,
+ filecolor = black,
+ linkcolor = black,
+ menucolor = black,
+ runcolor = black,
+ urlcolor = {black!50!blue},
+ urlcolor = black,
+}
+
+% vim: set ts=2 sw=2 noet:
diff --git a/doc/thesis/tex/titlepage.tex b/doc/thesis/tex/titlepage.tex
index 9bcd127..266cde1 100644
--- a/doc/thesis/tex/titlepage.tex
+++ b/doc/thesis/tex/titlepage.tex
@@ -1,35 +1,5 @@
% vim: set ts=2 sw=2 noet:
\begin{titlepage}
- \pdfbookmark[1]{\myTitle}{titlepage}
- \begin{addmargin}[-1cm]{-3cm}
- \begin{center}
- \large
-
- \hfill
-
- \vfill
-
- \begingroup
- \color{CTtitle}\spacedallcaps{\myTitle} \\ \bigskip
- \endgroup
-
- \spacedlowsmallcaps{\myName}
-
- \vfill
-
- % \includegraphics[width=6cm]{gfx/TFZsuperellipse_bw} \\ \medskip
-
- % \mySubtitle \\ \medskip
- % \myDegree \\
- \myDepartment \\
- \myFaculty \\
- \myUni \\ \bigskip
-
- \myTime\ -- \myVersion
-
- \vfill
-
- \end{center}
- \end{addmargin}
+ hello
\end{titlepage}