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
|
|
@ -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}
|
||||
|
|
@ -86,9 +92,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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue