-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.tex
95 lines (84 loc) · 2.01 KB
/
config.tex
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
\documentclass[11pt, a4paper, sans]{moderncv}
\usepackage{fontawesome5}
\usepackage[utf8]{inputenc}
\usepackage[finnish,english]{babel}
\usepackage[bottom=2.0cm, top=2.5cm, left=2cm, right=2.5cm]{geometry}
\usepackage{datetime}
\usepackage{xcolor}
\moderncvstyle{classic}
\moderncvcolor{black}
\AtBeginDocument
{\recomputelengths}
\AtBeginDocument
{\definecolor
{sectionrectanglecolor}
{RGB}
{2,6,43}}
\AtBeginDocument
{\definecolor
{sectiontitlecolor}
{RGB}
{255,0,0}}
\AtBeginDocument
{\definecolor
{nolanguagecolor}
{RGB}
{204,204,204}}
\makeatletter
\renewcommand
{\section}[1]
{\vspace*{2.5ex \@plus 1ex \@minus .2ex}
\parbox[m]
{\hintscolumnwidth}
{\raggedleft
\hintfont
{\color
{sectionrectanglecolor}
\rule
{\hintscolumnwidth}
{2pt}}}
\hspace{\separatorcolumnwidth}%
\parbox[m]
{\maincolumnwidth}
{\sectionstyle{#1}}\\[1ex]}
\setlength{\hintscolumnwidth}{2.5cm}
\def \date[#1.#2]%
{\yearabove
{\monthname[#1]}{#2}--\hspace*{28pt} } % Don't remove the trailing spaces
\def \dates[#1.#2-#3.#4]%
{\yearabove
{\monthname[#1]}{#2}--
\yearabove
{\monthname[#3]}{#4}}
\newcommand{\yearabove}[2]%
{\parbox[t]
{10mm}
{\centering
{#2\par\vspace
{-2mm} \tiny{#1}}}}
% don't use the icons
\renewcommand*{\addresssymbol} {}
\renewcommand*{\mobilephonesymbol} {}
\renewcommand*{\fixedphonesymbol} {}
\renewcommand*{\faxphonesymbol} {}
\renewcommand*{\emailsymbol} {}
\renewcommand*{\homepagesymbol} {}
\renewcommand*{\linkedinsocialsymbol}{}
\renewcommand*{\twittersocialsymbol} {}
\newcommand{\n}{\newline{}}
\newcount\languagecount
\newcommand\languageknowledge[1]
{%
\hbox
{%
\languagecount=0
\loop\ifnum\languagecount<#1
\advance\languagecount1
\textcolor{sectionrectanglecolor}{$\bullet$}%
\repeat
\loop\ifnum\languagecount<5
\advance\languagecount1
\textcolor{nolanguagecolor}{$\bullet$}%
\repeat
}%
}