-
Notifications
You must be signed in to change notification settings - Fork 0
/
developercv.cls
169 lines (127 loc) · 4.21 KB
/
developercv.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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
%----------------------------------------------------------------------------------------
% class configuration
%----------------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{developercv}[2021/01/24 developer-cv class v1.0]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{extarticle}}
\ProcessOptions\relax
\LoadClass{extarticle}
%----------------------------------------------------------------------------------------
% packages and other document configuration
%----------------------------------------------------------------------------------------
\setlength{\parindent}{0mm}
\usepackage[hidelinks]{hyperref}
\pagestyle{empty}
\usepackage{moresize}
%----------------------------------------------------------------------------------------
% page layout
%----------------------------------------------------------------------------------------
\usepackage{geometry}
\geometry{
paper=a4paper,
top=1.75cm,
bottom=1.75cm,
left=2cm,
right=2cm,
headheight=0.75cm,
footskip=1cm,
headsep=0.5cm,
%showframe, % Uncomment to show how the type block is set on the page
}
%----------------------------------------------------------------------------------------
% fonts
%----------------------------------------------------------------------------------------
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[default]{raleway}
\renewcommand*\familydefault{\sfdefault}
\usepackage{fontawesome}
\newcommand{\icon}[3]{
\vcenteredhbox{\colorbox{black}{\makebox(#2, #2){\textcolor{white}{\large\csname fa#1\endcsname}}}}
\hspace{0.2cm}
\vcenteredhbox{\textcolor{black}{#3}}
}
%----------------------------------------------------------------------------------------
% graphics definitions
%----------------------------------------------------------------------------------------
\usepackage{tikz}
\usetikzlibrary{shapes, backgrounds}
\tikzset{x=1cm, y=1cm}
\newcommand{\vcenteredhbox}[1]{
\begingroup
\setbox0=\hbox{#1}\parbox{\wd0}{\box0}
\endgroup
}
%----------------------------------------------------------------------------------------
% charts
%----------------------------------------------------------------------------------------
\newcounter{barcount}
\newenvironment{barchart}[1]{
\newcommand{\barwidth}{0.35}
\newcommand{\barsep}{0.2}
\newcommand{\baritem}[2]{
\pgfmathparse{##2}
\let\perc\pgfmathresult
\pgfmathparse{#1}
\let\barsize\pgfmathresult
\pgfmathparse{\barsize*##2/100}
\let\barone\pgfmathresult
\pgfmathparse{(\barwidth*\thebarcount)+(\barsep*\thebarcount)}
\let\barx\pgfmathresult
\filldraw[fill=black, draw=none] (0,-\barx) rectangle (\barone,-\barx-\barwidth);
\node [label=180:\colorbox{black}{\textcolor{white}{##1}}] at (0,-\barx-0.175) {};
\addtocounter{barcount}{1}
}
\begin{tikzpicture}
\setcounter{barcount}{0}
}{
\end{tikzpicture}
}
%------------------------------------------------
\newcounter{a}
\newcounter{b}
\newcounter{c}
\newcommand{\bubbles}[1]{
\setcounter{a}{0}
\setcounter{c}{150}
\begin{tikzpicture}[scale=3]
\foreach \p/\t in {#1} {
\addtocounter{a}{1}
\bubble{\thea/2}{\theb}{\p/25}{\t}{1\p0}
}
\end{tikzpicture}
}
\newcommand{\bubble}[5]{
\filldraw[fill=black, draw=none] (#1,0.5) circle (#3);
\node[label=\textcolor{black}{#4}] at (#1,0.7) {};
}
%----------------------------------------------------------------------------------------
% custom sections
%----------------------------------------------------------------------------------------
\newcommand{\cvsect}[1]{
\vspace{\baselineskip}
\colorbox{black}{\textcolor{white}{\MakeUppercase{\textbf{#1}}}}\\
}
%----------------------------------------------------------------------------------------
% entry list
%----------------------------------------------------------------------------------------
\usepackage{longtable}
\setlength{\LTpre}{0pt}
\setlength{\LTpost}{0pt}
\setlength{\tabcolsep}{0pt}
\newenvironment{entrylist}{
\begin{longtable}[H]{l l}
}{
\end{longtable}
}
\newcommand{\entry}[4]{
\parbox[t]{0.175\textwidth}{
#1
}
&\parbox[t]{0.825\textwidth}{
\textbf{#2}
\hfill
{\footnotesize \textbf{\textcolor{black}{#3}}}\\
#4
}\\\\}
\newcommand{\slashsep}{\hspace{3mm}/\hspace{3mm}}