Implemented the icon set selection mechanism
This commit is contained in:
@ -2,6 +2,12 @@ version 1.4.0 (dd MMM 2013)
|
||||
- deprecated \phone, \mobile and \fax in favour of \phone[<type>], where <type>
|
||||
can be "mobile", "fixed" (default) or "fax".
|
||||
- deprecated \firstname and \familyname in favour of \name{<first>}{<last>}.
|
||||
- added a new mechanism to select amongs different possible icon sets:
|
||||
\moderncvicons{<iconsetname>}, where <iconsetname> can be "marvosym" (used by
|
||||
default in the "banking", "casual" and "classic" style variants) or "letters"
|
||||
(used by default in the "oldstyle" style variant). \moderncvicons should
|
||||
always be called after \moderncvstyle in order to override the style variants
|
||||
defaults.
|
||||
- added a command to control the font of the page numbering: \pagenumberfont.
|
||||
- removed the use of the suffix package.
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
20
moderncv.cls
20
moderncv.cls
@ -110,15 +110,6 @@
|
||||
{}
|
||||
%\fi
|
||||
|
||||
% 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)
|
||||
\newcommand*\pdfpagemode{UseNone}% do not show thumbnails or bookmarks on opening (on supporting browsers); set \pdfpagemode to "UseOutlines" to show bookmarks
|
||||
\RequirePackage{url}
|
||||
@ -257,7 +248,7 @@
|
||||
|
||||
% 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}{\marvosymbol{123}}}% equivalent to \Neutral from marvosym package; alternative: \fontencoding{U}\fontfamily{ding}\selectfont\tiny\symbol{'102}
|
||||
\newcommand*{\labelitemi}{\strut\textcolor{color1}{\large\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
|
||||
\newcommand*{\labelitemii}{\strut\textcolor{color1}{\large\bfseries-}}
|
||||
\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}
|
||||
@ -286,14 +277,21 @@
|
||||
% usage: \makefooter
|
||||
\newcommand*{\makefooter}{}%
|
||||
|
||||
% loads a style scheme
|
||||
% loads a style variant
|
||||
% usage: \moderncvstyle{<style variant name>}
|
||||
\newcommand*{\moderncvstyle}[1]{
|
||||
\RequirePackage{moderncvstyle#1}}
|
||||
|
||||
% loads a color scheme
|
||||
% usage: \moderncvcolor{<color scheme name>}
|
||||
\newcommand*{\moderncvcolor}[1]{
|
||||
\RequirePackage{moderncvcolor#1}}
|
||||
|
||||
% loads an icons set
|
||||
% usage: \moderncvicons{<icon set name>}
|
||||
\newcommand*{\moderncvicons}[1]{
|
||||
\RequirePackage{moderncvicons#1}}
|
||||
|
||||
% recomputes all automatic lengths
|
||||
\newcommand*{\recomputelengths}{\recomputecvlengths}
|
||||
\AtBeginDocument{\recomputelengths{}}
|
||||
|
||||
50
moderncviconsletters.sty
Normal file
50
moderncviconsletters.sty
Normal file
@ -0,0 +1,50 @@
|
||||
%% start of file `moderncviconsletters.sty'.
|
||||
%% Copyright 2013-2013 Xavier Danaux (xdanaux@gmail.com).
|
||||
%
|
||||
% This work may be distributed and/or modified under the
|
||||
% conditions of the LaTeX Project Public License version 1.3c,
|
||||
% available at http://www.latex-project.org/lppl/.
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% identification
|
||||
%-------------------------------------------------------------------------------
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{moderncviconsmarvosym}[2013/02/09 v1.3.0 modern curriculum vitae and letter icons: letters]
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% required packages
|
||||
%-------------------------------------------------------------------------------
|
||||
% MarVoSym font
|
||||
%\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
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% symbols definition
|
||||
%-------------------------------------------------------------------------------
|
||||
\renewcommand*{\labelitemi}{\strut\textcolor{color1}{\marvosymbol{123}}}% equivalent to \Neutral from marvosym package; alternative: \fontencoding{U}\fontfamily{ding}\selectfont\tiny\symbol{'102}
|
||||
%\renewcommand*{\labelitemii}{\strut\textcolor{color1}{\large\bfseries-}}% no change from default in moderncv.cls
|
||||
%\renewcommand*{\labelitemiii}{\strut\textcolor{color1}{\rmfamily\textperiodcentered}}% no change from default in moderncv.cls
|
||||
%\renewcommand*{\labelitemiv}{\labelitemiii}% no change from default in moderncv.cls
|
||||
|
||||
\renewcommand*{\addresssymbol}{}
|
||||
\renewcommand*{\mobilephonesymbol}{\textbf{M}~}
|
||||
\renewcommand*{\fixedphonesymbol}{\textbf{T}~}
|
||||
\renewcommand*{\faxphonesymbol}{\textbf{F}~}
|
||||
\renewcommand*{\emailsymbol}{\textbf{E}~}
|
||||
\renewcommand*{\homepagesymbol}{}
|
||||
|
||||
\renewcommand*{\listitemsymbol}{\labelitemi~}
|
||||
|
||||
|
||||
\endinput
|
||||
|
||||
|
||||
%% end of file `moderncviconsletters.sty'.
|
||||
48
moderncviconsmarvosym.sty
Normal file
48
moderncviconsmarvosym.sty
Normal file
@ -0,0 +1,48 @@
|
||||
%% start of file `moderncviconsmarvosym.sty'.
|
||||
%% Copyright 2013-2013 Xavier Danaux (xdanaux@gmail.com).
|
||||
%
|
||||
% This work may be distributed and/or modified under the
|
||||
% conditions of the LaTeX Project Public License version 1.3c,
|
||||
% available at http://www.latex-project.org/lppl/.
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% identification
|
||||
%-------------------------------------------------------------------------------
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{moderncviconsmarvosym}[2013/02/09 v1.3.0 modern curriculum vitae and letter icons: marvosym]
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% required packages
|
||||
%-------------------------------------------------------------------------------
|
||||
% MarVoSym font
|
||||
%\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
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% symbols definition
|
||||
%-------------------------------------------------------------------------------
|
||||
\renewcommand*{\labelitemi}{\strut\textcolor{color1}{\marvosymbol{123}}}% equivalent to \Neutral from marvosym package; alternative: \fontencoding{U}\fontfamily{ding}\selectfont\tiny\symbol{'102}
|
||||
%\renewcommand*{\labelitemii}{\strut\textcolor{color1}{\large\bfseries-}}% no change from default in moderncv.cls
|
||||
%\renewcommand*{\labelitemiii}{\strut\textcolor{color1}{\rmfamily\textperiodcentered}}% no change from default in moderncv.cls
|
||||
%\renewcommand*{\labelitemiv}{\labelitemiii}% no change from default in moderncv.cls
|
||||
|
||||
\renewcommand*{\addresssymbol}{}
|
||||
\renewcommand*{\mobilephonesymbol}{\marvosymbol{72}~}
|
||||
\renewcommand*{\fixedphonesymbol}{\marvosymbol{84}~}
|
||||
\renewcommand*{\faxphonesymbol}{\marvosymbol{117}~}
|
||||
\renewcommand*{\emailsymbol}{\marvosymbol{66}~}
|
||||
\renewcommand*{\homepagesymbol}{{\Large\marvosymbol{205}}~}
|
||||
|
||||
|
||||
\endinput
|
||||
|
||||
|
||||
%% end of file `moderncviconsmarvosym.sty'.
|
||||
@ -18,11 +18,6 @@
|
||||
%-------------------------------------------------------------------------------
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% package options
|
||||
%-------------------------------------------------------------------------------
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% overall style definition
|
||||
%-------------------------------------------------------------------------------
|
||||
@ -43,11 +38,7 @@
|
||||
%\fi
|
||||
|
||||
% symbols
|
||||
\renewcommand*{\mobilephonesymbol}{\marvosymbol{72}~}
|
||||
\renewcommand*{\fixedphonesymbol}{\marvosymbol{84}~}
|
||||
\renewcommand*{\faxphonesymbol}{\marvosymbol{117}~}
|
||||
\renewcommand*{\emailsymbol}{\marvosymbol{66}~}
|
||||
\renewcommand*{\homepagesymbol}{{\Large\marvosymbol{205}}~}
|
||||
\moderncvicons{marvosym}
|
||||
|
||||
% commands
|
||||
\newcommand*{\maketitlesymbol}{%
|
||||
|
||||
@ -16,11 +16,6 @@
|
||||
%-------------------------------------------------------------------------------
|
||||
% required packages
|
||||
%-------------------------------------------------------------------------------
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% package options
|
||||
%-------------------------------------------------------------------------------
|
||||
\RequirePackage{moderncvstyleclassic}
|
||||
|
||||
|
||||
|
||||
@ -16,17 +16,7 @@
|
||||
%-------------------------------------------------------------------------------
|
||||
% required packages
|
||||
%-------------------------------------------------------------------------------
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% package options
|
||||
%-------------------------------------------------------------------------------
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% overall style definition
|
||||
%-------------------------------------------------------------------------------
|
||||
% fonts
|
||||
% Latin Modern fonts
|
||||
%\ifxetexorluatex
|
||||
% \setmainfont{Latin Modern Roman}
|
||||
% \setsansfont{Latin Modern Sans}
|
||||
@ -37,12 +27,12 @@
|
||||
{}
|
||||
%\fi
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% overall style definition
|
||||
%-------------------------------------------------------------------------------
|
||||
% symbols
|
||||
\renewcommand*{\mobilephonesymbol}{\marvosymbol{72}~}
|
||||
\renewcommand*{\fixedphonesymbol}{\marvosymbol{84}~}
|
||||
\renewcommand*{\faxphonesymbol}{\marvosymbol{117}~}
|
||||
\renewcommand*{\emailsymbol}{\marvosymbol{66}~}
|
||||
\renewcommand*{\homepagesymbol}{{\Large\marvosymbol{205}}~}
|
||||
\moderncvicons{marvosym}
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
|
||||
@ -20,11 +20,6 @@
|
||||
\RequirePackage{changepage}
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% package options
|
||||
%-------------------------------------------------------------------------------
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% overall style definition
|
||||
%-------------------------------------------------------------------------------
|
||||
@ -43,13 +38,7 @@
|
||||
%\fi
|
||||
|
||||
% symbols
|
||||
\renewcommand*{\listitemsymbol}{\labelitemi~}
|
||||
\renewcommand*{\addresssymbol}{}
|
||||
\renewcommand*{\mobilephonesymbol}{\textbf{M}~}
|
||||
\renewcommand*{\fixedphonesymbol}{\textbf{T}~}
|
||||
\renewcommand*{\faxphonesymbol}{\textbf{F}~}
|
||||
\renewcommand*{\emailsymbol}{\textbf{E}~}
|
||||
\renewcommand*{\homepagesymbol}{}
|
||||
\moderncvicons{letters}
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user