diff --git a/CHANGELOG b/CHANGELOG index 245eda7..dd24852 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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) - Fix duplicate GitLab icon (#105) - Revert using detokenize in social links (#97) diff --git a/moderncvheadvi.sty b/moderncvheadvi.sty index abda829..77f380c 100644 --- a/moderncvheadvi.sty +++ b/moderncvheadvi.sty @@ -24,7 +24,7 @@ \DeclareOption{right} {\@leftfalse\@righttrue} \DeclareOption*{}% avoid choking on unknown options -\ExecuteOptions{details, left} +\ExecuteOptions{details,left} \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 diff --git a/moderncvstylebanking.sty b/moderncvstylebanking.sty index afc20e5..96ce376 100644 --- a/moderncvstylebanking.sty +++ b/moderncvstylebanking.sty @@ -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 diff --git a/moderncvstylecasual.sty b/moderncvstylecasual.sty index eba5df6..1ae0615 100644 --- a/moderncvstylecasual.sty +++ b/moderncvstylecasual.sty @@ -16,6 +16,12 @@ \@initializecommand{\moderncvstyleheadoptions}{} \DeclareOption{left} {\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,left}} \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. \@initializeif{\if@symbols}\@symbolsfalse @@ -23,7 +29,7 @@ \DeclareOption{nosymbols} {\@symbolsfalse} \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 %------------------------------------------------------------------------------- @@ -53,7 +59,13 @@ %------------------------------------------------------------------------------- \moderncvhead[\moderncvstyleheadoptions]{2} \moderncvbody{1} -\moderncvfoot{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 diff --git a/moderncvstyleclassic.sty b/moderncvstyleclassic.sty index 3018cc6..603f839 100644 --- a/moderncvstyleclassic.sty +++ b/moderncvstyleclassic.sty @@ -17,13 +17,17 @@ \DeclareOption{left} {\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,left}} \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. \@initializeif{\if@symbols}\@symbolsfalse \DeclareOption{symbols} {\@symbolstrue} \DeclareOption{nosymbols} {\@symbolsfalse} \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 %------------------------------------------------------------------------------- @@ -53,6 +57,13 @@ %------------------------------------------------------------------------------- \moderncvhead[\moderncvstyleheadoptions]{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 diff --git a/moderncvstylefancy.sty b/moderncvstylefancy.sty index 56de636..0cee032 100644 --- a/moderncvstylefancy.sty +++ b/moderncvstylefancy.sty @@ -12,13 +12,19 @@ \NeedsTeXFormat{LaTeX2e} \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. \@initializeif{\if@symbols}\@symbolsfalse \DeclareOption{symbols} {\@symbolstrue} \DeclareOption{nosymbols} {\@symbolsfalse} \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 %------------------------------------------------------------------------------- @@ -47,9 +53,16 @@ %------------------------------------------------------------------------------- % header, body & footer %------------------------------------------------------------------------------- -\moderncvhead{5} +\moderncvhead[\moderncvstyleheadoptions]{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 diff --git a/moderncvstyleoldstyle.sty b/moderncvstyleoldstyle.sty index 78225e0..402126f 100644 --- a/moderncvstyleoldstyle.sty +++ b/moderncvstyleoldstyle.sty @@ -12,13 +12,20 @@ \NeedsTeXFormat{LaTeX2e} \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. \@initializeif{\if@symbols}\@symbolsfalse \DeclareOption{symbols} {\@symbolstrue} \DeclareOption{nosymbols} {\@symbolsfalse} \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 %------------------------------------------------------------------------------- @@ -53,9 +60,15 @@ %------------------------------------------------------------------------------- % header, body & footer %------------------------------------------------------------------------------- -\moderncvhead{4} +\moderncvhead[\moderncvstyleheadoptions]{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