summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/europecv/europecv.cls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-03-19 21:27:58 +0000
committerKarl Berry <karl@freefriends.org>2019-03-19 21:27:58 +0000
commit0c4b47b64e197d32e1d141f321e2f44725b0254a (patch)
tree2dc46e8c96f6d1670bfe3d47ce5242e82abf8f6b /Master/texmf-dist/tex/latex/europecv/europecv.cls
parente6ecf62a1727571cc47129fa4b4e198eadbe2ed3 (diff)
europecv (19mar19)
git-svn-id: svn://tug.org/texlive/trunk@50470 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/europecv/europecv.cls')
-rw-r--r--Master/texmf-dist/tex/latex/europecv/europecv.cls35
1 files changed, 32 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/europecv/europecv.cls b/Master/texmf-dist/tex/latex/europecv/europecv.cls
index 03c07b6b7a5..28a5c442a19 100644
--- a/Master/texmf-dist/tex/latex/europecv/europecv.cls
+++ b/Master/texmf-dist/tex/latex/europecv/europecv.cls
@@ -6,7 +6,7 @@
% See https://ctan.mirror.garr.it/mirrors/CTAN/help/Catalogue/licenses.lppl.html
% for the details of that license
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{europecv}[2019/01/31 (Unicode TeX detection) European curriculum vitae class]
+\ProvidesClass{europecv}[2019/03/19 (Unicode TeX detection) European curriculum vitae class]
% CV models and instructions:
% http://europass.cedefop.eu.int/htm/index.htm
@@ -356,7 +356,22 @@
\newcommand*{\ecvlastname}[1]{\def\ecv@lastname{#1}} % Deprecated
\newcommand*{\ecvname}[1]{\def\ecv@name{#1}} % Replaces the above
\newcommand*{\ecvfootername}[1]{\def\ecv@footername{#1}}
-\newcommand*{\ecvaddress}[1]{\def\ecv@address{#1}}
+% \ecvaddress[mobileAddress][officeAddress]{homeAddress}
+\def\ecvaddress{%
+ \@ifnextchar[%
+ {\ecvaddress@i}
+ {\ecvaddress@i[]}%
+}
+\def\ecvaddress@i[#1]{%
+ \@ifnextchar[%
+ {\ecvaddress@ii{#1}}
+ {\ecvaddress@ii{#1}[]}%
+}
+\def\ecvaddress@ii#1[#2]#3{%
+ \def\ecv@mobileAddress{#1}
+ \def\ecv@officeAddress{#2}
+ \def\ecv@address{#3}
+}
% \ecvtelephone[mobile][office]{home}
\def\ecvtelephone{%
\@ifnextchar[%
@@ -378,6 +393,7 @@
\newcommand*{\ecvemail}[1]{\def\ecv@email{#1}}
\newcommand*{\ecvprofessional}[1]{\def\ecv@professional{#1}}
\newcommand*{\ecvskype}[1]{\def\ecv@skype{#1}}
+\newcommand*{\ecvyoutube}[1]{\def\ecv@youtube{#1}}
\newcommand*{\ecvpec}[1]{\def\ecv@pec{#1}}
\newcommand*{\ecvhomepage}[1]{\def\ecv@homepage{#1}}
\newcommand*{\ecvnationality}[1]{\def\ecv@nationality{#1}}
@@ -406,6 +422,7 @@
\ecvfootername{\ecv@name}
\ecvaddress{}
\ecvskype{}
+\ecvyoutube{}
\ecvprofessional{}
\ecvtelephone{}
\ecvfax{}
@@ -430,7 +447,16 @@
& \tabularnewline
\ecv@namekey & \large\textbf{\ecv@name}\tabularnewline[5pt]
\ifx\@empty\ecv@address\else
-\ecv@addresskey &\ecv@address \tabularnewline[5pt]
+ \ecv@addresskey &\ecv@address
+ \tabularnewline[5pt]
+ \ifx\@empty\ecv@mobileAddress \else
+ \ecv@addresskey &\ecv@mobileAddress
+ \tabularnewline[5pt]
+ \fi
+ \ifx\@empty\ecv@officeAddress \else
+ \ecv@addresskey &\ecv@officeAddress
+ \tabularnewline[5pt]
+ \fi
\fi
\ifx\@empty\ecv@telephone\else
\ecv@telkey &\ecv@telephone
@@ -460,6 +486,9 @@
\ifx\@empty\ecv@skype\else
\ecv@skypekey &\ecv@skype \tabularnewline[5pt]
\fi
+\ifx\@empty\ecv@youtube\else
+\ecv@youtubekey &\ecv@youtube \tabularnewline[5pt]
+\fi
\ifx\@empty\ecv@nationality\else
\ecv@nationalitykey & \ecv@nationality \tabularnewline[5pt]
\fi