-
Notifications
You must be signed in to change notification settings - Fork 4
/
dtek.cls
56 lines (42 loc) · 1.12 KB
/
dtek.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
54
55
56
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{dtek}[2013/04/07 Datateknologsektionen Chalmers]
\LoadClass[12pt]{scrartcl}
\RequirePackage[quiet]{fontspec}
\RequirePackage{graphicx}
\RequirePackage{xcolor}
\RequirePackage{fancyhdr}
\RequirePackage{lastpage}
\RequirePackage[swedish, iso]{isodate}
\RequirePackage{calc}
\RequirePackage[unicode]{hyperref}
\RequirePackage[includeheadfoot, top=2.0cm, bottom=3cm]{geometry}
% Remove the numbers from all the headings (\section, \subsection, etc.)
%\setcounter{secnumdepth}{-1}
\addtokomafont{disposition}{\rmfamily}
\definecolor{links}{HTML}{0000FF}
\hypersetup{
colorlinks,
urlcolor=links
}
\AtBeginDocument{
\hypersetup{
pdftitle = {\@title},
pdfauthor = {\@author}
}
}
\pagestyle{fancy}
\fancyhf{}
\newcommand{\headleft}{%
\raisebox{-3mm}{\includegraphics[width=14mm]{dteklogo}}\hspace{1mm}
\parbox[b]{5cm}{Datateknologsektionen\\
Chalmers studentkår}%
}
\settototalheight\headheight{\headleft}
\addtolength\headheight{0.4pt}
\lhead{\headleft}
\rhead{Sidan \thepage\ av \pageref{LastPage}\\\@date}
\renewcommand{\headrule}{
\nointerlineskip
\hskip 14mm\hrulefill
}
\endinput