-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgermanqualificationprofile.cls
More file actions
139 lines (118 loc) · 3.96 KB
/
germanqualificationprofile.cls
File metadata and controls
139 lines (118 loc) · 3.96 KB
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
% !TeX program = xelatex
% !TeX encoding = UTF-8 Unicode
% SPDX-FileCopyrightText: © 2024 Sebastian Davids <sdavids@gmx.de>
% SPDX-License-Identifier: Apache-2.0
\ProvidesClass{germanqualificationprofile}[German Qualification Profile class]
\NeedsTeXFormat{LaTeX2e}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} % pass through any options to the base class
\ProcessOptions\relax % process given options
\LoadClass[a4paper]{article} % load the base class
\RequirePackage[bottom=2cm,left=2.5cm,right=1.5cm,top=2cm]{geometry} % DIN 5008
\RequirePackage{fontenc} % support for German special characters
\RequirePackage[utf8]{inputenc} % allow UTF-8 source encoding
\RequirePackage[english,ngerman]{babel} % German as main language
\RequirePackage[ngerman=ngerman-x-latest]{hyphsubst} % use newest hyphenation rules
\RequirePackage[strict,autostyle]{csquotes} % use appropriate German quotes
\defineshorthand{"`}{\openautoquote}
\defineshorthand{"'}{\closeautoquote}
\RequirePackage[useregional=numeric,calc]{datetime2} % date formatting
\RequirePackage[document]{ragged2e} % required for non-justified text % required for non-justified text
\RequirePackage{xifthen} % required for conditional statements
\RequirePackage{hyperref} % hyperlinks
\hypersetup{
colorlinks=true,
urlcolor=black
}
\RequirePackage{titlesec} % customize title styles
\titleformat{\section}{\normalfont\Large\bfseries\sffamily}{\thesection}{1em}{}
\RequirePackage{fontspec} % font support
\setmainfont{Nunito}[
Path=./fonts/,
Extension=.ttf,
UprightFont=*-Regular,
BoldFont=*-Bold,
ItalicFont=*-Italic,
BoldItalicFont=*-BoldItalic,
]
\setsansfont{Lora}[
Path=./fonts/,
Extension=.ttf,
UprightFont=*-Regular,
BoldFont=*-Bold,
ItalicFont=*-Italic,
BoldItalicFont=*-BoldItalic,
]
\RequirePackage{etaremune} % inverted numbering
\RequirePackage{enumitem} % customize list styles
\newlist{listnobullet}{enumerate}{2}
\setlist[listnobullet]{leftmargin=0em,itemsep=0em,label={}}
\newlist{listbullet}{enumerate}{2}
\setlist[listbullet]{leftmargin=1em,itemsep=0em,label=\rule[0.3ex]{0.6ex}{0.6ex}}
\newlist{listqpsection}{enumerate}{2}
\setlist[listqpsection]{leftmargin=0em,itemsep=0em,parsep=0.5em,label={}}
\newlist{listqpitemlist}{enumerate}{2}
\setlist[listqpitemlist]{leftmargin=1.6em,itemsep=0pt,parsep=0.5em,labelsep=1em,label=\rule[0.3ex]{0.6ex}{0.6ex}}
\pagestyle{empty} % suppress headers and footers
\newcommand{\range}[2]{%
#1\,\textendash\,#2%
}
\newcommand{\monthyear}{%
\DTMsavenow{now}%
\DTMmonthname{\DTMfetchmonth{now}}~\DTMfetchyear{now}%
}
\newcommand{\subtract}[2]{%
\the\numexpr #1 - #2 \relax%
}
\newcommand{\yearcount}[1]{%
\ifnum #1<\year%
\ifnum \subtract{\year}{#1}=1%
(1 Jahr)%
\else%
(\subtract{\year}{#1} Jahre)%
\fi%
\fi%
}
\newcommand{\sincewithyears}[1]{%
seit #1 \yearcount{#1}%
}
\newenvironment{qptable}[1]{%
\begin{minipage}[t]{0.3\textwidth}#1\end{minipage}%
\hfill%
\begin{minipage}[t]{0.70\textwidth}%
}{%
\vspace{0.5em}%
\end{minipage}%
}
\newenvironment{qpprojects}{%
\begin{etaremune}[leftmargin=0em,parsep=0.5em,labelsep=1em,itemsep=1.5em]%
\renewcommand\labelenumi{\normalfont\large\bfseries\sffamily\theenumi}%
}{%
\end{etaremune}%
}
\newenvironment{qpitemplain}[1]{%
\item%
\begin{minipage}[t]{0.2\textwidth}#1\end{minipage}%
\hfill%
\begin{minipage}[t]{0.75\textwidth}%
}{%
\end{minipage}%
}
\newenvironment{qpitemlist}[1]{%
\begin{qpitemplain}{#1}%
\begin{listqpitemlist}%
}{%
\end{listqpitemlist}%
\end{qpitemplain}%
}
\newenvironment{qpproject}[7]{%
\item {\normalfont\large\bfseries\sffamily#1}%
\begin{listqpsection}%
\begin{qpitemplain}{Zeitraum}#2\end{qpitemplain}%
\begin{qpitemplain}{Projektrolle}#3\end{qpitemplain}%
\begin{qpitemplain}{Kunde}#4\end{qpitemplain}%
\begin{qpitemplain}{Projektumfang}#5\end{qpitemplain}%
\begin{qpitemlist}{Aufgaben}#6\end{qpitemlist}%
\begin{qpitemplain}{Technologien}#7\end{qpitemplain}%
}{%
\end{listqpsection}%
}