summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/moderncv/moderncvstyleoldstyle.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-07-28 20:47:32 +0000
committerKarl Berry <karl@freefriends.org>2021-07-28 20:47:32 +0000
commitf07c365092259cb4bfaa8f7122ea872ca5aa0a00 (patch)
tree7ddcbff80aa951907955ce419afaa4d379c49ef7 /Master/texmf-dist/tex/latex/moderncv/moderncvstyleoldstyle.sty
parent1c47c6c240a755d127ffee413c5846acdefd33fa (diff)
moderncv (28jul21)
git-svn-id: svn://tug.org/texlive/trunk@60103 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/moderncv/moderncvstyleoldstyle.sty')
-rw-r--r--Master/texmf-dist/tex/latex/moderncv/moderncvstyleoldstyle.sty20
1 files changed, 16 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncvstyleoldstyle.sty b/Master/texmf-dist/tex/latex/moderncv/moderncvstyleoldstyle.sty
index 13e270c85e9..6a2921e6817 100644
--- a/Master/texmf-dist/tex/latex/moderncv/moderncvstyleoldstyle.sty
+++ b/Master/texmf-dist/tex/latex/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
%-------------------------------------------------------------------------------