diff options
author | Karl Berry <karl@freefriends.org> | 2014-07-12 22:22:08 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-07-12 22:22:08 +0000 |
commit | 19b2d7d90094fbc85b6282f6be53e4bb10f6ab70 (patch) | |
tree | a6ec1c33451026c28694ff5fc54420abdc768101 /Master/texmf-dist/tex/latex | |
parent | f89df87bd91c2b2d85ca74b1bd348b08874c98dc (diff) |
cv4tw (12jul14)
git-svn-id: svn://tug.org/texlive/trunk@34577 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
6 files changed, 151 insertions, 64 deletions
diff --git a/Master/texmf-dist/tex/latex/cv4tw/cv4tw-scheme.sty b/Master/texmf-dist/tex/latex/cv4tw/cv4tw-scheme.sty index 3825abe78da..5d66f3a1d56 100644 --- a/Master/texmf-dist/tex/latex/cv4tw/cv4tw-scheme.sty +++ b/Master/texmf-dist/tex/latex/cv4tw/cv4tw-scheme.sty @@ -96,6 +96,11 @@ \setmystyle[missionbullet] {\color{missionbullet}$\rhd$} \setmystyle[mission] {\mystyle[default]} +% Field items style +\setmystyle[field] {\mystyle[default]\color{main}} +\setmystyle[fieldrateempty] {\mystyle[icons]\faStarEmpty} +\setmystyle[fieldratefull] {\mystyle[icons]\faStar} + % Skills items style \setmystyle[cvskillname] {\mystyle[default]\color{main}} \setmystyle[cvskilldescription] {\mystyle[default]} @@ -114,6 +119,16 @@ \setmystyle[fax]{\mystyle[cvcontact]} \setmystyle[age]{\mystyle[cvcontact]} \setmystyle[vk]{\mystyle[cvcontact]} +\setmystyle[custom0]{\mystyle[cvcontact]} +\setmystyle[custom1]{\mystyle[cvcontact]} +\setmystyle[custom2]{\mystyle[cvcontact]} +\setmystyle[custom3]{\mystyle[cvcontact]} +\setmystyle[custom4]{\mystyle[cvcontact]} +\setmystyle[custom5]{\mystyle[cvcontact]} +\setmystyle[custom6]{\mystyle[cvcontact]} +\setmystyle[custom7]{\mystyle[cvcontact]} +\setmystyle[custom8]{\mystyle[cvcontact]} +\setmystyle[custom9]{\mystyle[cvcontact]} \setmystyle[pinterest]{\mystyle[cvcontact]} \setmystyle[homepage]{\mystyle[cvcontact]} \setmystyle[homepagessl]{\mystyle[cvcontact]} @@ -121,6 +136,16 @@ \setmystyle[address]{\mystyle[cvcontact]\scshape} \setmystyle[spokenlanguages]{\mystyle[cvcontact]\scshape} %Contact bullets +\setmystyle[custom0bullet]{{\mystyle[icons]-}} +\setmystyle[custom1bullet]{{\mystyle[icons]-}} +\setmystyle[custom2bullet]{{\mystyle[icons]-}} +\setmystyle[custom3bullet]{{\mystyle[icons]-}} +\setmystyle[custom4bullet]{{\mystyle[icons]-}} +\setmystyle[custom5bullet]{{\mystyle[icons]-}} +\setmystyle[custom6bullet]{{\mystyle[icons]-}} +\setmystyle[custom7bullet]{{\mystyle[icons]-}} +\setmystyle[custom8bullet]{{\mystyle[icons]-}} +\setmystyle[custom9bullet]{{\mystyle[icons]-}} \setmystyle[githubbullet]{{\mystyle[icons]\faGithub}} \setmystyle[linkedinbullet]{{\mystyle[icons]\faLinkedin}} \setmystyle[twitterbullet]{{\mystyle[icons]\faTwitter}} @@ -139,5 +164,6 @@ \setmystyle[addressbullet]{{\mystyle[icons]\faHome}} \setmystyle[agebullet]{{\mystyle[icons]\faCalendar}} \setmystyle[spokenlanguagesbullet]{{\mystyle[icons]\faComments}} +\setmystyle[fieldbullet]{{\mystyle[icons]\faComments}} \endinput diff --git a/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-compact.sty b/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-compact.sty index f6d03588ea0..2d38f9d310d 100644 --- a/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-compact.sty +++ b/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-compact.sty @@ -1,9 +1,12 @@ -\RequirePackage{picins} - +\RequirePackage{boxedminipage} +%\RequirePackage{wrapfig} +%\RequirePackage{picinpar} +\newgeometry{left=1cm,top=1cm,bottom=1cm,right=1cm} %Useful lengths \newlength{\cvpicturewidth}\setlength{\cvpicturewidth}{3.2cm} \setlength{\cvleftwidth}{4cm} \setlength{\cvrightwidth}{8cm} +\setlength{\sectionrule}{13cm} \newlength{\cvtitlecolumnwidth}\setlength{\cvtitlecolumnwidth}{5.5cm} \newlength{\cvmaincolumnwidth}\setlength{\cvmaincolumnwidth}{13cm} \newlength{\cvtitlewidth}\setlength{\cvtitlewidth}{10cm} @@ -16,11 +19,22 @@ % Set \emph command with "em" color \DeclareTextFontCommand{\emph}{\color{main}} +\fancypagestyle{cvcompact}{ + \renewcommand{\headrulewidth}{0pt} + \renewcommand{\footrulewidth}{0pt} + \fancyhf{} +% \lfoot{\mystyle[footnote]\@cvfirstname~\@cvlastname} +% \cfoot{\mystyle[footnote]\@ifundefined{@cvtitle}{}{\@cvtitle}} +% \rfoot{\mystyle[footnote]\thepage/\pageref{LastPage}} +} +\pagestyle{cvcompact} + +\AtBeginDocument{\AtBeginShipoutNext{\AtBeginShipoutDiscard}} \renewcommand*{\maketitle}{ - {\mystyle[name]\@cvfirstname~\@cvlastname\\[0.5em]} -\parpic[lt]{ - \begin{minipage}{\cvtitlecolumnwidth} + \noindent + \begin{minipage}[t]{\cvtitlecolumnwidth} + {\mystyle[name]\@cvfirstname~\@cvlastname}\\ \@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]} @@ -35,29 +49,19 @@ \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} +\cvcontactszone[main] +\cvcontactszone[social] +\cvcontactszone[extra] \end{tabular} \end{minipage} -} + \hfill + \noindent +\begin{minipage}[t]{\cvmaincolumnwidth} } +\AtEndDocument{ %\end{minipage}} + \end{minipage} +} \renewcommand*{\renderasset}[1]{ \mystyle[assetbullet]&\begin{tabular}[t]{>{\mystyle[asset]}l}\cvasset[#1]\end{tabular}\\[0.3em]} diff --git a/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-core.sty b/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-core.sty index 27ba36c8163..24011b03451 100644 --- a/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-core.sty +++ b/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-core.sty @@ -9,13 +9,49 @@ \RequirePackage{fontawesome} \RequirePackage{realboxes} \RequirePackage{array} +\RequirePackage{forloop} + +\setcvcontactszone[main]{% +\rendercontactifdefined{custom0}% +\rendercontactifdefined{custom1}% +\rendercontactifdefined{custom2}% +\rendercontactifdefined{email}% +\rendercontactifdefined{homepage}% +\rendercontactifdefined{homepagessl}% +\rendercontactifdefined{customhomepage}% +\rendercontactifdefined{cellphone}% +\rendercontactifdefined{phone}% +\rendercontactifdefined{fax}% +}% + +\setcvcontactszone[social]{% +\rendercontactifdefined{custom3}% +\rendercontactifdefined{custom4}% +\rendercontactifdefined{custom5}% +\rendercontactifdefined{github}% +\rendercontactifdefined{linkedin}% +\rendercontactifdefined{twitter}% +\rendercontactifdefined{googleplus}% +\rendercontactifdefined{facebook}% +\rendercontactifdefined{vk}% +\rendercontactifdefined{pinterest}% +}% +\setcvcontactszone[extra]{% +\rendercontactifdefined{custom6}% +\rendercontactifdefined{custom7}% +\rendercontactifdefined{custom8}% +\rendercontactifdefined{custom9}% +\rendercontactifdefined{age}% +\rendercontactifdefined{spokenlanguages}% +\rendercontactifdefined{address}% +}% \AtBeginDocument{\maketitle} % Set \emph command with "em" color \DeclareTextFontCommand{\emph}{\color{main}} -% Default header +% Default header & footer \fancypagestyle{cvsimple}{ \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} @@ -30,9 +66,17 @@ %Useful lengths \newlength{\cvleftwidth}\setlength{\cvleftwidth}{4.5cm} \newlength{\cvrightwidth}\setlength{\cvrightwidth}{14cm} +\newlength{\cvfielditemparskip}\setlength{\cvfielditemparskip}{0.5em} \newlength{\cvskillitemparskip}\setlength{\cvskillitemparskip}{-0.8em} \newlength{\cvmissionsitemsep}\setlength{\cvmissionsitemsep}{0em} +\newlength{\cvfieldsep}\setlength{\cvfieldsep}{0em} +\newlength{\sectionrule}\setlength{\sectionrule}{\textwidth} +\setlength{\parindent}{0cm} +\newcounter{currentrate} +\newcounter{fieldsbyrow} +\newcounter{maxrate} +\newcounter{fieldscurrentcolumn} % Set \emph command with "em" color \DeclareTextFontCommand{\emph}{\color{main}} @@ -41,7 +85,7 @@ \needspace{4\baselineskip} \begin{center} {\mystyle[sectiontitle] #1}\\[-0.8em] - {\color{sectionrule}\rule{\textwidth}{0.05pt}} + {\color{sectionrule}\rule{\sectionrule}{0.05pt}} \end{center} } @@ -67,10 +111,46 @@ {\mystyle[cvstorydescription] #5} \fi \end{minipage} - \\ \end{flushleft} } +% Rate fields related to a profile +\renewenvironment*{fields}[3]{ + \setcounter{fieldsbyrow}{#2} + \addtocounter{fieldsbyrow}{-1} + \setcounter{maxrate}{#3} + \addtocounter{maxrate}{-1} + \setcounter{fieldscurrentcolumn}{0} + \newcommand{\formatfieldcell}[2]{ + \makeatletter + \ifnum\value{fieldscurrentcolumn}=\value{fieldsbyrow} + \setcounter{fieldscurrentcolumn}{0} + \expandafter\@firstoftwo + \else + \stepcounter{fieldscurrentcolumn} + \expandafter\@secondoftwo + \fi + {{\mystyle[field] ##1} & ##2 \\[\cvfielditemparskip] } + {{\mystyle[field] ##1} & ##2 & } + + \makeatother + } + + \newcommand*{\field}[2]{ + \formatfieldcell{##1}{ + \forloop{currentrate}{0}{\value{currentrate} < #3}{ + \ifnum##2>\value{currentrate}\mystyle[fieldratefull]\else\mystyle[fieldrateempty]\fi + } + } + } + \begin{minipage}[t]{\textwidth} + {\hspace*{\cvleftwidth}\mystyle[subsectiontitle] #1}\\[1.5em] + \begin{tabular}[t]{*{#2}{rl}} +}{ + \end{tabular}\\[2em] + \end{minipage} +} + % Describe missions related to a job \renewenvironment*{missions}{ \begin{list}{\mystyle[missionbullet]}{ \setlength{\itemsep}{\cvmissionsitemsep} \setlength{\leftmargin}{2em}\mystyle[mission] } diff --git a/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-sharp.sty b/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-sharp.sty index 934a886923c..d65974a3be9 100644 --- a/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-sharp.sty +++ b/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-sharp.sty @@ -7,6 +7,8 @@ \newlength{\cvassetspanelleftmargin}\setlength{\cvassetspanelleftmargin}{1cm} \newlength{\cvcontactpanelwidth}\setlength{\cvcontactpanelwidth}{7cm} +\DeclareTextFontCommand{\emph}{\color{main}} + \renewcommand*{\maketitle}{ \DeclareTextFontCommand{\emph}{\color{contrastmain}} \colorlet{iconstemp}{icons} @@ -36,32 +38,17 @@ \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} +\cvcontactszone[main] \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} +\cvcontactszone[social] \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} +\cvcontactszone[extra] \end{tabular} \end{minipage}\\ \\[1em] @@ -75,4 +62,5 @@ \renewcommand*{\rendercontactifdefined}[1]{\ifcvcontact[#1]{\rendercontact{#1}}{\ignorespaces}} + \endinput diff --git a/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-simple.sty b/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-simple.sty index dfda6b821e0..129b00eb903 100644 --- a/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-simple.sty +++ b/Master/texmf-dist/tex/latex/cv4tw/cv4tw-theme-simple.sty @@ -38,23 +38,9 @@ \begin{minipage}[!t]{\cvcontactpanelwidth} \begin{flushright} \begin{tabular}{@{}c@{}l@{}} - \rendercontactifdefined{email} - \rendercontactifdefined{homepage} - \rendercontactifdefined{homepagessl} - \rendercontactifdefined{customhomepage} - \rendercontactifdefined{cellphone} - \rendercontactifdefined{phone} - \rendercontactifdefined{fax} - \rendercontactifdefined{github} - \rendercontactifdefined{linkedin} - \rendercontactifdefined{twitter} - \rendercontactifdefined{googleplus} - \rendercontactifdefined{vk} - \rendercontactifdefined{pinterest} - \rendercontactifdefined{facebook} - \rendercontactifdefined{age} - \rendercontactifdefined{spokenlanguages} - \rendercontactifdefined{address} + \cvcontactszone[main] + \cvcontactszone[social] + \cvcontactszone[extra] \end{tabular} \end{flushright} \end{minipage} diff --git a/Master/texmf-dist/tex/latex/cv4tw/cv4tw.cls b/Master/texmf-dist/tex/latex/cv4tw/cv4tw.cls index f999d5002d6..e0fb3c4a56d 100644 --- a/Master/texmf-dist/tex/latex/cv4tw/cv4tw.cls +++ b/Master/texmf-dist/tex/latex/cv4tw/cv4tw.cls @@ -2,7 +2,7 @@ \NeedsTeXFormat{LaTeX2e} \LoadClassWithOptions{article} -\ProvidesClass{cv4tw}[2014/01/19 v0.1 LaTeX CV class, with assets, social networks, and customizable styles] +\ProvidesClass{cv4tw}[2014/05/27 v0.2 LaTeX CV class, with assets, social networks, and customizable styles] \RequirePackage{newenviron} \RequirePackage{etoolbox} \RequirePackage{xcolor} @@ -87,13 +87,15 @@ \newcommand*{\setcvasset}[2][]{\expandafter\qdset{cvasset#1}{#2}} \newcommand*{\cvasset}[1][]{\qdget{cvasset#1}} \newcommand*{\ifcvasset}[3][]{\qdif{cvasset#1}{#2}{#3}} +\newcommand*{\setcvcontactszone}[2][]{\expandafter\qdset{cvcontactszone#1}{#2}} +\newcommand*{\cvcontactszone}[1][]{\qdget{cvcontactszone#1}} \newcommand*{\setcvcontact}[2][]{\expandafter\qdset{cvcontact#1}{#2}} \newcommand*{\cvcontact}[1][]{\qdget{cvcontact#1}} \newcommand*{\cvcontactlink}[1]{ \IfEqCase{#1}{ {email}{ \qdlink{mailto:}{cvcontact#1}{}}% {homepage}{ \qdlink{http://}{cvcontact#1}{}}% -{homepagessl}{ \qdlink{http://}{cvcontact#1}{}}% +{homepagessl}{ \qdlink{https://}{cvcontact#1}{}}% {customhomepage}{ \qdlink{}{cvcontact#1}{}}% {vk}{ \qdlink{http://www.vk.com/}{cvcontact#1}{}}% {pinterest}{ \qdlink{http://www.pinterest.com/}{cvcontact#1}{}}% @@ -120,6 +122,7 @@ \newcommand*{\rendercontact}{ } \newcommand*{\rendercontactifdefined}{ } +\newenvironment{fields}[3]{ }{ } \newenvironment{missions}{ }{ } \newenvironment{skills}[1]{ }{ } |