mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
make hidden head options available (#150)
add '(no)details' option to head in all styles, plus 'alternate' in casual Co-authored-by: David <forenkram@gmx.de>
This commit is contained in:
parent
5353471fce
commit
b15f06573e
7 changed files with 73 additions and 10 deletions
|
|
@ -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
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
|
|
@ -75,7 +81,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue