summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-sharp.sty
blob: d65974a3be96325d5e038194a6f607c2e046b0ab (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
%Useful lengths
\newlength{\cvtitlewidth}\setlength{\cvtitlewidth}{8cm}
\newlength{\cvnamewidth}\setlength{\cvnamewidth}{6cm}
\newlength{\cvpicturewidth}\setlength{\cvpicturewidth}{2.4cm}
\newlength{\cvassetspanelwidth}\setlength{\cvassetspanelwidth}{12cm}
\newlength{\cvassetitemsep}\setlength{\cvassetitemsep}{0.4em}
\newlength{\cvassetspanelleftmargin}\setlength{\cvassetspanelleftmargin}{1cm}
\newlength{\cvcontactpanelwidth}\setlength{\cvcontactpanelwidth}{7cm}

\DeclareTextFontCommand{\emph}{\color{main}}

\renewcommand*{\maketitle}{
	\DeclareTextFontCommand{\emph}{\color{contrastmain}}
	\colorlet{iconstemp}{icons}
	\colorlet{icons}{contrast}
	\hspace*{-1\marginparwidth}\colorbox{title}{\hspace*{\marginparwidth}\begin{minipage}{\paperwidth}
	\@ifundefined{@cvpicture}{}{\begin{minipage}[m]{\cvpicturewidth}\fboxsep=1mm\fboxrule=0.05pt\fcolorbox{black}{white}{\includegraphics[keepaspectratio=true,width=\cvpicturewidth]{\@cvpicture}}\end{minipage}\hspace{2ex}}
	\begin{minipage}[m]{\cvtitlewidth}
	\mystyle[name]\color{contrast}{\@ifundefined{@cvacademictitle}{}{\small\@cvacademictitle~}}\@cvfirstname~\@cvlastname
	\@ifundefined{@cvtitle}{}{{\\\mystyle[title]\color{contrast}\@cvtitle}}
	\end{minipage}\hfill
	\begin{minipage}[m]{\cvassetspanelwidth}
		\ifcvasset[0]{\begin{list}{\mystyle[assetbullet]}{\setlength{\leftmargin}{\cvassetspanelleftmargin}}
\setlength{\itemsep}{\cvassetitemsep}
\renderassetifdefined{0}
\renderassetifdefined{1}
\renderassetifdefined{2}
\renderassetifdefined{3}
\renderassetifdefined{4}
\renderassetifdefined{5}
\renderassetifdefined{6}
\renderassetifdefined{7}
\renderassetifdefined{8}
\renderassetifdefined{9}
\end{list}}{}
	\end{minipage}
	\end{minipage}}\\[3ex]
	\colorlet{icons}{iconstemp}
	\@ifundefined{@cvquote}{}{{\centering\mystyle[quote]\@cvquote\\[2ex]}}
	\begin{minipage}[t]{0.3\textwidth} \begin{tabular}[t]{@{}c@{}l@{}}
\cvcontactszone[main]
\end{tabular}
	\end{minipage}
\hfill
	\begin{minipage}[t]{0.3\textwidth} \begin{tabular}[t]{@{}c@{}l@{}}
\cvcontactszone[social]
\end{tabular}
	\end{minipage}
\hfill
	\begin{minipage}[t]{0.3\textwidth} \begin{tabular}[t]{@{}c@{}l@{}}
\cvcontactszone[extra]
\end{tabular}
	\end{minipage}\\
\\[1em]
}

\renewcommand*{\renderasset}[1]{\item{\mystyle[asset]\color{contrast} \cvasset[#1]}}

\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