summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-compact.sty
blob: f6d03588ea05748cc6efce3c2bab547ff1625b12 (plain)
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
\RequirePackage{picins}

%Useful lengths
\newlength{\cvpicturewidth}\setlength{\cvpicturewidth}{3.2cm}
\setlength{\cvleftwidth}{4cm}
\setlength{\cvrightwidth}{8cm}
\newlength{\cvtitlecolumnwidth}\setlength{\cvtitlecolumnwidth}{5.5cm}
\newlength{\cvmaincolumnwidth}\setlength{\cvmaincolumnwidth}{13cm}
\newlength{\cvtitlewidth}\setlength{\cvtitlewidth}{10cm}
\newlength{\cvnamewidth}\setlength{\cvnamewidth}{8cm}
\newlength{\cvassetspanelwidth}\setlength{\cvassetspanelwidth}{12cm}
\newlength{\cvassetitemsep}\setlength{\cvassetitemsep}{0em}
\newlength{\cvassetspanelleftmargin}\setlength{\cvassetspanelleftmargin}{0cm}
\newlength{\cvcontactpanelwidth}\setlength{\cvcontactpanelwidth}{7cm}

% Set \emph command with "em" color
\DeclareTextFontCommand{\emph}{\color{main}}


\renewcommand*{\maketitle}{
	{\mystyle[name]\@cvfirstname~\@cvlastname\\[0.5em]}
\parpic[lt]{
	\begin{minipage}{\cvtitlecolumnwidth}
	\@ifundefined{@cvpicture}{}{\centering\begin{minipage}[m]{\cvpicturewidth}\fboxsep=1mm\fboxrule=0.05pt\fcolorbox{black}{white}{\includegraphics[keepaspectratio=true,width=\cvpicturewidth]{\@cvpicture}}\end{minipage}\\}
	\@ifundefined{@cvtitle}{}{{\mystyle[title]\@cvtitle}\\[0.5em]}
	\@ifundefined{@cvquote}{}{{\mystyle[quote]\@cvquote}\\[0.5em]}
\begin{tabular}{@{}c@{}l@{}}\\
\renderassetifdefined{0}
\renderassetifdefined{1}
\renderassetifdefined{2}
\renderassetifdefined{3}
\renderassetifdefined{4}
\renderassetifdefined{5}
\renderassetifdefined{6}
\renderassetifdefined{7}
\renderassetifdefined{8}
\renderassetifdefined{9}\\
\rendercontactifdefined{email}
\rendercontactifdefined{homepage}
\rendercontactifdefined{homepagessl}
\rendercontactifdefined{customhomepage}
\rendercontactifdefined{cellphone}
\rendercontactifdefined{phone}
\rendercontactifdefined{fax}
\rendercontactifdefined{github}
\rendercontactifdefined{linkedin}
\rendercontactifdefined{twitter}
\rendercontactifdefined{googleplus}
\rendercontactifdefined{facebook}
\rendercontactifdefined{vk}
\rendercontactifdefined{pinterest}
%\rendercontactifdefined{skype} %% Not yet supported by fontawesome
\rendercontactifdefined{age}
\rendercontactifdefined{spokenlanguages}
\rendercontactifdefined{address}
\end{tabular}
	\end{minipage}
}
}


\renewcommand*{\renderasset}[1]{ \mystyle[assetbullet]&\begin{tabular}[t]{>{\mystyle[asset]}l}\cvasset[#1]\end{tabular}\\[0.3em]}

\renewcommand*{\renderassetifdefined}[1]{\ifcvasset[#1]{\renderasset{#1}}{\ignorespaces}}

\renewcommand*{\rendercontact}[1]{
\mystyle[#1bullet]&\begin{tabular}[t]{>{\mystyle[#1]}l}
\cvcontactlink{#1}
\end{tabular}\\[0.3em]
}

\renewcommand*{\rendercontactifdefined}[1]{\ifcvcontact[#1]{\rendercontact{#1}}{\ignorespaces}}

\endinput