-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcv-stylish.sty
More file actions
54 lines (47 loc) · 1.28 KB
/
cv-stylish.sty
File metadata and controls
54 lines (47 loc) · 1.28 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
% identification
\ProvidesPackage{cv-stylish}
% package loading
\usepackage{tikz}
\usetikzlibrary{positioning}
\usepackage{environ}
% main code
\NewEnviron{InfoTable}{%
\begin{tikzpicture}
\node (table) [inner sep=2mm] {
\begin{tabularx}{0.97\linewidth}{>{\raggedleft\scshape}p{2cm}X}
\BODY
\end{tabularx}
};
% \clip [rounded corners=.5cm] (0,0) rectangle coordinate (centerpoint) (5,7.5cm);
\draw [gray, rounded corners=1mm, line width=0mm, fill=gray, opacity=.1]
(table.north west) rectangle (table.south east);
\end{tikzpicture}
}
\NewEnviron{JobTable}{%
\begin{tikzpicture}
\node (table) [inner sep=2mm] {
\begin{tabularx}{0.97\linewidth}{>{\scshape}p{6cm}X}
\BODY
\end{tabularx}
};
% \clip [rounded corners=.5cm] (0,0) rectangle coordinate (centerpoint) (5,7.5cm);
\draw [gray, rounded corners=1mm, line width=0mm, fill=gray, opacity=.1]
(table.north west) rectangle (table.south east);
\end{tikzpicture}
}
\NewEnviron{InfoBody}{%
\vspace{-0.8\parskip}
\begin{adjustwidth}{0.015\linewidth}{0.015\linewidth}
\BODY
\end{adjustwidth}
}
\newcommand*{\IconUrl}[2]{
\begin{tikzpicture}
\node (icon) {
\Large#1
};
\node[right=0.5em of icon] (url) {
#2
};
\end{tikzpicture}
}