texlive[45906] Master/texmf-dist: limecv (25nov17)

commits+karl at tug.org commits+karl at tug.org
Sat Nov 25 21:59:02 CET 2017


Revision: 45906
          http://tug.org/svn/texlive?view=revision&revision=45906
Author:   karl
Date:     2017-11-25 21:59:01 +0100 (Sat, 25 Nov 2017)
Log Message:
-----------
limecv (25nov17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/limecv/README.md
    trunk/Master/texmf-dist/doc/latex/limecv/examples/mwe-latex.pdf
    trunk/Master/texmf-dist/doc/latex/limecv/examples/mwe-latex.tex
    trunk/Master/texmf-dist/doc/latex/limecv/examples/mwe-lualatex.pdf
    trunk/Master/texmf-dist/doc/latex/limecv/examples/mwe-lualatex.tex
    trunk/Master/texmf-dist/doc/latex/limecv/examples/mwe-xelatex.pdf
    trunk/Master/texmf-dist/doc/latex/limecv/examples/mwe-xelatex.tex
    trunk/Master/texmf-dist/doc/latex/limecv/limecv.pdf
    trunk/Master/texmf-dist/source/latex/limecv/limecv.dtx
    trunk/Master/texmf-dist/source/latex/limecv/limecv.ins
    trunk/Master/texmf-dist/tex/latex/limecv/limecv.cls

Modified: trunk/Master/texmf-dist/doc/latex/limecv/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/limecv/README.md	2017-11-25 20:58:47 UTC (rev 45905)
+++ trunk/Master/texmf-dist/doc/latex/limecv/README.md	2017-11-25 20:59:01 UTC (rev 45906)
@@ -11,14 +11,16 @@
   <img src="images/cover_letter.png" alt-="cover letter example" width="300px"/>
 </div>
 
+`limecv` offers support for a bio/profile, contact details, language skills, (general) skills, projects, education, experience and references. It also features a custom cover letter design. 
+
 ## Installation
 
-The package is available from CTAN, to install this document class using your favourite package manager. 
+The package is [available from CTAN](https://ctan.org/pkg/limecv), so you should use a package manager to install this package.
 
 After installing this package, make sure you have the following fonts installed:
 
 * [FontAwesome][FA]
-* [Fira][fira]
+* [Fira][fira] (only needed when using XeLaTeX/LuaLaTeX)
 
 The following packages need to be installed on your system. They are all available on CTAN: 
 `kvoptions`,
@@ -40,7 +42,7 @@
 
 ## Documentation
 
-The class documentation can be found on CTAN.
+The class documentation can be found on [CTAN](http://mirrors.ctan.org/macros/latex/contrib/limecv/limecv.pdf).
 
 Alternatively, the documentation can also be created by running `pdflatex limecv.dtx`.
 
@@ -48,18 +50,6 @@
 
 To compile the examples in `/examples/`, install the package from CTAN or compile from source by running: `pdflatex limecv.ins` and copy the resulting `limecv.cls` file to the `/examples/` folder.
 
-## Roadmap
-
-Below is a list of upcoming features and important to-d items. After these have been resolved, the first stable release will be released.
-
-- [x] Publish to CTAN.
-- [x] Initial release.
-- [x] LuaLaTeX support.
-- [x] LaTeX support.
-- [ ] Cleaned code.
-- [x] `.dtx` source code format.
-- [ ] Real testing by third party.
-
 ## Licence
 
 LPPL v1.3c See LICENSE file.

Modified: trunk/Master/texmf-dist/doc/latex/limecv/examples/mwe-latex.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/limecv/examples/mwe-latex.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/limecv/examples/mwe-latex.tex	2017-11-25 20:58:47 UTC (rev 45905)
+++ trunk/Master/texmf-dist/doc/latex/limecv/examples/mwe-latex.tex	2017-11-25 20:59:01 UTC (rev 45906)
@@ -27,6 +27,7 @@
   
   % Defaults used in template design.
   \usepackage[margin=\cvMargin,noheadfoot]{geometry}
+  \cvSetLanguage{dutch}
   
   % For cover letter.
   \usepackage{lipsum}
@@ -34,7 +35,7 @@
   \begin{document}
   
   % Design of side bar.
-  \begin{cvSideBar}
+  \begin{cvSidebar}
     \cvID{John}{Doe}{picture}{position}
   
     \begin{cvProfile}
@@ -71,7 +72,7 @@
       \cvProject[image=limecv-icon,width=1cm,link=https://github.com/opieters/limecv]{\texttt{limecv}}{A \LaTeX\ CV document class.}
     \end{cvProjects}
     
-  \end{cvSideBar}
+  \end{cvSidebar}
 
   \begin{cvMainContent}
 

Modified: trunk/Master/texmf-dist/doc/latex/limecv/examples/mwe-lualatex.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/limecv/examples/mwe-lualatex.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/limecv/examples/mwe-lualatex.tex	2017-11-25 20:58:47 UTC (rev 45905)
+++ trunk/Master/texmf-dist/doc/latex/limecv/examples/mwe-lualatex.tex	2017-11-25 20:59:01 UTC (rev 45906)
@@ -35,7 +35,7 @@
   \begin{document}
   
   % Design of side bar.
-  \begin{cvSideBar}
+  \begin{cvSidebar}
     \cvID{John}{Doe}{picture}{position}
   
     \begin{cvProfile}
@@ -72,7 +72,7 @@
       \cvProject[image=limecv-icon,width=1cm,link=https://github.com/opieters/limecv]{\texttt{limecv}}{A \LaTeX\ CV document class.}
     \end{cvProjects}
     
-  \end{cvSideBar}
+  \end{cvSidebar}
 
   \begin{cvMainContent}
 

Modified: trunk/Master/texmf-dist/doc/latex/limecv/examples/mwe-xelatex.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/limecv/examples/mwe-xelatex.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/limecv/examples/mwe-xelatex.tex	2017-11-25 20:58:47 UTC (rev 45905)
+++ trunk/Master/texmf-dist/doc/latex/limecv/examples/mwe-xelatex.tex	2017-11-25 20:59:01 UTC (rev 45906)
@@ -36,7 +36,7 @@
 
 
 % Design of side bar.
-\begin{cvSideBar}
+\begin{cvSidebar}
   \cvID{John}{Doe}{picture}{position}
 
   \begin{cvProfile}
@@ -73,7 +73,7 @@
     \cvProject[image=limecv-icon,width=1cm,link=https://github.com/opieters/limecv]{\texttt{limecv}}{A \LaTeX\ CV document class.}
   \end{cvProjects}
   
-\end{cvSideBar}
+\end{cvSidebar}
 
 \begin{cvMainContent}
 
@@ -136,7 +136,7 @@
 
 \vspace{\baselineskip}
 
-\lipsum[1-3]
+\lipsum[1-8]
 
 \vspace{\cvMargin}
 

Modified: trunk/Master/texmf-dist/doc/latex/limecv/limecv.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/limecv/limecv.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/limecv/limecv.dtx	2017-11-25 20:58:47 UTC (rev 45905)
+++ trunk/Master/texmf-dist/source/latex/limecv/limecv.dtx	2017-11-25 20:59:01 UTC (rev 45906)
@@ -26,7 +26,7 @@
 %<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
 %<class>\ProvidesClass{limecv}
 %<*class>
-    [2017/09/12 v0.1.1 limecv Document class for CVs.]
+    [2017/09/12 v0.1.3 limecv Document class for CVs.]
 %</class>
 %
 %<*driver>
@@ -68,7 +68,7 @@
 %</driver>
 % \fi
 %
-% \CheckSum{1469}
+% \CheckSum{1525}
 %
 % \CharacterTable
 %  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -89,13 +89,15 @@
 %
 % \changes{v0.1}{2017/09/12}{Initial version.}
 % \changes{v0.1.1}{2017/09/13}{Bug fixes and improved documentation.}
+% \changes{v0.1.2}{2017/11/25}{Add internationalisation support. Support cover letters spanning multiple pages.}
+% \changes{v0.1.3}{2017/09/25}{Fix checksum issue.}
 %
 % \DoNotIndex{\NewDocumentCommand,\NewDocumentEnvironment}
 %
 % \providecommand*{\url}{\texttt}
 % 
-% \def\fileversion{v0.1.1}
-% \def\filedate{2017/09/12}
+% \def\fileversion{v0.1.3}
+% \def\filedate{2017/11/25}
 %
 % \GetFileInfo{limecv.dtx}
 % \title{The \textsf{limecv} document class\thanks{This document corresponds %
@@ -134,7 +136,7 @@
 %     \draw[fill=black!20] (0,0) rectangle ++(-4.2,-1.5);
 %   \end{tikzpicture}
 %   \caption{Illustation of a basic template. The image to the left depicts the  
-%     actual CV: side bar to the left (1) with main content on the right (2).   
+%     actual CV: sidebar to the left (1) with main content on the right (2).   
 %     The image to the right depicts the cover letter design.}
 %   \label{design}
 % \end{figure}
@@ -161,19 +163,34 @@
 %   the |fontawesome| package. 
 % 
 % \section{General Macros and Document Class Options}
+%
+%    \subsection{Internationalisation}
+%      \DescribeMacro{\cvSetLanguage} Currently, there is only internationalisation support for English and Dutch. The default language is English and can be modified using the |\cvSetLanguage| macro. Possible arguments are: |english| and |dutch|. If you want to use a different language, you need to modify the keys that hold the different section titles. These can be in the source code. The following snippet illustrates how this can be done for French:
+%
+% \iffalse
+%<*example>
+% \fi
+  \begin{lstlisting}
+\pgfkeys{/@cv/names/education = Formations}
+\pgfkeys{/@cv/names/skills = Compétences}
+  \end{lstlisting}
+% \iffalse
+%</example>
+% \fi
+%
 % 
-% \section{Side Bar}
+% \section{Sidebar}
 % 
-%   The side bar should contain personal information such as your name, job title 
+%   The sidebar should contain personal information such as your name, job title 
 %   (or industry or similar), contact information, small bio, interests and language 
 %   skills. Special environments and commands have been defined for each of these 
 %   sections and will be described below. 
 % 
-%   Everything that should be inside the side bar should be placed in the |cvSideBar| 
+%   Everything that should be inside the sidebar should be placed in the |cvSidebar| 
 %   environment. This environment is placed on the left side of the page by default. 
-%   If it should be typeset on the right side, use the starred version (|cvSideBar*|)
+%   If it should be typeset on the right side, use the starred version (|cvSidebar*|)
 % 
-%   The following environments are available inside the side bar environment: 
+%   The following environments are available inside the sidebar environment: 
 %   |cvProfile|, |cvContact|, |cvLanguages|, |cvInterests| and |cvProjects|.
 %   
 %   \DescribeMacro{\cvID}
@@ -370,7 +387,7 @@
 %</example>
 % \fi
 % 
-%   It is currently not possible to extend the side bar with additional environments. To add
+%   It is currently not possible to extend the sidebar with additional environments. To add
 %   your own, look at the source code and create your own \LaTeX-style hack.  
 % 
 % \section{Main Content}
@@ -387,7 +404,7 @@
 %   environments.
 %   
 %   Note that |cvMainContent| also has a starred variant (|cvMainContent*|). The 
-%   function is similar to |cvSideBar*|, in the sense that it places everything to the 
+%   function is similar to |cvSidebar*|, in the sense that it places everything to the 
 %   left instead of the default right location.
 %   
 %   \DescribeMacro{cvEducation} 
@@ -662,7 +679,7 @@
 %     Default value: |3pt|.
 %   \item |\cvMargin| Margin around the entire page. 
 %     Default value: |1cm|.
-%   \item |\cvSideWidth| Width of the side bar. 
+%   \item |\cvSideWidth| Width of the sidebar. 
 %     Default value: |0.3\paperwidth-\cvMargin|.
 %   \item |\cvMainWidth| Width of the main content section. 
 %     Default value: |\paperwidth-4\cvMargin-\cvSideWidth|.
@@ -686,7 +703,7 @@
 %     Default value: |0.75em|.
 %   \item |\cvSectionSep| Distance between sections of the main content section. 
 %     Default value: |0.6cm|.
-%   \item |\cvSectionSBSep| Distance between sections of the side bar section. 
+%   \item |\cvSectionSBSep| Distance between sections of the sidebar section. 
 %     Default value: |4pt|.
 %   \item |\cvTitleLineWidth| Line width of horizontal line below section title.
 %      Default value: |2pt|.
@@ -705,7 +722,7 @@
 %   \item |\cvCoverLetterPositionSpacing| Distance between name and position in the cover letter. 
 %     Default value: |10pt|.
 %   \item |\cvSBSectionLineWidth| Line width of left and right lines next to the titles of in the 
-%     side bar. Default value: |1pt|.
+%     sidebar. Default value: |1pt|.
 %   \item |\cvCoverLetterLineSpacing| Distance between name and line below it in the cover letter. 
 %     Default value: |0pt|.
 %   \item |\cvIDNameSep| Distance between first and last name. 
@@ -1092,8 +1109,9 @@
 % Argument order: string - character number
 %    \begin{macrocode}
 \ExplSyntaxOn
+\cs_generate_variant:Nn\tl_item:nn {f}
 \DeclareExpandableDocumentCommand{\extract}{mm}{%
-  \tl_item:nn { #1 } { #2 }%
+  \tl_item:fn{#1}{#2}%
 }
 \ExplSyntaxOff
 %    \end{macrocode}
@@ -1195,6 +1213,8 @@
 \newlength\cvHeaderIconWidth
 \setlength\cvHeaderIconWidth{0pt}
 %    \end{macrocode}
+%
+%
 %------------------------------------------------------
 %
 %   New styling commands
@@ -1218,7 +1238,7 @@
   \endgroup
 }
 %    \end{macrocode}
-% Create horizontal line from edge to edge for side bar
+% Create horizontal line from edge to edge for sidebar
 % section titles.
 %
 % Based on: 
@@ -1279,13 +1299,16 @@
     \y\StrGobbleLeft{#1}{1}\egroup};
     \node[%
       left=\cvTimeDotSep of cv at title \the\value{cv at titleNext},
-      cv at headerIcon] 
+      cv at headerIcon]
       {#2};
+    \node[cv at sectionTitle] at (0,0)
+      (cv at title \the\value{cv at titleNext} dummy) {%
+        \phantom{\cvSection{Education}}};
     \begin{scope}[on background layer]
-      \draw[line width=\cvTitleLineWidth,cvGreen] 
-        let \p1=(cv at title \the\value{cv at titleNext}%
-                .south west), 
-            \p2=(current page.east) in 
+      \draw[line width=\cvTitleLineWidth,cvGreen]
+        let \p1=(cv at title \the\value{cv at titleNext} %
+                dummy.south west),
+            \p2=(current page.east) in
         (\x1,\y1-\cvTitleLineSpacing) to (\x2,\y1-\cvTitleLineSpacing);
     \end{scope}
 }%
@@ -1360,6 +1383,71 @@
   }
 }
 %    \end{macrocode}
+%
+%-----------------------
+% Language 
+%    \begin{macrocode}
+\pgfkeys{/@cv/names/.is family,
+         /@cv/names/.unknown/.style = %
+         {\pgfkeyscurrentpath/\pgfkeyscurrentname/%
+         .initial = #1}}
+%    \end{macrocode}
+% Set all title names to English (default):
+%    \begin{macrocode}
+\NewDocumentCommand{\cv at 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}%
+}
+%    \end{macrocode}
+%
+% Set all title names to Dutch:
+%    \begin{macrocode}
+\NewDocumentCommand{\cv at 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}%
+}
+%    \end{macrocode}
+%
+% Set the actual language to English. This can be overwritten by the user in the preamble
+%
+% Define the command to change the language
+%    \begin{macrocode}
+\ExplSyntaxOn
+\NewDocumentCommand{\cvSetLanguage}{m}{
+    \str_case:nnF {#1}
+    {
+      {dutch} {\cv at setDutch}
+      {english} {\cv at setEnglish}
+    }
+    {\ClassError{limecv}{Unknown option `#1' for cvLanguage %
+     macro.}{Only `english' and `dutch' are valid options %
+     for this macro.}}
+}
+\ExplSyntaxOff
+\cvSetLanguage{english}
+%    \end{macrocode}
+%
+%    \begin{macrocode}
+% \cvSetLanguage{english}
+%    \end{macrocode}
 %------------------------------------------------------
 %
 %   Commands specific for cvSkills section
@@ -1436,7 +1524,7 @@
 %
 %    \begin{macrocode}
 \NewDocumentEnvironment{cvEducation}{}{%
-    \cv at Title{Education}{\faGraduationCap}
+    \cv at Title{\pgfkeysvalueof{/@cv/names/education}}{\faGraduationCap}
 %    \end{macrocode}
 % insures uniqueness
 %    \begin{macrocode}
@@ -1456,7 +1544,7 @@
 %
 %    \begin{macrocode}
 \NewDocumentEnvironment{cvExperience}{}{%
-  \cv at Title{Experience}{\faBriefcase}
+  \cv at Title{\pgfkeysvalueof{/@cv/names/experience}}{\faBriefcase}
 %    \end{macrocode}
 % insures uniqueness
 %    \begin{macrocode}
@@ -1476,7 +1564,7 @@
 %
 %    \begin{macrocode}
 \NewDocumentEnvironment{cvSkills}{}{%
-  \cv at Title{Skills}{\faStar}
+  \cv at Title{\pgfkeysvalueof{/@cv/names/skills}}{\faStar}
   \global\cv at firstskilltrue
 }{%
   \node[
@@ -1497,7 +1585,7 @@
 %
 %    \begin{macrocode}
 \NewDocumentEnvironment{cvReferences}{}{%
-  \cv at Title{References}{\faLink}
+  \cv at Title{\pgfkeysvalueof{/@cv/names/references}}{\faLink}
   \node[
     below=\cvSectionSep of cv at title \the\value{cv at titlePrev}.%
       south west,
@@ -1705,11 +1793,11 @@
 %
 %------------------------------------------------------
 %
-%   cvSideBar environment
+%   cvSidebar environment
 %
 %
 %    \begin{macrocode}
-\NewDocumentEnvironment{cvSideBar}{}{%
+\NewDocumentEnvironment{cvSidebar}{}{%
   \vspace*{\fill}
   \vspace*{-0.5\cvMargin}
   \begin{tikzpicture}[remember picture,overlay]
@@ -1723,7 +1811,7 @@
   \end{minipage}
   \vspace*{\fill}
 }
-\NewDocumentEnvironment{cvSideBar*}{}{%
+\NewDocumentEnvironment{cvSidear*}{}{%
   \vspace*{\fill}
   \vspace*{-0.5\cvMargin}
   \begin{tikzpicture}[remember picture,overlay]
@@ -1745,7 +1833,7 @@
 %    \begin{macrocode}
 \NewDocumentEnvironment{cvProfile}{}{%
   \vspace{\cvSectionSBSep}
-  \ruleline{Profile}
+  \ruleline{\pgfkeysvalueof{/@cv/names/profile}}
 }{%
 }
 %    \end{macrocode}
@@ -1773,7 +1861,7 @@
 \newif\ifcv at contactfirst
 \NewDocumentEnvironment{cvContact}{}{%
   \vspace{\cvSectionSBSep}
-  \ruleline{Contact}%
+  \ruleline{\pgfkeysvalueof{/@cv/names/contact}}%
   \vspace{\cvSectionSBSep}
   
   \global\cv at contactfirstfalse
@@ -1932,7 +2020,7 @@
   \fi
   %%%%%%
   \vspace{\cvSectionSBSep}
-  \ruleline{Interests}%
+  \ruleline{\pgfkeysvalueof{/@cv/names/interests}}%
   \vspace{\cvSectionSBSep}
 }{%
   \cv at interestClose
@@ -2062,7 +2150,7 @@
 %    \begin{macrocode}
 \NewDocumentEnvironment{cvProjects}{}{%
   \vspace{\cvSectionSBSep}
-  \ruleline{Projects}%
+  \ruleline{\pgfkeysvalueof{/@cv/names/projects}}%
   \vspace{\cvSectionSBSep}
   \cv at definecvProject
   \begin{tikzpicture}[every node/.style={inner sep=0cm,outer sep=0cm}]
@@ -2089,7 +2177,7 @@
     \stepcounter{cv at 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}]
@@ -2230,6 +2318,7 @@
   }
 }
 \NewDocumentEnvironment{cvCoverLetter}{}{%
+  \newgeometry{textwidth=\cvCoverLetterWidth,noheadfoot}
   \begin{tikzpicture}[%
       remember picture,
       overlay, 
@@ -2280,20 +2369,19 @@
          ($(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
-      
-      \vspace{\baselineskip}
-      \cv at definecvBeneficiary
-      \cv at definecvFullName
+  \today
+
+  \vspace{\baselineskip}
+  \cv at definecvBeneficiary
+  \cv at definecvFullName
 }{%
-    \end{minipage}
-  \end{center}
+  \restoregeometry
 }
 %    \end{macrocode}
+%
+%
 %------------------------------------------------------
 %
 %   cvID macro
@@ -2323,6 +2411,7 @@
     \end{tikzpicture}\\
   }
   {\LARGE
+  \vspace{\cvIDNameSep}
   #1
   \vspace{\cvIDNameSep}
   #2}

Modified: trunk/Master/texmf-dist/source/latex/limecv/limecv.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/limecv/limecv.ins	2017-11-25 20:58:47 UTC (rev 45905)
+++ trunk/Master/texmf-dist/source/latex/limecv/limecv.ins	2017-11-25 20:59:01 UTC (rev 45906)
@@ -41,7 +41,7 @@
 \Msg{* To finish the installation you have to move the  *}
 \Msg{* following file into a directory searched by TeX: *}
 \Msg{*                                                  *}
-\Msg{* \space\space limecv.cls                                    *}
+\Msg{* \space\space limecv.cls                          *}
 \Msg{*                                                  *}
 \Msg{* To produce the documentation run the file        *}
 \Msg{* limecv.dtx through LaTeX.                        *}

Modified: trunk/Master/texmf-dist/tex/latex/limecv/limecv.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/limecv/limecv.cls	2017-11-25 20:58:47 UTC (rev 45905)
+++ trunk/Master/texmf-dist/tex/latex/limecv/limecv.cls	2017-11-25 20:59:01 UTC (rev 45906)
@@ -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 at title \the\value{cv at titleNext},
       cv at headerIcon]
       {#2};
+    \node[cv at sectionTitle] at (0,0)
+      (cv at title \the\value{cv at titleNext} dummy) {%
+        \phantom{\cvSection{Education}}};
     \begin{scope}[on background layer]
       \draw[line width=\cvTitleLineWidth,cvGreen]
-        let \p1=(cv at title \the\value{cv at titleNext}%
-                .south west),
+        let \p1=(cv at title \the\value{cv at titleNext} %
+                dummy.south west),
             \p2=(current page.east) in
         (\x1,\y1-\cvTitleLineSpacing) to (\x2,\y1-\cvTitleLineSpacing);
     \end{scope}
@@ -409,6 +413,49 @@
     \stepcounter{cv at itemNext}
   }
 }
+\pgfkeys{/@cv/names/.is family,
+         /@cv/names/.unknown/.style = %
+         {\pgfkeyscurrentpath/\pgfkeyscurrentname/%
+         .initial = #1}}
+\NewDocumentCommand{\cv at 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 at 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 at setDutch}
+      {english} {\cv at setEnglish}
+    }
+    {\ClassError{limecv}{Unknown option `#1' for cvLanguage %
+     macro.}{Only `english' and `dutch' are valid options %
+     for this macro.}}
+}
+\ExplSyntaxOff
+\cvSetLanguage{english}
 \newif\ifcv at firstskill
 \NewDocumentCommand{\cv at skillsTable}{}{}
 \NewDocumentCommand{\cvSkillTwo}{mmmm}{%
@@ -456,7 +503,7 @@
     \end{tikzpicture}%
 }
 \NewDocumentEnvironment{cvEducation}{}{%
-    \cv at Title{Education}{\faGraduationCap}
+    \cv at Title{\pgfkeysvalueof{/@cv/names/education}}{\faGraduationCap}
     \stepcounter{cv at itemPrev}
     \stepcounter{cv at itemNext}
     \cv at definecvItem
@@ -467,7 +514,7 @@
       node (cv at last item \the\value{cv at lastItem}) {};
 }
 \NewDocumentEnvironment{cvExperience}{}{%
-  \cv at Title{Experience}{\faBriefcase}
+  \cv at Title{\pgfkeysvalueof{/@cv/names/experience}}{\faBriefcase}
   \stepcounter{cv at itemPrev}
   \stepcounter{cv at itemNext}
   \cv at definecvItem
@@ -478,7 +525,7 @@
     node (cv at last item \the\value{cv at lastItem}) {};
 }
 \NewDocumentEnvironment{cvSkills}{}{%
-  \cv at Title{Skills}{\faStar}
+  \cv at Title{\pgfkeysvalueof{/@cv/names/skills}}{\faStar}
   \global\cv at firstskilltrue
 }{%
   \node[
@@ -493,7 +540,7 @@
     (cv at last item \the\value{cv at lastItem}) {};
 }
 \NewDocumentEnvironment{cvReferences}{}{%
-  \cv at Title{References}{\faLink}
+  \cv at Title{\pgfkeysvalueof{/@cv/names/references}}{\faLink}
   \node[
     below=\cvSectionSep of cv at title \the\value{cv at 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 at ContactTemplate}{mm}{
@@ -681,7 +728,7 @@
 \newif\ifcv at contactfirst
 \NewDocumentEnvironment{cvContact}{}{%
   \vspace{\cvSectionSBSep}
-  \ruleline{Contact}%
+  \ruleline{\pgfkeysvalueof{/@cv/names/contact}}%
   \vspace{\cvSectionSBSep}
 
   \global\cv at contactfirstfalse
@@ -815,7 +862,7 @@
   \fi
   %%%%%%
   \vspace{\cvSectionSBSep}
-  \ruleline{Interests}%
+  \ruleline{\pgfkeysvalueof{/@cv/names/interests}}%
   \vspace{\cvSectionSBSep}
 }{%
   \cv at interestClose
@@ -902,7 +949,7 @@
 }
 \NewDocumentEnvironment{cvProjects}{}{%
   \vspace{\cvSectionSBSep}
-  \ruleline{Projects}%
+  \ruleline{\pgfkeysvalueof{/@cv/names/projects}}%
   \vspace{\cvSectionSBSep}
   \cv at definecvProject
   \begin{tikzpicture}[every node/.style={inner sep=0cm,outer sep=0cm}]
@@ -923,7 +970,7 @@
     \stepcounter{cv at 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 at definecvBeneficiary
-      \cv at definecvFullName
+  \vspace{\baselineskip}
+  \cv at definecvBeneficiary
+  \cv at 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}



More information about the tex-live-commits mailing list