-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.sty
79 lines (64 loc) · 1.59 KB
/
style.sty
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{style}[Custom LaTeX style]
% Options
\DeclareOption{en} { \def \MNS@lang {english} }
\DeclareOption{nl} { \def \MNS@lang {dutch} }
\DeclareOption{memoir} { \def \MNS@class {memoir} }
\DeclareOption{other} { \def \MNS@class {other} }
\DeclareOption{normalMargins} { \def \MNS@marg {0} }
\DeclareOption{smallMargins} { \def \MNS@marg {1} }
%% Standard options:
\ExecuteOptions{nl}
\ExecuteOptions{other}
\ExecuteOptions{normalMargins}
\ProcessOptions\relax
%% Encoding
\RequirePackage[utf8]{inputenx}
\RequirePackage[T1]{fontenc}
%% Language
\RequirePackage[\MNS@lang]{babel}
\RequirePackage{csquotes}
%% Miscellaneous
\RequirePackage{xspace} % Clever space
\RequirePackage{multirow} % Rows spanning multiple lines in tables
\RequirePackage{xifthen} % Ifthenelse
% Document class
\ifthenelse
{
\equal{\MNS@class}{memoir}
}
{
%% Chapter
\chapterstyle{demo2}
\renewcommand*{\printchaptername}
{
\centering\chapnamefont\MakeUppercase{\@chapapp}
}
\renewcommand*{\printchapternum}{\chapnumfont\thechapter\space}
\renewcommand*{\chaptitlefont}{\Huge\bfseries\boldmath\sffamily\center}
}
{}
\ifthenelse
{
\equal{\MNS@marg}{1}
}
{
% Small margins
\usepackage[margin=1in]{geometry}
}
{}
%% Bibliography
\usepackage[
backend=biber,
style=alphabetic,
sorting=ynt
]{biblatex}
\addbibresource{bibliography.bib}
%% Table of contents
\addto\captionsdutch{
\renewcommand*\contentsname{Inhoudstafel} % Inhoudsopgave sounds lame
}
\addto\captionsenglish{
\renewcommand*\contentsname{Summary}
}
\endinput