source: cv/moderncvthemecasual.sty@ 214

Last change on this file since 214 was 2, checked in by Rick van der Zwet, 15 years ago

Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)

File size: 5.5 KB
Line 
1%% start of file `moderncvthemecasual.sty'.
2%% Copyright 2007 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}
13\ProvidesPackage{moderncvthemecasual}[2007/05/28 v0.6 modern curriculum vitae style: casual]
14
15
16%-------------------------------------------------------------------------------
17% required packages
18%-------------------------------------------------------------------------------
19
20
21%-------------------------------------------------------------------------------
22% package options
23%-------------------------------------------------------------------------------
24% color options
25% blue (default option)
26\DeclareOption{blue}{}
27% orange
28\newif\if@colororange\@colororangefalse
29\DeclareOption{orange}{\@colororangetrue}
30% green
31\newif\if@colorgreen\@colorgreenfalse
32\DeclareOption{green}{\@colorgreentrue}
33% red
34\newif\if@colorred\@colorredfalse
35\DeclareOption{red}{\@colorredtrue}
36% grey
37\newif\if@colorgrey\@colorgreyfalse
38\DeclareOption{grey}{\@colorgreytrue}
39
40% roman option
41\newif\if@roman\@romanfalse
42\DeclareOption{roman}{\@romantrue}
43
44% unused options
45\DeclareOption*{
46 \PackageWarning{moderncvthemecasual}{Unknown option ‘\CurrentOption’}}
47
48% execute default options
49\ExecuteOptions{color}
50
51% process given options
52\ProcessOptions\relax
53
54
55%-------------------------------------------------------------------------------
56% style definition
57%-------------------------------------------------------------------------------
58% symbols used
59\renewcommand*{\listitemsymbol}{\textbullet}
60
61% colors
62\definecolor{firstnamecolor}{rgb}{0.65,0.65,0.65}
63\definecolor{familynamecolor}{rgb}{0.45,0.45,0.45}
64\definecolor{quotecolor}{rgb}{0.35,0.35,0.35}
65\definecolor{addresscolor}{rgb}{0.35,0.35,0.35}
66% default blue color
67 \definecolor{sectionrectanglecolor}{rgb}{0.25,0.50,0.75}
68 \definecolor{sectiontitlecolor}{rgb}{0.20,0.40,0.65}
69 \definecolor{subsectioncolor}{rgb}{0.20,0.40,0.65}
70 \definecolor{footersymbolcolor}{rgb}{0.25,0.50,0.75}
71\if@colororange
72 \definecolor{sectionrectanglecolor}{rgb}{1.00,0.65,0.20}
73 \definecolor{sectiontitlecolor}{rgb}{0.95,0.55,0.15}
74 \definecolor{subsectioncolor}{rgb}{0.95,0.55,0.15}
75 \definecolor{footersymbolcolor}{rgb}{0.95,0.55,0.15}\fi
76\if@colorgreen
77 \definecolor{sectionrectanglecolor}{rgb}{0.55,0.85,0.35}
78 \definecolor{sectiontitlecolor}{rgb}{0.30,0.65,0.15}
79 \definecolor{subsectioncolor}{rgb}{0.30,0.65,0.15}
80 \definecolor{footersymbolcolor}{rgb}{0.30,0.65,0.15}\fi
81\if@colorred
82 \definecolor{sectionrectanglecolor}{rgb}{1.00,0.30,0.30}
83 \definecolor{sectiontitlecolor}{rgb}{0.95,0.20,0.20}
84 \definecolor{subsectioncolor}{rgb}{0.95,0.20,0.20}
85 \definecolor{footersymbolcolor}{rgb}{0.95,0.20,0.20}\fi
86\if@colorgrey
87 \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}
88 \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35}
89 \definecolor{subsectioncolor}{rgb}{0.35,0.35,0.35}
90 \definecolor{footersymbolcolor}{rgb}{0.35,0.35,0.35}\fi
91
92% fonts
93\if@roman
94 \AtBeginDocument{\rmfamily}
95\else
96 \AtBeginDocument{\sffamily}\fi
97\renewcommand*{\ttdefault}{pcr}
98\renewcommand*{\firstnamefont}{\fontsize{38}{40}\sffamily\mdseries\upshape}
99\renewcommand*{\familynamefont}{\firstnamefont}
100\renewcommand*{\addressfont}{\normalsize\sffamily\mdseries\slshape}
101\renewcommand*{\quotefont}{\large\slshape}
102\renewcommand*{\sectionfont}{\Large\sffamily\mdseries\upshape}
103\renewcommand*{\subsectionfont}{\large\sffamily\mdseries\upshape}
104
105% styles
106
107% maketitle
108\renewcommand*{\maketitle}{%
109 {%
110 \ifthenelse{\isundefined{\@photo}}%
111 {}%
112 {{\color{firstnamecolor}\framebox{\includegraphics[height=\@photoheight]{\@photo}}}}%
113 \hfill%
114 \raggedleft{\firstnamestyle{\MakeLowercase{\@firstname}}\familynamestyle{\MakeLowercase{\@familyname}}}\\[-.35em]}%
115 {\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[2.5em]}%
116% optional quote
117 \ifthenelse{\isundefined{\@quote}}%
118 {}%
119 {\centering{\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
120 }%
121
122% cv footer
123\newif\if@firstfooterelement\@firstfooterelementtrue
124\providecommand*{\footersymbol}{}
125\renewcommand*{\footersymbol}{%
126 \if@firstfooterelement%
127 \else%
128 { ~~\color{footersymbolcolor}\textbullet~~~}\fi}
129\providecommand*{\makefooter}{}
130\renewcommand*{\makefooter}{%
131 \fancypagestyle{plain}{%
132 \fancyfoot[c]{%
133 \parbox{0.8\textwidth}{%
134 \centering%
135 \addressfont\color{addresscolor}%
136 \ifthenelse{\isundefined{\@addressstreet}}{}{%
137 \addresssymbol~\@addressstreet%
138 \@firstfooterelementfalse%
139 \ifthenelse{\isundefined{\@addresscity}}{}{\footersymbol\@addresscity}\\\@firstfooterelementtrue}%
140 \ifthenelse{\isundefined{\@mobile}}{}{\footersymbol\mobilesymbol~\@mobile\@firstfooterelementfalse}%
141 \ifthenelse{\isundefined{\@phone}}{}{\footersymbol\phonesymbol~\@phone\@firstfooterelementfalse}%
142 \ifthenelse{\isundefined{\@fax}}{}{\footersymbol\faxsymbol~\@fax\@firstfooterelementfalse}%
143 \ifthenelse{\isundefined{\@email}}{}{\footersymbol\emailsymbol~\emaillink{\@email}\@firstfooterelementfalse}%
144 \ifthenelse{\isundefined{\@extrainfo}}{}{\footersymbol\@extrainfo\@firstfooterelementfalse}}}%
145 }%
146 \pagestyle{plain}}
147\AtBeginDocument{\makefooter}
148
149
150\endinput
151
152
153%% end of file `moderncvthemecasual.sty'.
Note: See TracBrowser for help on using the repository browser.