diff options
author | Karl Berry <karl@freefriends.org> | 2014-01-19 21:54:11 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-01-19 21:54:11 +0000 |
commit | 2c3d34694bd4e8ce33c94da676c69fcdffb4a045 (patch) | |
tree | 1fda4b7f7116beed215d6e81702f9c6812c4e511 /Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-sharp.sty | |
parent | 20379a560da3cbc49178537f3eecbfc8b21581d3 (diff) |
cv4tw (19jan14)
git-svn-id: svn://tug.org/texlive/trunk@32719 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-sharp.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-sharp.sty | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-sharp.sty b/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-sharp.sty new file mode 100644 index 00000000000..934a886923c --- /dev/null +++ b/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-sharp.sty @@ -0,0 +1,78 @@ +%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} + +\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@{}} + \rendercontactifdefined{email} + \rendercontactifdefined{homepage} + \rendercontactifdefined{homepagessl} + \rendercontactifdefined{customhomepage} + \rendercontactifdefined{cellphone} + \rendercontactifdefined{phone} + \rendercontactifdefined{fax} +\end{tabular} + \end{minipage} +\hfill + \begin{minipage}[t]{0.3\textwidth} \begin{tabular}[t]{@{}c@{}l@{}} + \rendercontactifdefined{github} + \rendercontactifdefined{linkedin} + \rendercontactifdefined{twitter} + \rendercontactifdefined{googleplus} + \rendercontactifdefined{facebook} + \rendercontactifdefined{vk} + \rendercontactifdefined{pinterest} +\end{tabular} + \end{minipage} + \DeclareTextFontCommand{\emph}{\color{main}} +\hfill + \begin{minipage}[t]{0.3\textwidth} \begin{tabular}[t]{@{}c@{}l@{}} + \rendercontactifdefined{age} + \rendercontactifdefined{spokenlanguages} + \rendercontactifdefined{address} +\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 |