summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/limecv
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-11-25 20:59:01 +0000
committerKarl Berry <karl@freefriends.org>2017-11-25 20:59:01 +0000
commiteaf5f8406e86635e0c9299c7784662d3f39a2546 (patch)
treebfd92e93988c3620b18e2d0dc713fb0b4482cf87 /Master/texmf-dist/tex/latex/limecv
parent2f6ef1426efcea1eafdd9ca9d5cbd08e0e9726d5 (diff)
limecv (25nov17)
git-svn-id: svn://tug.org/texlive/trunk@45906 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/limecv')
-rw-r--r--Master/texmf-dist/tex/latex/limecv/limecv.cls94
1 files changed, 70 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/latex/limecv/limecv.cls b/Master/texmf-dist/tex/latex/limecv/limecv.cls
index df8962e445e..e0d547ecbc9 100644
--- a/Master/texmf-dist/tex/latex/limecv/limecv.cls
+++ b/Master/texmf-dist/tex/latex/limecv/limecv.cls
@@ -20,7 +20,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{limecv}
- [2017/09/12 v0.1.1 limecv Document class for CVs.]
+ [2017/09/12 v0.1.3 limecv Document class for CVs.]
\RequirePackage{kvoptions}
\DeclareBoolOption[false]{print}
@@ -211,8 +211,9 @@
\NewDocumentCommand{\kleft}{m}{#1}
\fi
\ExplSyntaxOn
+\cs_generate_variant:Nn\tl_item:nn {f}
\DeclareExpandableDocumentCommand{\extract}{mm}{%
- \tl_item:nn { #1 } { #2 }%
+ \tl_item:fn{#1}{#2}%
}
\ExplSyntaxOff
%% \pagenumbering{gobble}
@@ -340,10 +341,13 @@
left=\cvTimeDotSep of cv@title \the\value{cv@titleNext},
cv@headerIcon]
{#2};
+ \node[cv@sectionTitle] at (0,0)
+ (cv@title \the\value{cv@titleNext} dummy) {%
+ \phantom{\cvSection{Education}}};
\begin{scope}[on background layer]
\draw[line width=\cvTitleLineWidth,cvGreen]
- let \p1=(cv@title \the\value{cv@titleNext}%
- .south west),
+ let \p1=(cv@title \the\value{cv@titleNext} %
+ dummy.south west),
\p2=(current page.east) in
(\x1,\y1-\cvTitleLineSpacing) to (\x2,\y1-\cvTitleLineSpacing);
\end{scope}
@@ -409,6 +413,49 @@
\stepcounter{cv@itemNext}
}
}
+\pgfkeys{/@cv/names/.is family,
+ /@cv/names/.unknown/.style = %
+ {\pgfkeyscurrentpath/\pgfkeyscurrentname/%
+ .initial = #1}}
+\NewDocumentCommand{\cv@setEnglish}{}{
+ \pgfkeys{/@cv/names/profile = Profile}%
+ \pgfkeys{/@cv/names/contact = Contact}%
+ \pgfkeys{/@cv/names/languages = Languages}%
+ \pgfkeys{/@cv/names/interests = Interests}%
+ \pgfkeys{/@cv/names/professional = Professional}%
+ \pgfkeys{/@cv/names/personal = Personal}%
+ \pgfkeys{/@cv/names/projects = Projects}%
+ \pgfkeys{/@cv/names/education = Education}%
+ \pgfkeys{/@cv/names/experience = Experience}%
+ \pgfkeys{/@cv/names/references = References}%
+ \pgfkeys{/@cv/names/skills = Skills}%
+}
+\NewDocumentCommand{\cv@setDutch}{}{
+ \pgfkeys{/@cv/names/profile = Profiel}%
+ \pgfkeys{/@cv/names/contact = Gegevens}%
+ \pgfkeys{/@cv/names/languages = Talenkennis}%
+ \pgfkeys{/@cv/names/interests = Interesses}%
+ \pgfkeys{/@cv/names/professional = Professioneel}%
+ \pgfkeys{/@cv/names/personal = Persoonlijk}%
+ \pgfkeys{/@cv/names/projects = Projecten}%
+ \pgfkeys{/@cv/names/education = Opleiding}%
+ \pgfkeys{/@cv/names/experience = Werkervaring}%
+ \pgfkeys{/@cv/names/references = Referenties}%
+ \pgfkeys{/@cv/names/skills = Vaardigheden}%
+}
+\ExplSyntaxOn
+\NewDocumentCommand{\cvSetLanguage}{m}{
+ \str_case:nnF {#1}
+ {
+ {dutch} {\cv@setDutch}
+ {english} {\cv@setEnglish}
+ }
+ {\ClassError{limecv}{Unknown option `#1' for cvLanguage %
+ macro.}{Only `english' and `dutch' are valid options %
+ for this macro.}}
+}
+\ExplSyntaxOff
+\cvSetLanguage{english}
\newif\ifcv@firstskill
\NewDocumentCommand{\cv@skillsTable}{}{}
\NewDocumentCommand{\cvSkillTwo}{mmmm}{%
@@ -456,7 +503,7 @@
\end{tikzpicture}%
}
\NewDocumentEnvironment{cvEducation}{}{%
- \cv@Title{Education}{\faGraduationCap}
+ \cv@Title{\pgfkeysvalueof{/@cv/names/education}}{\faGraduationCap}
\stepcounter{cv@itemPrev}
\stepcounter{cv@itemNext}
\cv@definecvItem
@@ -467,7 +514,7 @@
node (cv@last item \the\value{cv@lastItem}) {};
}
\NewDocumentEnvironment{cvExperience}{}{%
- \cv@Title{Experience}{\faBriefcase}
+ \cv@Title{\pgfkeysvalueof{/@cv/names/experience}}{\faBriefcase}
\stepcounter{cv@itemPrev}
\stepcounter{cv@itemNext}
\cv@definecvItem
@@ -478,7 +525,7 @@
node (cv@last item \the\value{cv@lastItem}) {};
}
\NewDocumentEnvironment{cvSkills}{}{%
- \cv@Title{Skills}{\faStar}
+ \cv@Title{\pgfkeysvalueof{/@cv/names/skills}}{\faStar}
\global\cv@firstskilltrue
}{%
\node[
@@ -493,7 +540,7 @@
(cv@last item \the\value{cv@lastItem}) {};
}
\NewDocumentEnvironment{cvReferences}{}{%
- \cv@Title{References}{\faLink}
+ \cv@Title{\pgfkeysvalueof{/@cv/names/references}}{\faLink}
\node[
below=\cvSectionSep of cv@title \the\value{cv@titlePrev}.%
south west,
@@ -630,7 +677,7 @@
\fi%
}%
}
-\NewDocumentEnvironment{cvSideBar}{}{%
+\NewDocumentEnvironment{cvSidebar}{}{%
\vspace*{\fill}
\vspace*{-0.5\cvMargin}
\begin{tikzpicture}[remember picture,overlay]
@@ -644,7 +691,7 @@
\end{minipage}
\vspace*{\fill}
}
-\NewDocumentEnvironment{cvSideBar*}{}{%
+\NewDocumentEnvironment{cvSidear*}{}{%
\vspace*{\fill}
\vspace*{-0.5\cvMargin}
\begin{tikzpicture}[remember picture,overlay]
@@ -660,7 +707,7 @@
}
\NewDocumentEnvironment{cvProfile}{}{%
\vspace{\cvSectionSBSep}
- \ruleline{Profile}
+ \ruleline{\pgfkeysvalueof{/@cv/names/profile}}
}{%
}
\NewDocumentCommand{\cv@ContactTemplate}{mm}{
@@ -681,7 +728,7 @@
\newif\ifcv@contactfirst
\NewDocumentEnvironment{cvContact}{}{%
\vspace{\cvSectionSBSep}
- \ruleline{Contact}%
+ \ruleline{\pgfkeysvalueof{/@cv/names/contact}}%
\vspace{\cvSectionSBSep}
\global\cv@contactfirstfalse
@@ -815,7 +862,7 @@
\fi
%%%%%%
\vspace{\cvSectionSBSep}
- \ruleline{Interests}%
+ \ruleline{\pgfkeysvalueof{/@cv/names/interests}}%
\vspace{\cvSectionSBSep}
}{%
\cv@interestClose
@@ -902,7 +949,7 @@
}
\NewDocumentEnvironment{cvProjects}{}{%
\vspace{\cvSectionSBSep}
- \ruleline{Projects}%
+ \ruleline{\pgfkeysvalueof{/@cv/names/projects}}%
\vspace{\cvSectionSBSep}
\cv@definecvProject
\begin{tikzpicture}[every node/.style={inner sep=0cm,outer sep=0cm}]
@@ -923,7 +970,7 @@
\stepcounter{cv@languages}
}%
\vspace{\cvSectionSBSep}
- \ruleline{Languages}%
+ \ruleline{\pgfkeysvalueof{/@cv/names/languages}}%
\vspace{\cvSectionSBSep}
\begin{tikzpicture}[%
every node/.style={text depth=0pt,inner sep=0pt,outer sep=0pt}]
@@ -996,6 +1043,7 @@
}
}
\NewDocumentEnvironment{cvCoverLetter}{}{%
+ \newgeometry{textwidth=\cvCoverLetterWidth,noheadfoot}
\begin{tikzpicture}[%
remember picture,
overlay,
@@ -1034,18 +1082,15 @@
($(cv cover letter name.south east)+(0,-\cvCoverLetterLineSpacing)$);
\end{scope}
\end{tikzpicture}
- \vspace{\dimexpr\cvCoverLetterHeight\relax}
+ \vspace{\dimexpr\cvCoverLetterHeight-1in-\topmargin\relax}
- \begin{center}
- \begin{minipage}{\cvCoverLetterWidth}
- \today
+ \today
- \vspace{\baselineskip}
- \cv@definecvBeneficiary
- \cv@definecvFullName
+ \vspace{\baselineskip}
+ \cv@definecvBeneficiary
+ \cv@definecvFullName
}{%
- \end{minipage}
- \end{center}
+ \restoregeometry
}
\pgfkeys{/@cv/info/.is family,
/@cv/info/.unknown/.style = %
@@ -1067,6 +1112,7 @@
\end{tikzpicture}\\
}
{\LARGE
+ \vspace{\cvIDNameSep}
#1
\vspace{\cvIDNameSep}
#2}