make hidden head options available

add '(no)details' option to head in all styles, plus 'alternate' in casual
This commit is contained in:
David 2021-01-26 18:40:59 +01:00 committed by Mark E. Fuller
commit edb8959d51
No known key found for this signature in database
GPG key ID: D1CB9BCF4D87185F
7 changed files with 74 additions and 10 deletions

View file

@ -24,6 +24,12 @@
\DeclareOption{center} {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,center}}
\DeclareOption{right} {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,right}}
% head options
\@initializecommand{\moderncvstyleheadoptions}{}
\@initializeif{\if@datainhead}\@datainheadtrue
\DeclareOption{details}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,details}}
\DeclareOption{nodetails}{\@datainheadfalse\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,nodetails}}
% toggle use of symbol fonts.
\@initializeif{\if@symbols}\@symbolsfalse
\DeclareOption{symbols} {\@symbolstrue}
@ -65,9 +71,14 @@
%-------------------------------------------------------------------------------
% header, body & footer
%-------------------------------------------------------------------------------
\moderncvhead{3}
\moderncvhead[\moderncvstyleheadoptions]{3}
\moderncvbody[\moderncvstylebodyoptions]{3}
\if@datainhead
% if data is shown in head, do not include the footer
\else
\moderncvfoot{1}
\fi
\endinput