mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
Add support for including pronouns in header
This commit is contained in:
parent
172f632d5f
commit
63aa50262b
3 changed files with 13 additions and 0 deletions
|
|
@ -224,6 +224,14 @@
|
|||
% usage: \title{<title>}
|
||||
\renewcommand*{\title}[1]{\def\@title{#1}}
|
||||
|
||||
% defines one's preferred pronouns (optional)
|
||||
% usage: \pronouns{<pronouns>}
|
||||
\newcommand*{\pronouns}[1]{\def\@pronouns{#1}}
|
||||
|
||||
% defines one's preferred gender icon (optional)
|
||||
% usage: \gendericon{<gendericon>}
|
||||
\newcommand*{\gendericon}[1]{\def\@gendericon{#1}}
|
||||
|
||||
% defines one's address (optional)
|
||||
% usage: \address{<street>}{<city>}{<country>}
|
||||
% where the <city> and <country> arguments can be omitted or provided empty
|
||||
|
|
@ -360,6 +368,7 @@
|
|||
\newcommand*{\listitemsymbol} {\labelitemi~}
|
||||
\newcommand*{\addresssymbol} {}
|
||||
\newcommand*{\bornsymbol} {}
|
||||
\newcommand*{\gendersymbol} {}
|
||||
\newcommand*{\mobilephonesymbol} {}
|
||||
\newcommand*{\fixedphonesymbol} {}
|
||||
\newcommand*{\faxphonesymbol} {}
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@
|
|||
\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}%
|
||||
\ifthenelse{\isundefined{\@pronouns}}{}{\makenewline\@gendericon~\@pronouns}%
|
||||
\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%
|
||||
|
|
@ -182,6 +183,7 @@
|
|||
\ifthenelse{\equal{\@homepageprotocol}{http}}{\httplink{\@homepage}}{\httpslink{\@homepage}}}%
|
||||
\collectionloop{socials}{% the key holds the social type (=symbol command prefix), the item holds the link
|
||||
\makenewline\csname\collectionloopkey socialsymbol\endcsname\collectionloopitem}%
|
||||
\ifthenelse{\isundefined{\@pronouns}}{}{\addtomakeheaddetails{\@pronouns}}%
|
||||
\ifthenelse{\isundefined{\@extrainfo}}{}{\makenewline\@extrainfo}}\fi%
|
||||
\end{minipage}\\[2em]
|
||||
% recipient block
|
||||
|
|
|
|||
|
|
@ -100,6 +100,8 @@
|
|||
%\renewcommand*{\matrixsocialsymbol} {}
|
||||
% \renewcommand*{\arxivsocialsymbol} {{\color{arxiv}{\small\faarXiv}}~}
|
||||
% \renewcommand*{\inspiresocialsymbol} {{\color{inspire}{\small\faInspire}}~}
|
||||
\def\@gendericon{\faNeuter}
|
||||
\renewcommand*{\gendersymbol} {{\small\@gendericon}~}
|
||||
\renewcommand*{\bornsymbol} {{\color{born}\small\faAsterisk}~} % alternative: \faBabyCarriage
|
||||
|
||||
\endinput
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue