close Warning: Can't use blame annotator:
No changeset 422 in the repository

source: cv/moderncvthemecasual.sty@ 422

Last change on this file since 422 was 222, checked in by Rick van der Zwet, 14 years ago

Update of CV latex package

File size: 5.8 KB
RevLine 
1%% start of file `moderncvthemecasual.sty'.
2%% Copyright 2006-2010 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}[2010/08/03 v0.12 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
60% colors
61\definecolor{firstnamecolor}{rgb}{0.65,0.65,0.65}
62\definecolor{familynamecolor}{rgb}{0.45,0.45,0.45}
63\definecolor{quotecolor}{rgb}{0.35,0.35,0.35}
64\definecolor{addresscolor}{rgb}{0.35,0.35,0.35}
65% default blue color
66 \definecolor{sectionrectanglecolor}{rgb}{0.25,0.50,0.75}
67 \definecolor{sectiontitlecolor}{rgb}{0.20,0.40,0.65}
68 \definecolor{subsectioncolor}{rgb}{0.20,0.40,0.65}
69 \definecolor{footersymbolcolor}{rgb}{0.25,0.50,0.75}
70\if@colororange
71 \definecolor{sectionrectanglecolor}{rgb}{1.00,0.65,0.20}
72 \definecolor{sectiontitlecolor}{rgb}{0.95,0.55,0.15}
73 \definecolor{subsectioncolor}{rgb}{0.95,0.55,0.15}
74 \definecolor{footersymbolcolor}{rgb}{0.95,0.55,0.15}\fi
75\if@colorgreen
76 \definecolor{sectionrectanglecolor}{rgb}{0.55,0.85,0.35}
77 \definecolor{sectiontitlecolor}{rgb}{0.30,0.65,0.15}
78 \definecolor{subsectioncolor}{rgb}{0.30,0.65,0.15}
79 \definecolor{footersymbolcolor}{rgb}{0.30,0.65,0.15}\fi
80\if@colorred
81 \definecolor{sectionrectanglecolor}{rgb}{1.00,0.30,0.30}
82 \definecolor{sectiontitlecolor}{rgb}{0.95,0.20,0.20}
83 \definecolor{subsectioncolor}{rgb}{0.95,0.20,0.20}
84 \definecolor{footersymbolcolor}{rgb}{0.95,0.20,0.20}\fi
85\if@colorgrey
86 \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}
87 \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35}
88 \definecolor{subsectioncolor}{rgb}{0.35,0.35,0.35}
89 \definecolor{footersymbolcolor}{rgb}{0.35,0.35,0.35}\fi
90
91% fonts
92\if@roman
93 \AtBeginDocument{\rmfamily}
94\else
95 \AtBeginDocument{\sffamily}\fi
96\renewcommand*{\ttdefault}{pcr}
97\renewcommand*{\firstnamefont}{\fontsize{38}{40}\sffamily\mdseries\upshape}
98\renewcommand*{\familynamefont}{\firstnamefont}
99\renewcommand*{\addressfont}{\normalsize\sffamily\mdseries\slshape}
100\renewcommand*{\quotefont}{\large\slshape}
101\renewcommand*{\sectionfont}{\Large\sffamily\mdseries\upshape}
102\renewcommand*{\subsectionfont}{\large\sffamily\mdseries\upshape}
103
104% styles
105
106% maketitle
107\renewcommand*{\maketitle}{%
108 {%
109 \ifthenelse{\isundefined{\@photo}}%
110 {}%
111 {{\color{firstnamecolor}\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}%
112 \hfill%
113% \raggedleft{\firstnamestyle{\MakeLowercase{\@firstname}}\familynamestyle{\MakeLowercase{\@familyname}}}\\[-.35em]}%
114 \raggedleft{\firstnamestyle{\@firstname}~\familynamestyle{\@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 \par}% to avoid weird spacing bug at the first section if no blank line is left after \maketitle
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}}{}{~--~\@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{\@homepage}}{}{\footersymbol\homepagesymbol~\httplink{\@homepage}\@firstfooterelementfalse}%
145 \ifthenelse{\isundefined{\@extrainfo}}{}{\footersymbol\@extrainfo\@firstfooterelementfalse}}}%
146 }%
147 \pagestyle{plain}}
148\AtBeginDocument{\makefooter}
149
150
151\endinput
152
153
154%% end of file `moderncvthemecasual.sty'.
Note: See TracBrowser for help on using the repository browser.