Moved from SVN.
1 %% start of file `moderncvthemecasual.sty'.
2 %% Copyright 2007 Xavier Danaux (xdanaux@gmail.com).
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/.
9 %-------------------------------------------------------------------------------
11 %-------------------------------------------------------------------------------
12 \NeedsTeXFormat{LaTeX2e}
13 \ProvidesPackage{moderncvthemecasual}[2008/06/17 v0.7 modern curriculum vitae style: casual]
16 %-------------------------------------------------------------------------------
18 %-------------------------------------------------------------------------------
21 %-------------------------------------------------------------------------------
23 %-------------------------------------------------------------------------------
25 % blue (default option)
26 \DeclareOption{blue}{}
28 \newif\if@colororange\@colororangefalse
29 \DeclareOption{orange}{\@colororangetrue}
31 \newif\if@colorgreen\@colorgreenfalse
32 \DeclareOption{green}{\@colorgreentrue}
34 \newif\if@colorred\@colorredfalse
35 \DeclareOption{red}{\@colorredtrue}
37 \newif\if@colorgrey\@colorgreyfalse
38 \DeclareOption{grey}{\@colorgreytrue}
41 \newif\if@roman\@romanfalse
42 \DeclareOption{roman}{\@romantrue}
46 \PackageWarning{moderncvthemecasual}{Unknown option ‘\CurrentOption’}}
48 % execute default options
49 \ExecuteOptions{color}
51 % process given options
55 %-------------------------------------------------------------------------------
57 %-------------------------------------------------------------------------------
59 \renewcommand*{\listitemsymbol}{\textbullet}
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}
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}
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
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
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
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
94 \AtBeginDocument{\rmfamily}
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}
108 \renewcommand*{\maketitle}{%
110 \ifthenelse{\isundefined{\@photo}}%
112 {{\color{firstnamecolor}\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}%
114 % \raggedleft{\firstnamestyle{\MakeLowercase{\@firstname}}\familynamestyle{\MakeLowercase{\@familyname}}}\\[-.35em]}%
115 \raggedleft{\firstnamestyle{\@firstname}~\familynamestyle{\@familyname}}\\[-.35em]}%
116 {\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[2.5em]}%
118 \ifthenelse{\isundefined{\@quote}}%
120 {\centering{\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
124 \newif\if@firstfooterelement\@firstfooterelementtrue
125 \providecommand*{\footersymbol}{}
126 \renewcommand*{\footersymbol}{%
127 \if@firstfooterelement%
129 { ~~\color{footersymbolcolor}\textbullet~~~}\fi}
130 \providecommand*{\makefooter}{}
131 \renewcommand*{\makefooter}{%
132 \fancypagestyle{plain}{%
134 \parbox{0.8\textwidth}{%
136 \addressfont\color{addresscolor}%
137 \ifthenelse{\isundefined{\@addressstreet}}{}{%
138 \addresssymbol~\@addressstreet%
139 \@firstfooterelementfalse%
140 \ifthenelse{\isundefined{\@addresscity}}{}{~--~\@addresscity}\\\@firstfooterelementtrue}%
141 \ifthenelse{\isundefined{\@mobile}}{}{\footersymbol\mobilesymbol~\@mobile\@firstfooterelementfalse}%
142 \ifthenelse{\isundefined{\@phone}}{}{\footersymbol\phonesymbol~\@phone\@firstfooterelementfalse}%
143 \ifthenelse{\isundefined{\@fax}}{}{\footersymbol\faxsymbol~\@fax\@firstfooterelementfalse}%
144 \ifthenelse{\isundefined{\@email}}{}{\footersymbol\emailsymbol~\emaillink{\@email}\@firstfooterelementfalse}%
145 \ifthenelse{\isundefined{\@extrainfo}}{}{\footersymbol\@extrainfo\@firstfooterelementfalse}}}%
148 \AtBeginDocument{\makefooter}
154 %% end of file `moderncvthemecasual.sty'.