Skip to content

Commit

Permalink
Changes in according to #12
Browse files Browse the repository at this point in the history
  • Loading branch information
gsilano committed Mar 19, 2019
1 parent de90240 commit 758813f
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 11 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changelog for package europecv
2019.03.19
----------
* Now you can integrate your YouTube channel into your CV
* Now you can add multiple addresses
* Contributors: Giuseppe Silano

2019.02.04
Expand All @@ -15,7 +16,7 @@ Changelog for package europecv

2019.01.31
----------
* Optional CV update date by using the command \ecvdate{}
* Optional CV "update date" by using the command \ecvdate{}
* Contributors: Giuseppe Silano

2019.01.25
Expand Down
28 changes: 26 additions & 2 deletions europecv.cls
Original file line number Diff line number Diff line change
Expand Up @@ -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[%
Expand Down Expand Up @@ -432,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
Expand Down
Binary file modified europecv.pdf
Binary file not shown.
20 changes: 14 additions & 6 deletions europecv.tex
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,13 @@
\ecvitem{\ecv{footername}\texttt{\{}\textit{name}\texttt{\}}}{Sets your name as it appears in the footer. By default, the name in the footer is the same as the one specified with \ecv{name}. Use \ecv{footername} is you want it to be different (for example, if you want to exchange the order of first name and last name).}
\ecvitem{\ecv{firstname}\texttt{\{}\textit{name}\texttt{\}}}{\textbf{Deprecated.} Use \ecv{name} and \ecv{footername} instead.}
\ecvitem{\ecv{lastname}\texttt{\{}\textit{name}\texttt{\}}}{\textbf{Deprecated.} Use \ecv{name} and \ecv{footername} instead.}
\ecvitem{\ecv{address}\texttt{\{}\textit{addr}\texttt{\}}}{Sets the address to \emph{addr}.}
\ecvitem{\ecv{address}\texttt{[}\textit{mobile}\texttt{]}\texttt{[}\textit{office}\texttt{]}\\
\texttt{\{}\textit{address}\texttt{\}}}{Sets the addressr to \emph{address} and, optionally,
the mobile and the office addresses to~\emph{mobile} and to~\emph{office}, respectively.}
\ecvitem{\ecv{fax}\texttt{\{}\textit{fax}\texttt{\}}}{Sets the fax number to \emph{fax}. If you do not have any fax number, you can leave it empty.}
\ecvitem{\ecv{telephone}\texttt{[}\textit{mobile}\texttt{]}\texttt{[}\textit{office}\texttt{]}\\\texttt{\{}\textit{tel}\texttt{\}}}{Sets the telephone number to \emph{tel} and, optionally, the mobile and the office numbers to~\emph{mobile} and to~\emph{office}, respectively.}
\ecvitem{\ecv{telephone}\texttt{[}\textit{mobile}\texttt{]}\texttt{[}\textit{office}\texttt{]}\\
\texttt{\{}\textit{tel}\texttt{\}}}{Sets the telephone number to \emph{tel} and, optionally,
the mobile and the office numbers to~\emph{mobile} and to~\emph{office}, respectively.}
\ecvitem{\ecv{email}\texttt{\{}\textit{email}\texttt{\}}}{Sets the email to \emph{email}.}
\ecvitem{\ecv{professional}\texttt{\{}\textit{professional}\texttt{\}}}{Sets the professional email to \emph{professional}.}
\ecvitem{\ecv{pec}\texttt{\{}\textit{pec}\texttt{\}}}{Sets the PEC email to \emph{pec}.}
Expand Down Expand Up @@ -253,7 +257,8 @@
% Define personal data
\ecvname{Alan Touring}
\ecvfootername{}
\ecvaddress{Wilmslow, Cheshire, England}
\ecvaddress[Wilmslow 1, Cheshire, England][Wilmslow 2, Cheshire, England]{Wilmslow 3,
Cheshire, England}
\ecvtelephone[1234][5678]{4321}
\ecvfax{0055884321}
\ecvemail{\href{mailto:[email protected]}{[email protected]}}
Expand Down Expand Up @@ -282,7 +287,8 @@
{
\ecvname{Alan Touring}
\ecvfootername{}
\ecvaddress{Wilmslow, Cheshire, England}
\ecvaddress[Wilmslow 1, Cheshire, England][Wilmslow 2, Cheshire, England]{Wilmslow 3,
Cheshire, England}
\ecvtelephone[1234][5678]{4321}
\ecvfax{0055884321}
\ecvemail{\href{mailto:[email protected]}{[email protected]}}
Expand Down Expand Up @@ -312,7 +318,8 @@
\ecvname{Alan Touring}
\ecvfootername{}
\ecvaddress{Wilmslow, Cheshire, England}
\ecvaddress[Wilmslow 1, Cheshire, England][Wilmslow 2, Cheshire, England]{Wilmslow 3,
Cheshire, England}
\ecvtelephone[1234][5678]{4321}
\ecvfax{0055884321}
\ecvemail{\href{mailto:[email protected]}{[email protected]}}
Expand Down Expand Up @@ -340,7 +347,8 @@
{
\ecvname{Alan Touring}
\ecvfootername{}
\ecvaddress{Wilmslow, Cheshire, England}
\ecvaddress[Wilmslow 1, Cheshire, England][Wilmslow 2, Cheshire, England]{Wilmslow 3,
Cheshire, England}
\ecvtelephone[1234][5678]{4321}
\ecvfax{0055884321}
\ecvemail{\href{mailto:[email protected]}{[email protected]}}
Expand Down
Binary file modified templates/cv_template_academic_en.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion templates/cv_template_academic_en.tex
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

\ecvname{Name, Surname}
\ecvfootername{Name, Surname}
\ecvaddress{(Remove if not relevant)}
\ecvaddress[(Remove if not relevant)][(Remove if not relevant)]{(Remove if not relevant)}
\ecvtelephone[(Remove if not relevant)][(Remove if not relevant)]{(Remove if not relevant)}
\ecvfax{(Remove if not relevant)}
\ecvemail{\href{mailto:[email protected]}{[email protected]}}
Expand Down
Binary file modified templates/cv_template_en.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion templates/cv_template_en.tex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

\ecvname{Name, Surname}
\ecvfootername{Name, Surname}
\ecvaddress{(Remove if not relevant)}
\ecvaddress[(Remove if not relevant)][(Remove if not relevant)]{(Remove if not relevant)}
\ecvtelephone[(Remove if not relevant)][(Remove if not relevant)]{(Remove if not relevant)}
\ecvfax{(Remove if not relevant)}
\ecvemail{\href{mailto:[email protected]}{[email protected]}}
Expand Down

0 comments on commit 758813f

Please sign in to comment.