diff --git a/moderncv.cls b/moderncv.cls index 3511c2c..a00e765 100644 --- a/moderncv.cls +++ b/moderncv.cls @@ -236,6 +236,10 @@ % where the and arguments can be omitted or provided empty \NewDocumentCommand{\address}{mG{}G{}}{\def\@addressstreet{#1}\def\@addresscity{#2}\def\@addresscountry{#3}} +% defines one's birthday (optional) +% usage: \born{date, place} +\newcommand*{\born}[1]{\def\@born{#1}} + % defines one's email (optional) % usage: \email{} \newcommand*{\email}[1]{\def\@email{#1}} @@ -299,6 +303,7 @@ % other symbols \newcommand*{\listitemsymbol} {\labelitemi~} \newcommand*{\addresssymbol} {} +\newcommand*{\bornsymbol} {} \newcommand*{\mobilephonesymbol} {} \newcommand*{\fixedphonesymbol} {} \newcommand*{\faxphonesymbol} {} @@ -348,7 +353,7 @@ % usage: \moderncvfoot[]{} \newcommand*{\moderncvfoot}[2][]{% \@loadmoderncvpackage[#1]{foot}{#2}} - + % loads a color scheme % usage: \moderncvcolor{} \newcommand*{\moderncvcolor}[1]{% @@ -513,7 +518,7 @@ \ifthenelse{\equal{#1}{}}% {\href{mailto:#2}{#2}}% {\href{mailto:#2}{#1}}} - + % makes a tel hyperlink % usage: \tellink[optional text]{link} \newcommand*{\tellink}[2][]{% diff --git a/moderncvfooti.sty b/moderncvfooti.sty index 1a66d0f..b801a68 100644 --- a/moderncvfooti.sty +++ b/moderncvfooti.sty @@ -85,6 +85,7 @@ \ifthenelse{\equal{\@addresscity}{}}{}{\addtofoot[~--~]{\@addresscity}}% if \addresstreet is defined, \addresscity and \addresscountry will always be defined but could be empty \ifthenelse{\equal{\@addresscountry}{}}{}{\addtofoot[~--~]{\@addresscountry}}% \flushfoot\@firstfootelementtrue\\}% + \ifthenelse{\isundefined{\@born}}{}{\addtofoot{\bornsymbol\@born}\flushfoot\@firstfootelementtrue\\}% \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number \addtofoot{\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}% \ifthenelse{\isundefined{\@email}}{}{\addtofoot{\emailsymbol\emaillink{\@email}}}% @@ -116,6 +117,7 @@ \ifthenelse{\equal{\@addresscity}{}}{}{\addtofoot[~--~]{\@addresscity}}% if \addresstreet is defined, \addresscity and addresscountry will always be defined but could be empty \ifthenelse{\equal{\@addresscountry}{}}{}{\addtofoot[~--~]{\@addresscountry}}% \flushfoot\@firstfootelementtrue\\}% + \ifthenelse{\isundefined{\@born}}{}{\addtofoot{\bornsymbol\@born}\flushfoot\@firstfootelementtrue\\}% \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number \addtofoot{\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}% \ifthenelse{\isundefined{\@email}}{}{\addtofoot{\emailsymbol\emaillink{\@email}}}% diff --git a/moderncvheadi.sty b/moderncvheadi.sty index 8c9ab97..f02cc6c 100644 --- a/moderncvheadi.sty +++ b/moderncvheadi.sty @@ -78,6 +78,7 @@ \ifthenelse{\isundefined{\@addressstreet}}{}{\makenewline\addresssymbol\@addressstreet% \ifthenelse{\equal{\@addresscity}{}}{}{\makenewline\@addresscity}% if \addresstreet is defined, \addresscity and addresscountry will always be defined but could be empty \ifthenelse{\equal{\@addresscountry}{}}{}{\makenewline\@addresscountry}}% + \ifthenelse{\isundefined{\@born}}{}{\makenewline\bornsymbol\@born}% \phonesdetails% needs to be pre-rendered as loops and tabulars seem to conflict \ifthenelse{\isundefined{\@email}}{}{\makenewline\emailsymbol\emaillink{\@email}}% \ifthenelse{\isundefined{\@homepage}}{}{\makenewline\homepagesymbol\httplink{\@homepage}}% diff --git a/moderncvheadii.sty b/moderncvheadii.sty index 2062e98..95f12fe 100644 --- a/moderncvheadii.sty +++ b/moderncvheadii.sty @@ -140,6 +140,7 @@ \ifthenelse{\equal{\@addresscity}{}}{}{\addtomakeheaddetails[~--~]{\@addresscity}}% if \addresstreet is defined, \addresscity and \addresscountry will always be defined but could be empty \ifthenelse{\equal{\@addresscountry}{}}{}{\addtomakeheaddetails[~--~]{\@addresscountry}}% \flushmakeheaddetails\@firstmakeheaddetailselementtrue\\\null}% + \ifthenelse{\isundefined{\@born}}{}{\addtomakeheaddetails{\bornsymbol\@born}}% \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number \addtomakeheaddetails{\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}% \ifthenelse{\isundefined{\@email}}{}{\addtomakeheaddetails{\emailsymbol\emaillink{\@email}}}% diff --git a/moderncvheadiii.sty b/moderncvheadiii.sty index 54f86cb..36c3743 100644 --- a/moderncvheadiii.sty +++ b/moderncvheadiii.sty @@ -81,7 +81,7 @@ \centering% % name and title \namestyle{\@firstname~\@lastname}% - \ifthenelse{\equal{\@title}{}}{}{\titlestyle{~|~\@title}}\\% \isundefined doesn't work on \@title, as LaTeX itself defines \@title (before it possibly gets redefined by \title) + \ifthenelse{\equal{\@title}{}}{}{\titlestyle{~|~\@title}}\\% \isundefined doesn't work on \@title, as LaTeX itself defines \@title (before it possibly gets redefined by \title) % optional detailed information \if@details{% \addressfont\color{color2}% @@ -89,6 +89,7 @@ \ifthenelse{\equal{\@addresscity}{}}{}{\addtomakeheaddetails[~--~]{\@addresscity}}% if \addresstreet is defined, \addresscity and \addresscountry will always be defined but could be empty \ifthenelse{\equal{\@addresscountry}{}}{}{\addtomakeheaddetails[~--~]{\@addresscountry}}% \flushmakeheaddetails\@firstmakeheaddetailselementtrue\\\null}% + \ifthenelse{\isundefined{\@born}}{}{\addtomakeheaddetails{\bornsymbol\@born}}% \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number \addtomakeheaddetails{\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}% \ifthenelse{\isundefined{\@email}}{}{\addtomakeheaddetails{\emailsymbol\emaillink{\@email}}}% diff --git a/moderncvheadiv.sty b/moderncvheadiv.sty index f3ceaf7..669e970 100644 --- a/moderncvheadiv.sty +++ b/moderncvheadiv.sty @@ -107,6 +107,7 @@ \ifthenelse{\isundefined{\@addressstreet}}{}{\makenewline\addresssymbol\@addressstreet% \ifthenelse{\equal{\@addresscity}{}}{}{\makenewline\@addresscity}% if \addresstreet is defined, \addresscity and \addresscountry will always be defined but could be empty \ifthenelse{\equal{\@addresscountry}{}}{}{\makenewline\@addresscountry}}% + \ifthenelse{\isundefined{\@born}}{}{\makenewline\hbox to 1.0em{\bornsymbol}~\@born}% \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number \makenewline\hbox to 1.0em{\csname\collectionloopkey phonesymbol\endcsname}~\collectionloopitem}% \ifthenelse{\isundefined{\@email}}{}{\makenewline\hbox to 1.0em{\emailsymbol}~\emaillink{\@email}}% diff --git a/moderncvheadv.sty b/moderncvheadv.sty index 7a2c15b..a1e1b19 100644 --- a/moderncvheadv.sty +++ b/moderncvheadv.sty @@ -79,6 +79,7 @@ \ifthenelse{\isundefined{\@addressstreet}}{}{\makenewline\addresssymbol\@addressstreet% \ifthenelse{\equal{\@addresscity}{}}{}{\makenewline\@addresscity}% if \addresstreet is defined, \addresscity and \addresscountry will always be defined but could be empty \ifthenelse{\equal{\@addresscountry}{}}{}{\makenewline\@addresscountry}}% + \ifthenelse{\isundefined{\@born}}{}{\makenewline\bornsymbol~\@born}% \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number \makenewline\csname\collectionloopkey phonesymbol\endcsname~\collectionloopitem}% \ifthenelse{\isundefined{\@email}}{}{\makenewline\emailsymbol~\emaillink{\@email}}% diff --git a/moderncvheadvi.sty b/moderncvheadvi.sty index 83c1055..a029e01 100644 --- a/moderncvheadvi.sty +++ b/moderncvheadvi.sty @@ -112,6 +112,7 @@ \ifthenelse{\equal{\@addresscity}{}}{}{\addtomakeheaddetails[~--~]{\@addresscity}}% if \addresstreet is defined, \addresscity and \addresscountry will always be defined but could be empty \ifthenelse{\equal{\@addresscountry}{}}{}{\addtomakeheaddetails[~--~]{\@addresscountry}}% \flushmakeheaddetails\@firstmakeheaddetailselementtrue\\\null}% + \ifthenelse{\isundefined{\@born}}{}{\addtomakeheaddetails{\bornsymbol\@born}}% \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number \addtomakeheaddetails{\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}% \ifthenelse{\isundefined{\@email}}{}{\addtomakeheaddetails{\emailsymbol\emaillink{\@email}}}% diff --git a/moderncviconsawesome.sty b/moderncviconsawesome.sty index e0fd892..c8b6004 100644 --- a/moderncviconsawesome.sty +++ b/moderncviconsawesome.sty @@ -39,6 +39,7 @@ \renewcommand*{\githubsocialsymbol} {{\small\faGithub}~} % alternative: \faGithubSquare, \faGithubSquare \renewcommand*{\gitlabsocialsymbol} {{\small\faGitlab}~} \renewcommand*{\skypesocialsymbol} {{\small\faSkype}~} +\renewcommand*{\bornsymbol}{{\small\faAsterisk}~} \endinput diff --git a/moderncviconsletters.sty b/moderncviconsletters.sty index 2ef7c59..90e7417 100644 --- a/moderncviconsletters.sty +++ b/moderncviconsletters.sty @@ -46,6 +46,7 @@ \renewcommand*{\githubsocialsymbol} {\textbf{gh}~} \renewcommand*{\gitlabsocialsymbol} {\textbf{gl}~} \renewcommand*{\skypesocialsymbol} {\textbf{sk}~} +\renewcommand*{\bornsymbol} {\textbf{B}~} \renewcommand*{\listitemsymbol} {\labelitemi~} diff --git a/moderncviconsmarvosym.sty b/moderncviconsmarvosym.sty index 020f4d7..90beb82 100644 --- a/moderncviconsmarvosym.sty +++ b/moderncviconsmarvosym.sty @@ -231,7 +231,7 @@ \protect\path[fill=color2,even odd rule] (487.6550,288.9690) .. controls (489.0610,278.5690) and (489.8700,267.9960) .. (489.8700,257.2330) .. controls (489.8700,128.0770) and (384.5990,23.3610) .. - (254.7670,23.3610) .. controls (241.8630,23.3610) and (229.2120,24.4210) .. + (254.7670,23.3610) .. controls (241.8630,23.3610) and (229.2120,24.4210) .. (216.9010,26.4410) .. controls (194.8280,12.0570) and (168.5590,3.6740) .. (140.2880,3.6740) .. controls (62.7660,3.6740) and (0.0000,66.4820) .. (0.0000,143.9800) .. controls (0.0000,172.1780) and (8.2990,198.3740) .. @@ -257,6 +257,7 @@ \protect\end{scope}% \protect\end{tikzpicture}}% ~} + \renewcommand*{\bornsymbol}{} \endinput