mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
make hidden head options available
casual style: make the head options 'alternate', 'details' and 'nodetails' available to the user. (previously they were hidden).
This commit is contained in:
parent
1e320e465f
commit
03add45cf4
2 changed files with 21 additions and 2 deletions
|
|
@ -1,3 +1,10 @@
|
||||||
|
Release: next
|
||||||
|
- casual style: make the head options 'alternate', 'details' and 'nodetails' available to the user. (previously they were hidden).
|
||||||
|
- fix Researcher ID (still) doesn't display Issue #29.
|
||||||
|
- make options 'symbols' and 'nosymbols' available to all styles to toggle whether
|
||||||
|
symbols should be used or not. Include symbols in oldstyle by default.
|
||||||
|
- migrate older newcommand syntax in moderncvcollection.sty to the xparse syntax.
|
||||||
|
|
||||||
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)
|
||||||
|
|
|
||||||
|
|
@ -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}
|
||||||
\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
|
\endinput
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue