summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty
blob: 5fffa579ce49b2bcef357b9e57f1d46e06dbaa09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
%% start of file `moderncvstylecasual.sty'.
%% Copyright 2006 Xavier Danaux.
%
% 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{moderncvstylecasual}[2006/09/09 v0.5 modern curriculum vitae style: casual]


%-------------------------------------------------------------------------------
%                required packages
%-------------------------------------------------------------------------------


%-------------------------------------------------------------------------------
%                package options
%-------------------------------------------------------------------------------
% nocolor option
\newif\if@color\@colortrue
\DeclareOption{nocolor}{\@colorfalse}

% roman option
\newif\if@roman\@romanfalse
\DeclareOption{roman}{\@romantrue}

% unused options
\DeclareOption*{
  \PackageWarning{moderncvstylecasual}{Unknown option ‘\CurrentOption’}}

% execute default options
\ExecuteOptions{color}

% process given options
\ProcessOptions\relax


%-------------------------------------------------------------------------------
%                style definition
%-------------------------------------------------------------------------------
% symbols used 
\renewcommand*{\listitemsymbol}{\textbullet}

% colors
\if@color
  \definecolor{firstnamecolor}{rgb}{0.65,0.65,0.65}
  \definecolor{familynamecolor}{rgb}{0.45,0.45,0.45}
  \definecolor{quotecolor}{rgb}{0.35,0.35,0.35}
  \definecolor{sectionrectanglecolor}{rgb}{0.25,0.5,0.75}
  \definecolor{sectiontitlecolor}{rgb}{0.2,0.4,0.65}
\else
  \definecolor{firstnamecolor}{rgb}{0.5,0.5,0.5}
  \definecolor{familynamecolor}{rgb}{0,0,0}
  \definecolor{quotecolor}{rgb}{0.35,0.35,0.35}
  \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}
  \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35}\fi

% fonts
\if@roman
  \AtBeginDocument{\rmfamily}
\else
  \AtBeginDocument{\sffamily}\fi
\renewcommand*{\ttdefault}{pcr}
\renewcommand*{\firstnamefont}{\fontsize{38}{40}\sffamily\mdseries\upshape}
\renewcommand*{\familynamefont}{\firstnamefont}
\renewcommand*{\addressfont}{\normalsize\sffamily\mdseries\slshape}
\renewcommand*{\quotefont}{\large\slshape}
\renewcommand*{\sectionfont}{\Large\sffamily\mdseries\upshape}
\renewcommand*{\subsectionfont}{\normalsize\sffamily\mdseries\upshape}

% styles

% maketitle
\renewcommand*{\maketitle}{%
  {%
    \ifthenelse{\equal{\@photo}{}}%
      {}%
      {{\color{firstnamecolor}\framebox{\includegraphics[height=\@photoheight]{\@photo}}}}%
    \hfill%
    \raggedleft{\firstnamestyle{\MakeLowercase{\@firstname}}\familynamestyle{\MakeLowercase{\@familyname}}}\\[-.35em]}%
  {\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[2.5em]}}%

% cv footer
\providecommand*{\footersymbol}{}
\renewcommand*{\footersymbol}{\textbullet}
\providecommand*{\footerfont}{}
\renewcommand*{\footerfont}{\addressfont}
\if@color
  \definecolor{footertextcolor}{rgb}{0.35,0.35,0.35}
  \definecolor{footersymbolcolor}{rgb}{0.25,0.5,0.75}
\else
  \definecolor{footertextcolor}{rgb}{0.35,0.35,0.35}
  \definecolor{footersymbolcolor}{rgb}{0.75,0.75,0.75}\fi
\providecommand*{\makefooter}{}
\renewcommand*{\makefooter}{%
  \fancypagestyle{plain}{%
    \fancyfoot[c]{%
      \footerfont%
      \color{footertextcolor}\@address%
      ~~\color{footersymbolcolor}\footersymbol~~%
      \color{footertextcolor}\Telefon~\@phone%
      ~~\color{footersymbolcolor}\footersymbol~~%
      \color{footertextcolor}\Letter~\emaillink{\@email}%
      \ifthenelse{\equal{\@extrainfo}{}}%
        {}%
        {%
          ~~\color{footersymbolcolor}\footersymbol~~%
          \color{footertextcolor}{\@extrainfo}}}}%
  \pagestyle{plain}}
\AtBeginDocument{\makefooter}


\endinput


%% end of file `moderncvstylecasual.sty'.