mirror of
https://github.com/posquit0/Awesome-CV.git
synced 2024-11-22 22:18:40 +00:00
Added allowable optional honorific in \name
E.g., can now have: \name[Dr.]{Virgil}{Griffith} And have it display at the top but not at the bottom. There may be a better way to do the spacing between the \@honorific and the \@firstname in the \headerfirstnamestyle . I leave this to you great LaTeX master.
This commit is contained in:
parent
8682e5f8ed
commit
28355cc562
1 changed files with 7 additions and 4 deletions
|
@ -33,7 +33,7 @@
|
||||||
% geometry and fancyhdr)
|
% geometry and fancyhdr)
|
||||||
%-------------------------------------------------------------------------------
|
%-------------------------------------------------------------------------------
|
||||||
% Options for draft or final
|
% Options for draft or final
|
||||||
\DeclareOption{draft}{\setlength\overfullrule{5pt}}
|
\DeclareOption{draft}{\setlengtfh\overfullrule{5pt}}
|
||||||
\DeclareOption{final}{\setlength\overfullrule{0pt}}
|
\DeclareOption{final}{\setlength\overfullrule{0pt}}
|
||||||
% Inherit options of article
|
% Inherit options of article
|
||||||
\DeclareOption*{%
|
\DeclareOption*{%
|
||||||
|
@ -268,7 +268,10 @@
|
||||||
% Usage: \firstname{<firstname>}
|
% Usage: \firstname{<firstname>}
|
||||||
% Usage: \lastname{<lastname>}
|
% Usage: \lastname{<lastname>}
|
||||||
% Usage: \familyname{<familyname>}
|
% Usage: \familyname{<familyname>}
|
||||||
\newcommand*{\name}[2]{\def\@firstname{#1}\def\@lastname{#2}}
|
|
||||||
|
\newcommand*{\name}[3][]{\def\@honorific{#1}\def\@firstname{#2}\def\@lastname{#3}}
|
||||||
|
|
||||||
|
\newcommand*{\honorific}[1]{\def\@honorific{#1}}
|
||||||
\newcommand*{\firstname}[1]{\def\@firstname{#1}}
|
\newcommand*{\firstname}[1]{\def\@firstname{#1}}
|
||||||
\newcommand*{\lastname}[1]{\def\@lastname{#1}}
|
\newcommand*{\lastname}[1]{\def\@lastname{#1}}
|
||||||
\newcommand*{\familyname}[1]{\def\@lastname{#1}}
|
\newcommand*{\familyname}[1]{\def\@lastname{#1}}
|
||||||
|
@ -407,7 +410,7 @@
|
||||||
% Usage: \makecvheader
|
% Usage: \makecvheader
|
||||||
\newcommand*{\makecvheader}{%
|
\newcommand*{\makecvheader}{%
|
||||||
\begin{center}
|
\begin{center}
|
||||||
\headerfirstnamestyle{\@firstname}\headerlastnamestyle{{}\acvHeaderNameDelim\@lastname}%
|
\headerfirstnamestyle{\@honorific\ \@firstname}\headerlastnamestyle{{}\acvHeaderNameDelim\@lastname}%
|
||||||
\\[\acvHeaderAfterNameSkip]%
|
\\[\acvHeaderAfterNameSkip]%
|
||||||
\ifthenelse{\isundefined{\@position}}{}{\headerpositionstyle{\@position\\[\acvHeaderAfterPositionSkip]}}%
|
\ifthenelse{\isundefined{\@position}}{}{\headerpositionstyle{\@position\\[\acvHeaderAfterPositionSkip]}}%
|
||||||
\ifthenelse{\isundefined{\@address}}{}{\headeraddressstyle{\@address\\[\acvHeaderAfterAddressSkip]}}%
|
\ifthenelse{\isundefined{\@address}}{}{\headeraddressstyle{\@address\\[\acvHeaderAfterAddressSkip]}}%
|
||||||
|
|
Loading…
Reference in a new issue