From 018e281edf7501ceb80538d9f9091aabceca4871 Mon Sep 17 00:00:00 2001 From: David Date: Sun, 24 Jan 2021 14:53:10 +0100 Subject: [PATCH] =?UTF-8?q?fix=20spelling=20of=20r=C3=A9sum=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- moderncvstylebanking.sty | 18 ++++++++++++++---- moderncvstylecasual.sty | 17 +++++++++++++---- moderncvstyleclassic.sty | 17 +++++++++++++---- moderncvstylefancy.sty | 18 ++++++++++++++---- moderncvstyleoldstyle.sty | 26 ++++++++++++++++---------- template.tex | 3 +-- 6 files changed, 71 insertions(+), 28 deletions(-) diff --git a/moderncvstylebanking.sty b/moderncvstylebanking.sty index 6d98c37..7ca0253 100644 --- a/moderncvstylebanking.sty +++ b/moderncvstylebanking.sty @@ -24,8 +24,13 @@ \DeclareOption{center} {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,center}} \DeclareOption{right} {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,right}} +% toggle use of symbol fonts. +\@initializeif{\if@symbols}\@symbolsfalse +\DeclareOption{symbols} {\@symbolstrue} +\DeclareOption{nosymbols} {\@symbolsfalse} + \DeclareOption*{}% avoid choking on unknown options -\ExecuteOptions{mixedrules,left} +\ExecuteOptions{mixedrules,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 @@ -49,13 +54,18 @@ %\fi % symbols -\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 + %------------------------------------------------------------------------------- % header, body & footer %------------------------------------------------------------------------------- diff --git a/moderncvstylecasual.sty b/moderncvstylecasual.sty index f752d49..6aed657 100644 --- a/moderncvstylecasual.sty +++ b/moderncvstylecasual.sty @@ -17,8 +17,13 @@ \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{right} +\ExecuteOptions{right,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 %------------------------------------------------------------------------------- @@ -36,10 +41,14 @@ %\fi % symbols -\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 diff --git a/moderncvstyleclassic.sty b/moderncvstyleclassic.sty index 5fe021c..0a5229d 100644 --- a/moderncvstyleclassic.sty +++ b/moderncvstyleclassic.sty @@ -17,8 +17,13 @@ \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 %------------------------------------------------------------------------------- @@ -36,10 +41,14 @@ %\fi % symbols -\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 diff --git a/moderncvstylefancy.sty b/moderncvstylefancy.sty index dcd194e..ecce008 100644 --- a/moderncvstylefancy.sty +++ b/moderncvstylefancy.sty @@ -12,8 +12,13 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{moderncvstylefancy}[2021/01/21 v2.1.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,11 +35,16 @@ {} %\fi + % symbols -\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 diff --git a/moderncvstyleoldstyle.sty b/moderncvstyleoldstyle.sty index 5018acd..712fab9 100644 --- a/moderncvstyleoldstyle.sty +++ b/moderncvstyleoldstyle.sty @@ -12,10 +12,14 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{moderncvstyleoldstyle}[2021/01/21 v2.1.0 modern curriculum vitae and letter style scheme: oldstyle] -\DeclareOption*{}% avoid choking on unknown options -\ExecuteOptions{} -\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 +% toggle use of symbol fonts. +\@initializeif{\if@symbols}\@symbolsfalse +\DeclareOption{symbols} {\@symbolstrue} +\DeclareOption{nosymbols} {\@symbolsfalse} +\DeclareOption*{}% avoid choking on unknown options +\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,13 +39,15 @@ %\fi % symbols -\moderncvicons{letters} -% % other options for symbols symbols -% \ifxetexorluatex -% \moderncvicons{awesome} -% \else -% \moderncvicons{marvosym} -% \fi +\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 %------------------------------------------------------------------------------- diff --git a/template.tex b/template.tex index 77ea54a..c55bc37 100644 --- a/template.tex +++ b/template.tex @@ -23,10 +23,9 @@ %\setlength{\hintscolumnwidth}{3cm} % if you want to change the width of the column with the dates %\setlength{\makecvheadnamewidth}{10cm} % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks... - % personal data \name{John}{Doe} -\title{Resumé title} % optional, remove / comment the line if not wanted +\title{Résumé title} % optional, remove / comment the line if not wanted \address{street and number}{postcode city}{country}% optional, remove / comment the line if not wanted; the "postcode city" and "country" arguments can be omitted or provided empty \phone[mobile]{+1~(234)~567~890} % optional, remove / comment the line if not wanted; the optional "type" of the phone can be "mobile" (default), "fixed" or "fax" \phone[fixed]{+2~(345)~678~901}