-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhva.sty
119 lines (99 loc) · 2.03 KB
/
hva.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
% !TeX spellcheck = nl_NL
\ProvidesPackage{hva}
% packages
\usepackage[dutch]{babel}
\usepackage[a4paper]{geometry}
\usepackage{pdfpages} % Enables the inclusion of external PDF
\usepackage{tabularx}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{hyperref} % Automatically adds links and bookmarks
% packages config
\graphicspath{
{./../images/}, % images shared across projects
{./images/}, % images specific to this project
}
% clear default title page
\title{}
\author{}
\date{}
\makeatletter
% title
\newcommand\@titleMain{}
\newcommand\titleMain[1]{\renewcommand\@titleMain{#1}}
\newcommand\@titleSub{}
\newcommand\titleSub[1]{\renewcommand\@titleSub{#1}}
% author
\newcommand\@authorDate{}
\newcommand\authorDate[1]{\renewcommand\@authorDate{#1}}
\newcommand\@authorName{}
\newcommand\authorName[1]{\renewcommand\@authorName{#1}}
\newcommand\@authorId{}
\newcommand\authorId[1]{\renewcommand\@authorId{#1}}
\makeatother
% default title
\titleMain{The main title of this report}
\titleSub{The sub title of this report}
% default author info
\authorDate{\today}
\authorName{John Doe}
\authorId{123456789}
\makeatletter
\title{%
{\huge \@titleMain}
\\
{\large \@titleSub}
}
\author{%
% Intentionally left blank
}
\date{%
\vfill
\begin{flushleft}
{\small
\begin{tabularx}{\textwidth}{rl}
\textbf{Datum:} & \@authorDate\\
\\
\textbf{Naam:} & \@authorName\\
\textbf{Studentnummer:} & \@authorId\\
\end{tabularx}
}
\end{flushleft}
}
\makeatother
\setlength\headheight{33pt}
\pagestyle{fancy}
\fancypagestyle{plain}{
\lhead{%
\includegraphics[height=1cm]{hva-logo}
}
\chead{%
% Intentionally left blank
}
\rhead{%
% Intentionally left blank
}
}
\lhead{%
\includegraphics[height=1cm]{hva-logo}
}
\chead{%
% Intentionally left blank
}
\rhead{%
% Intentionally left blank
}
\newcommand{\pdfp}[1]{%
\includepdf[
pages=-,
scale=0.7,
frame,
]{./appendices/#1}
}
\newcommand{\pdfpa}[1]{%
\includepdf[
pages=-,
scale=0.95,
frame,
]{./appendices/#1}
}