From 180e175c5a2f97aa6b7a54fb980319ec05ed8d2f Mon Sep 17 00:00:00 2001 From: Olivier Pieters Date: Tue, 5 Jun 2018 23:04:00 +0200 Subject: [PATCH] Added option to create custom contact info. --- README.md | 4 ++-- src/limecv.dtx | 13 ++++++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ecab922..7c7ede1 100644 --- a/README.md +++ b/README.md @@ -58,11 +58,11 @@ The following packages need to be installed on your system. They are all availab 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`. +Alternatively, the documentation can also be created by running `xelatex limecv.dtx`. ## Examples -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. +To compile the examples in `/examples/`, install the package from CTAN or compile from source by running: `xelatex limecv.ins` and copy the resulting `limecv.cls` file to the `/examples/` folder. ## Licence diff --git a/src/limecv.dtx b/src/limecv.dtx index 431a574..7668464 100644 --- a/src/limecv.dtx +++ b/src/limecv.dtx @@ -69,7 +69,7 @@ % % \fi % -% \CheckSum{1561} +% \CheckSum{1575} % % \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 @@ -2087,6 +2087,17 @@ Dear Miss.\ Smith \@IfNoValueOrEmptyTF{##1}{##2}{\href{##1}{##2}}}; } } +\NewDocumentCommand{\cvContactTemplate}{O{} mm}{ + \ifcv@contactfirst% + \\% + \else % + \global\cv@contactfirsttrue % + \fi % + \node[cv@contactIcon]{#2}; + \pgfmatrixnextcell \node[cv@contactText]{% + \@IfNoValueOrEmptyTF{#1}{#3}{\href{#1}{#3}}% + }; +} \newif\ifcv@contactfirst \NewDocumentEnvironment{cvContact}{}{% \vspace{\cvSectionSBSep}