diff --git a/examples/template-es.pdf b/examples/template-es.pdf index 298b4c5..54521c3 100644 Binary files a/examples/template-es.pdf and b/examples/template-es.pdf differ diff --git a/examples/template-zh.pdf b/examples/template-zh.pdf index e6224ec..3c15b05 100644 Binary files a/examples/template-zh.pdf and b/examples/template-zh.pdf differ diff --git a/examples/template.pdf b/examples/template.pdf index 167ce43..129f9af 100644 Binary files a/examples/template.pdf and b/examples/template.pdf differ diff --git a/examples/template_banking_black.pdf b/examples/template_banking_black.pdf index e55fe50..b6fd585 100644 Binary files a/examples/template_banking_black.pdf and b/examples/template_banking_black.pdf differ diff --git a/examples/template_banking_red.pdf b/examples/template_banking_red.pdf index c8832e4..fd8469b 100644 Binary files a/examples/template_banking_red.pdf and b/examples/template_banking_red.pdf differ diff --git a/examples/template_casual_orange.pdf b/examples/template_casual_orange.pdf index a958c2e..ef82174 100644 Binary files a/examples/template_casual_orange.pdf and b/examples/template_casual_orange.pdf differ diff --git a/examples/template_classic_green.pdf b/examples/template_classic_green.pdf index ccbd4e6..8b5f17e 100644 Binary files a/examples/template_classic_green.pdf and b/examples/template_classic_green.pdf differ diff --git a/examples/template_multibib.pdf b/examples/template_multibib.pdf index 71c3c81..4543238 100644 Binary files a/examples/template_multibib.pdf and b/examples/template_multibib.pdf differ diff --git a/examples/template_oldstyle_grey.pdf b/examples/template_oldstyle_grey.pdf index f797e9e..861538a 100644 Binary files a/examples/template_oldstyle_grey.pdf and b/examples/template_oldstyle_grey.pdf differ diff --git a/moderncv.cls b/moderncv.cls index 84584d8..fc7ab3b 100644 --- a/moderncv.cls +++ b/moderncv.cls @@ -112,8 +112,14 @@ {} %\fi -% symbols like \Telefon, \Mobilefone, \Letter and \Email -\RequirePackage{marvosym} +% MarVoSym font for symbols +%\RequirePackage{marvosym} +\newcommand*{\marvosymbol}[1]{} +%\ifxetexorluatex +% \renewcommand*{\marvosymbol}[1]{{\fontspec{MarVoSym}\char#1}} +%\else + \renewcommand*{\marvosymbol}[1]{{\fontfamily{mvs}\fontencoding{U}\fontseries{m}\fontshape{n}\selectfont\char#1}} +%\fi % hyper links (hyperref is loaded at the end of the preamble to pass options required by loaded packages such as CJK) \RequirePackage{url} @@ -211,7 +217,7 @@ \newcommand*{\address}[2]{\def\@addressstreet{#1}\def\@addresscity{#2}} \newcommand*{\mobile}[1]{\def\@mobile{#1}} \newcommand*{\phone}[1]{\def\@phone{#1}} -\renewcommand*{\fax}[1]{\def\@fax{#1}} +\newcommand*{\fax}[1]{\def\@fax{#1}} \newcommand*{\email}[1]{\def\@email{#1}} \newcommand*{\homepage}[1]{\def\@homepage{#1}} @@ -223,10 +229,10 @@ % symbols % itemize labels (the struts were added to correct inter-item spacing (works for single line items, until a solution is found for multi-line ones...) -\newcommand*{\labelitemi}{\strut\textcolor{color1}{\Neutral}}% alternative" \fontencoding{U}\fontfamily{ding}\selectfont\tiny\symbol{'102} +\newcommand*{\labelitemi}{\strut\textcolor{color1}{\marvosymbol{123}}}% equivalent to \Neutral from marvosym package; alternative: \fontencoding{U}\fontfamily{ding}\selectfont\tiny\symbol{'102} \newcommand*{\labelitemii}{\strut\textcolor{color1}{\large\bfseries-}} -\newcommand*{\labelitemiii}{\strut\textcolor{color1}{\textperiodcentered}}% alternative: \textasteriskcentered; both force the use of the CMSY font, even when lmodern fonts are used :( -\newcommand*{\labelitemiv}{\strut\textcolor{color1}{\textperiodcentered}} +\newcommand*{\labelitemiii}{\strut\textcolor{color1}{\rmfamily\textperiodcentered}}% alternative: \textasteriskcentered; the \rmfamily is required to force Latin Modern fonts when using sans serif, as OMS/lmss/m/n is not defined and gets substituted by OMS/cmsy/m/n +\newcommand*{\labelitemiv}{\labelitemiii} % enumerate labels \renewcommand{\theenumi}{\@arabic\c@enumi} \renewcommand{\theenumii}{\@alph\c@enumii} @@ -235,11 +241,11 @@ % other symbols \newcommand*{\listitemsymbol}{\labelitemi~} \newcommand*{\addresssymbol}{} -\newcommand*{\mobilesymbol}{\Mobilefone~} -\newcommand*{\phonesymbol}{\Telefon~} -\newcommand*{\faxsymbol}{\FAX~} -\newcommand*{\emailsymbol}{\Letter~} -\newcommand*{\homepagesymbol}{{\Large\ComputerMouse}~} +\newcommand*{\mobilesymbol}{} +\newcommand*{\phonesymbol}{} +\newcommand*{\faxsymbol}{} +\newcommand*{\emailsymbol}{} +\newcommand*{\homepagesymbol}{} % fonts \AtBeginDocument{\normalfont\color{color0}} diff --git a/moderncvstylebanking.sty b/moderncvstylebanking.sty index 03e0f0e..d72bf59 100644 --- a/moderncvstylebanking.sty +++ b/moderncvstylebanking.sty @@ -44,7 +44,7 @@ % commands \newcommand*{\maketitlesymbol}{% - {~~~\textbullet~~~}}% \textbullet forces the use of the CMSY font, even when latin modern fonts are used :( + {~~~{\rmfamily\textbullet}~~~}}% the \rmfamily is required to force Latin Modern fonts when using sans serif, as OMS/lmss/m/n is not defined and gets substituted by OMS/cmsy/m/n % internal command to add an element to the footer % it collects the elements in a temporary box, and checks when to flush the box \newsavebox{\maketitlebox}% diff --git a/moderncvstylecasual.sty b/moderncvstylecasual.sty index 861eccc..d004d4c 100644 --- a/moderncvstylecasual.sty +++ b/moderncvstylecasual.sty @@ -30,7 +30,7 @@ % commands % footer symbol used to separate footer elements \newcommand*{\footersymbol}{% - {~~~\textbullet~~~}}% \textbullet forces the use of the CMSY font, even when latin modern fonts are used :( + {~~~{\rmfamily\textbullet}~~~}}% the \rmfamily is required to force Latin Modern fonts when using sans serif, as OMS/lmss/m/n is not defined and gets substituted by OMS/cmsy/m/n % internal command to add an element to the footer % it collects the elements in a temporary box, and checks when to flush the box \newsavebox{\footerbox}% diff --git a/moderncvstyleclassic.sty b/moderncvstyleclassic.sty index 4e116ca..251c7d1 100644 --- a/moderncvstyleclassic.sty +++ b/moderncvstyleclassic.sty @@ -37,6 +37,13 @@ {} %\fi +% symbols +\renewcommand*{\mobilesymbol}{\marvosymbol{72}~} +\renewcommand*{\phonesymbol}{\marvosymbol{84}~} +\renewcommand*{\faxsymbol}{\marvosymbol{117}~} +\renewcommand*{\emailsymbol}{\marvosymbol{66}~} +\renewcommand*{\homepagesymbol}{{\Large\marvosymbol{205}}~} + %------------------------------------------------------------------------------- % resume style definition