-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgsdiss.cls
53 lines (38 loc) · 1.3 KB
/
gsdiss.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{gsdiss}[2014/08/16 Example LaTeX class]
\LoadClass{report}
\RequirePackage{xcolor}
\definecolor{slcolor}{HTML}{882B21}
% Provides useful macros for custom cover page.
\RequirePackage{titling}
% Set margins.
\RequirePackage[a4paper,top=3cm,bottom=3cm,left=4cm,right=3cm]{geometry}
% Provides \includegraphics.
\RequirePackage{graphicx}
% Allow periods and spaces in graphics file names.
\RequirePackage{grffile}
% Date formatting.
\RequirePackage[useregional]{datetime2}
\DTMusemodule{english}{en-GB}
%\DTMlangsetup{showdayofmonth=false}
% Fancy header for cover page.
\RequirePackage{fancyhdr}
% Prettier tables.
\RequirePackage{booktabs}
% Increase line-spacing.
\RequirePackage{setspace}
\onehalfspacing
% Continuous footnote counting.
\RequirePackage{chngcntr}
\counterwithout{footnote}{chapter}
% Flexible captions.
\RequirePackage{caption}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax
% Provides NewDocumentCommand.
\RequirePackage{xparse}
% --------------------------------------------------------------------
% Custom commands
% --------------------------------------------------------------------
\NewDocumentCommand{\supervisor}{m}{\newcommand{\thesupervisor}{#1}}
\NewDocumentCommand{\degree}{m}{\newcommand{\thedegree}{#1}}