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

@ -1,3 +1,7 @@
Release: next
- all styles: make the head options 'details' and 'nodetails' available to the user. (previously they were hidden). Oldstyle does not respond too well to nodetails.
- casual style: make the head options 'alternate', 'details' and 'nodetails' available to the user. (previously they were hidden).
version 2.3.1 (2022-02-21) version 2.3.1 (2022-02-21)
- Fix duplicate GitLab icon (#105) - Fix duplicate GitLab icon (#105)
- Revert using detokenize in social links (#97) - Revert using detokenize in social links (#97)

View file

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

View file

@ -16,6 +16,12 @@
\@initializecommand{\moderncvstyleheadoptions}{} \@initializecommand{\moderncvstyleheadoptions}{}
\DeclareOption{left} {\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,left}} \DeclareOption{left} {\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,left}}
\DeclareOption{right}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,right}} \DeclareOption{right}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,right}}
% head options alternate, details and no details
\DeclareOption{alternate}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,alternate}}
\@initializeif{\if@datainhead}\@datainheadfalse
\DeclareOption{details}{\@datainheadtrue\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,details}}
\DeclareOption{nodetails}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,nodetails}}
% toggle use of symbol fonts. % toggle use of symbol fonts.
\@initializeif{\if@symbols}\@symbolsfalse \@initializeif{\if@symbols}\@symbolsfalse
@ -23,7 +29,7 @@
\DeclareOption{nosymbols} {\@symbolsfalse} \DeclareOption{nosymbols} {\@symbolsfalse}
\DeclareOption*{}% avoid choking on unknown options \DeclareOption*{}% avoid choking on unknown options
\ExecuteOptions{right,symbols} \ExecuteOptions{right,symbols,nodetails}
\ProcessOptions*\relax% \ProcessOptions* processes the options in the order provided (i.e., with the later ones possibly overriding the former ones), while \ProcessOptions processes them in the order of the package \ProcessOptions*\relax% \ProcessOptions* processes the options in the order provided (i.e., with the later ones possibly overriding the former ones), while \ProcessOptions processes them in the order of the package
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
@ -53,7 +59,13 @@
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
\moderncvhead[\moderncvstyleheadoptions]{2} \moderncvhead[\moderncvstyleheadoptions]{2}
\moderncvbody{1} \moderncvbody{1}
% include foot only if nodetails option is active since otherwise we have two times the information
% on the page
\if@datainhead
% if data is shown in head, do not include the footer
\else
\moderncvfoot{1} \moderncvfoot{1}
\fi
\endinput \endinput

View file

@ -17,13 +17,17 @@
\DeclareOption{left} {\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,left}} \DeclareOption{left} {\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,left}}
\DeclareOption{right}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,right}} \DeclareOption{right}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,right}}
\@initializeif{\if@datainhead}\@datainheadtrue
\DeclareOption{details}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,details}}
\DeclareOption{nodetails}{\@datainheadfalse\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,nodetails}}
% toggle use of symbol fonts. % toggle use of symbol fonts.
\@initializeif{\if@symbols}\@symbolsfalse \@initializeif{\if@symbols}\@symbolsfalse
\DeclareOption{symbols} {\@symbolstrue} \DeclareOption{symbols} {\@symbolstrue}
\DeclareOption{nosymbols} {\@symbolsfalse} \DeclareOption{nosymbols} {\@symbolsfalse}
\DeclareOption*{}% avoid choking on unknown options \DeclareOption*{}% avoid choking on unknown options
\ExecuteOptions{left,symbols} \ExecuteOptions{left,symbols,details}
\ProcessOptions*\relax% \ProcessOptions* processes the options in the order provided (i.e., with the later ones possibly overriding the former ones), while \ProcessOptions processes them in the order of the package \ProcessOptions*\relax% \ProcessOptions* processes the options in the order provided (i.e., with the later ones possibly overriding the former ones), while \ProcessOptions processes them in the order of the package
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
@ -53,6 +57,13 @@
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
\moderncvhead[\moderncvstyleheadoptions]{1} \moderncvhead[\moderncvstyleheadoptions]{1}
\moderncvbody{1} \moderncvbody{1}
% include foot only if nodetails option is active since otherwise we have two times the information
% on the page
\if@datainhead
% if data is shown in head, do not include the footer
\else
\moderncvfoot{1}
\fi
\endinput \endinput

View file

@ -12,13 +12,19 @@
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{moderncvstylefancy}[2022-02-21 v2.3.1 modern curriculum vitae and letter style scheme: fancy] \ProvidesPackage{moderncvstylefancy}[2022-02-21 v2.3.1 modern curriculum vitae and letter style scheme: fancy]
% headoptions
\@initializecommand{\moderncvstyleheadoptions}{}
\@initializeif{\if@datainhead}\@datainheadtrue
\DeclareOption{details}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,details}}
\DeclareOption{nodetails}{\@datainheadfalse\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,nodetails}}
% toggle use of symbol fonts. % toggle use of symbol fonts.
\@initializeif{\if@symbols}\@symbolsfalse \@initializeif{\if@symbols}\@symbolsfalse
\DeclareOption{symbols} {\@symbolstrue} \DeclareOption{symbols} {\@symbolstrue}
\DeclareOption{nosymbols} {\@symbolsfalse} \DeclareOption{nosymbols} {\@symbolsfalse}
\DeclareOption*{}% avoid choking on unknown options \DeclareOption*{}% avoid choking on unknown options
\ExecuteOptions{symbols} \ExecuteOptions{symbols,details}
\ProcessOptions*\relax% \ProcessOptions* processes the options in the order provided (i.e., with the later ones possibly overriding the former ones), while \ProcessOptions processes them in the order of the package \ProcessOptions*\relax% \ProcessOptions* processes the options in the order provided (i.e., with the later ones possibly overriding the former ones), while \ProcessOptions processes them in the order of the package
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
@ -47,9 +53,16 @@
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
% header, body & footer % header, body & footer
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
\moderncvhead{5} \moderncvhead[\moderncvstyleheadoptions]{5}
\moderncvbody{5} \moderncvbody{5}
% include foot only if nodetails option is active since otherwise we have two times the information
% on the page
\if@datainhead
% if data is shown in head, do not include the footer
\else
\moderncvfoot{1}
\fi
\endinput \endinput

View file

@ -12,13 +12,20 @@
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{moderncvstyleoldstyle}[2022-02-21 v2.3.1 modern curriculum vitae and letter style scheme: oldstyle] \ProvidesPackage{moderncvstyleoldstyle}[2022-02-21 v2.3.1 modern curriculum vitae and letter style scheme: oldstyle]
% headoptions
\@initializecommand{\moderncvstyleheadoptions}{}
\@initializeif{\if@datainhead}\@datainheadtrue
\DeclareOption{details}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,details}}
\DeclareOption{nodetails}{\@datainheadfalse\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,nodetails}}
% toggle use of symbol fonts. % toggle use of symbol fonts.
\@initializeif{\if@symbols}\@symbolsfalse \@initializeif{\if@symbols}\@symbolsfalse
\DeclareOption{symbols} {\@symbolstrue} \DeclareOption{symbols} {\@symbolstrue}
\DeclareOption{nosymbols} {\@symbolsfalse} \DeclareOption{nosymbols} {\@symbolsfalse}
\DeclareOption*{}% avoid choking on unknown options \DeclareOption*{}% avoid choking on unknown options
\ExecuteOptions{symbols} \ExecuteOptions{symbols,details}
\ProcessOptions*\relax% \ProcessOptions* processes the options in the order provided (i.e., with the later ones possibly overriding the former ones), while \ProcessOptions processes them in the order of the package \ProcessOptions*\relax% \ProcessOptions* processes the options in the order provided (i.e., with the later ones possibly overriding the former ones), while \ProcessOptions processes them in the order of the package
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
@ -53,9 +60,15 @@
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
% header, body & footer % header, body & footer
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
\moderncvhead{4} \moderncvhead[\moderncvstyleheadoptions]{4}
\moderncvbody{4} \moderncvbody{4}
% include foot only if nodetails option is active since otherwise we have two times the information
% on the page
\if@datainhead
% if data is shown in head, do not include the footer
\else
\moderncvfoot{1}
\fi
\endinput \endinput