~xdanaux/moderncv/trunk

121 by Xavier Danaux
Implemented the icon set selection mechanism
1
%% start of file `moderncviconsletters.sty'.
2
%% Copyright 2013-2013 Xavier Danaux (xdanaux@gmail.com).
3
%
4
% This work may be distributed and/or modified under the
5
% conditions of the LaTeX Project Public License version 1.3c,
6
% available at http://www.latex-project.org/lppl/.
7
8
9
%-------------------------------------------------------------------------------
10
%                identification
11
%-------------------------------------------------------------------------------
12
\NeedsTeXFormat{LaTeX2e}
122 by Xavier Danaux
Release 1.4.0
13
\ProvidesPackage{moderncviconsmarvosym}[2013/03/28 v1.4.0 modern curriculum vitae and letter icons: letters]
121 by Xavier Danaux
Implemented the icon set selection mechanism
14
15
16
%-------------------------------------------------------------------------------
17
%                required packages
18
%-------------------------------------------------------------------------------
19
% MarVoSym font
20
%\RequirePackage{marvosym}
21
\newcommand*{\marvosymbol}[1]{}
22
%\ifxetexorluatex
23
%  \renewcommand*{\marvosymbol}[1]{{\fontspec{MarVoSym}\char#1}}
24
%\else
25
  \renewcommand*{\marvosymbol}[1]{{\fontfamily{mvs}\fontencoding{U}\fontseries{m}\fontshape{n}\selectfont\char#1}}
26
%\fi
27
28
29
%-------------------------------------------------------------------------------
30
%                symbols definition
31
%-------------------------------------------------------------------------------
128 by Xavier Danaux
Added a command to showcase social accounts
32
\renewcommand*{\labelitemi}          {\strut\textcolor{color1}{\marvosymbol{123}}}            % equivalent to \Neutral from marvosym package; alternative: \fontencoding{U}\fontfamily{ding}\selectfont\tiny\symbol{'102}
33
%\renewcommand*{\labelitemii}         {\strut\textcolor{color1}{\large\bfseries-}}            % no change from default in moderncv.cls
34
%\renewcommand*{\labelitemiii}        {\strut\textcolor{color1}{\rmfamily\textperiodcentered}}% no change from default in moderncv.cls
35
%\renewcommand*{\labelitemiv}         {\labelitemiii}                                         % no change from default in moderncv.cls
36
37
\renewcommand*{\addresssymbol}       {}
38
\renewcommand*{\mobilephonesymbol}   {\hbox to 1.1em{\textbf{M}}~}% 1em is the width of the M capital in most fonts
39
\renewcommand*{\fixedphonesymbol}    {\hbox to 1.1em{\textbf{T}}~}
40
\renewcommand*{\faxphonesymbol}      {\hbox to 1.1em{\textbf{F}}~}
41
\renewcommand*{\emailsymbol}         {\hbox to 1.1em{\textbf{E}}~}
42
\renewcommand*{\homepagesymbol}      {\hbox to 1.1em{\textbf{W}}~}
43
\renewcommand*{\linkedinsocialsymbol}{\hbox to 1.1em{\textbf{in}}~}
44
\renewcommand*{\twittersocialsymbol} {\hbox to 1.1em{\textbf{tw}}~}
45
\renewcommand*{\githubsocialsymbol}  {\hbox to 1.1em{\textbf{gh}}~}
46
47
\renewcommand*{\listitemsymbol}      {\labelitemi~}
121 by Xavier Danaux
Implemented the icon set selection mechanism
48
49
50
\endinput
51
52
53
%% end of file `moderncviconsletters.sty'.