diff options
author | Norbert Preining <norbert@preining.info> | 2021-07-29 03:00:44 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-07-29 03:00:44 +0000 |
commit | d3fd3960d8402d6f9621d35febef86b241808d99 (patch) | |
tree | 0bb90e6c165e75a557f7ca4ba2b83b319091cd71 /macros/latex/contrib/moderncv/moderncvstyleoldstyle.sty | |
parent | f083b031d6785bf31f4b35408aca161e81b935f6 (diff) |
CTAN sync 202107290300
Diffstat (limited to 'macros/latex/contrib/moderncv/moderncvstyleoldstyle.sty')
-rw-r--r-- | macros/latex/contrib/moderncv/moderncvstyleoldstyle.sty | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/macros/latex/contrib/moderncv/moderncvstyleoldstyle.sty b/macros/latex/contrib/moderncv/moderncvstyleoldstyle.sty index 13e270c85e..6a2921e681 100644 --- a/macros/latex/contrib/moderncv/moderncvstyleoldstyle.sty +++ b/macros/latex/contrib/moderncv/moderncvstyleoldstyle.sty @@ -10,13 +10,17 @@ % identification %------------------------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{moderncvstyleoldstyle}[2021/01/21 v2.1.0 modern curriculum vitae and letter style scheme: oldstyle] +\ProvidesPackage{moderncvstyleoldstyle}[2021-07-28 v2.2.0 modern curriculum vitae and letter style scheme: oldstyle] + +% toggle use of symbol fonts. +\@initializeif{\if@symbols}\@symbolsfalse +\DeclareOption{symbols} {\@symbolstrue} +\DeclareOption{nosymbols} {\@symbolsfalse} \DeclareOption*{}% avoid choking on unknown options -\ExecuteOptions{} +\ExecuteOptions{symbols} \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 - %------------------------------------------------------------------------------- % fonts & icons %------------------------------------------------------------------------------- @@ -35,7 +39,15 @@ %\fi % symbols -\moderncvicons{letters} +\if@symbols + \ifxetexorluatex + \moderncvicons{awesome} % use font-awesome symbols if lualatex or xelatex is used + \else + \moderncvicons{marvosym} % use marvosym symbols pdflatex is used + \fi +\else + \moderncvicons{letters} % do not use symbols, use letters +\fi %------------------------------------------------------------------------------- |