summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/moderncv/moderncvstyleclassic.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/moderncv/moderncvstyleclassic.sty')
-rw-r--r--macros/latex/contrib/moderncv/moderncvstyleclassic.sty26
1 files changed, 17 insertions, 9 deletions
diff --git a/macros/latex/contrib/moderncv/moderncvstyleclassic.sty b/macros/latex/contrib/moderncv/moderncvstyleclassic.sty
index 2f94813368..fe4a511eec 100644
--- a/macros/latex/contrib/moderncv/moderncvstyleclassic.sty
+++ b/macros/latex/contrib/moderncv/moderncvstyleclassic.sty
@@ -10,15 +10,20 @@
% identification
%-------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{moderncvstyleclassic}[2021/01/21 v2.1.0 modern curriculum vitae and letter style scheme: classic]
+\ProvidesPackage{moderncvstyleclassic}[2021-07-28 v2.2.0 modern curriculum vitae and letter style scheme: classic]
% head section alignment options: "left" (default) or "right"
\@initializecommand{\moderncvstyleheadoptions}{}
\DeclareOption{left} {\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,left}}
\DeclareOption{right}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,right}}
+% toggle use of symbol fonts.
+\@initializeif{\if@symbols}\@symbolsfalse
+\DeclareOption{symbols} {\@symbolstrue}
+\DeclareOption{nosymbols} {\@symbolsfalse}
+
\DeclareOption*{}% avoid choking on unknown options
-\ExecuteOptions{left}
+\ExecuteOptions{left,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,17 +35,20 @@
% \setsansfont{Latin Modern Sans}
% \setmathfont{Latin Modern Math}
%\else
- \IfFileExists{lmodern.sty}%
- {\RequirePackage{lmodern}}%
- {}
+% \IfFileExists{lmodern.sty}%
+% {\RequirePackage{lmodern}}%
+% {}
%\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