diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/moderncv/moderncvstylefancy.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/moderncv/moderncvstylefancy.sty | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncvstylefancy.sty b/Master/texmf-dist/tex/latex/moderncv/moderncvstylefancy.sty index 940f943d52f..5756eec86be 100644 --- a/Master/texmf-dist/tex/latex/moderncv/moderncvstylefancy.sty +++ b/Master/texmf-dist/tex/latex/moderncv/moderncvstylefancy.sty @@ -10,10 +10,15 @@ % identification %------------------------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{moderncvstylefancy}[2021/01/21 v2.1.0 modern curriculum vitae and letter style scheme: fancy] +\ProvidesPackage{moderncvstylefancy}[2021-07-28 v2.2.0 modern curriculum vitae and letter style scheme: fancy] + +% 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 %------------------------------------------------------------------------------- @@ -30,12 +35,16 @@ {} %\fi + % symbols -\RequirePackage{ifxetex} -\ifxetexorluatex - \moderncvicons{awesome} +\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{marvosym} + \moderncvicons{letters} % do not use symbols, use letters \fi |