
sawine@2: %% start of file `moderncvthemecasual.sty'.
sawine@2: %% Copyright 2007 Xavier Danaux (xdanaux@gmail.com).
sawine@2: %
sawine@2: % This work may be distributed and/or modified under the
sawine@2: % conditions of the LaTeX Project Public License version 1.3c,
sawine@2: % available at http://www.latex-project.org/lppl/.
sawine@2: 
sawine@2: 
sawine@2: %-------------------------------------------------------------------------------
sawine@2: %                identification
sawine@2: %-------------------------------------------------------------------------------
sawine@2: \NeedsTeXFormat{LaTeX2e}
sawine@2: \ProvidesPackage{moderncvthemecasual}[2008/06/17 v0.7 modern curriculum vitae style: casual]
sawine@2: 
sawine@2: 
sawine@2: %-------------------------------------------------------------------------------
sawine@2: %                required packages
sawine@2: %-------------------------------------------------------------------------------
sawine@2: 
sawine@2: 
sawine@2: %-------------------------------------------------------------------------------
sawine@2: %                package options
sawine@2: %-------------------------------------------------------------------------------
sawine@2: % color options
sawine@2: % blue (default option)
sawine@2: \DeclareOption{blue}{}
sawine@2: % orange
sawine@2: \newif\if@colororange\@colororangefalse
sawine@2: \DeclareOption{orange}{\@colororangetrue}
sawine@2: % green
sawine@2: \newif\if@colorgreen\@colorgreenfalse
sawine@2: \DeclareOption{green}{\@colorgreentrue}
sawine@2: % red
sawine@2: \newif\if@colorred\@colorredfalse
sawine@2: \DeclareOption{red}{\@colorredtrue}
sawine@2: % grey
sawine@2: \newif\if@colorgrey\@colorgreyfalse
sawine@2: \DeclareOption{grey}{\@colorgreytrue}
sawine@2: 
sawine@2: % roman option
sawine@2: \newif\if@roman\@romanfalse
sawine@2: \DeclareOption{roman}{\@romantrue}
sawine@2: 
sawine@2: % unused options
sawine@2: \DeclareOption*{
sawine@2:   \PackageWarning{moderncvthemecasual}{Unknown option ‘\CurrentOption’}}
sawine@2: 
sawine@2: % execute default options
sawine@2: \ExecuteOptions{color}
sawine@2: 
sawine@2: % process given options
sawine@2: \ProcessOptions\relax
sawine@2: 
sawine@2: 
sawine@2: %-------------------------------------------------------------------------------
sawine@2: %                style definition
sawine@2: %-------------------------------------------------------------------------------
sawine@2: % symbols used
sawine@2: \renewcommand*{\listitemsymbol}{\textbullet}
sawine@2: 
sawine@2: % colors
sawine@2: \definecolor{firstnamecolor}{rgb}{0.65,0.65,0.65}
sawine@2: \definecolor{familynamecolor}{rgb}{0.45,0.45,0.45}
sawine@2: \definecolor{quotecolor}{rgb}{0.35,0.35,0.35}
sawine@2: \definecolor{addresscolor}{rgb}{0.35,0.35,0.35}
sawine@2: % default blue color
sawine@2:   \definecolor{sectionrectanglecolor}{rgb}{0.25,0.50,0.75}
sawine@2:   \definecolor{sectiontitlecolor}{rgb}{0.20,0.40,0.65}
sawine@2:   \definecolor{subsectioncolor}{rgb}{0.20,0.40,0.65}
sawine@2:   \definecolor{footersymbolcolor}{rgb}{0.25,0.50,0.75}
sawine@2: \if@colororange
sawine@2:   \definecolor{sectionrectanglecolor}{rgb}{1.00,0.65,0.20}
sawine@2:   \definecolor{sectiontitlecolor}{rgb}{0.95,0.55,0.15}
sawine@2:   \definecolor{subsectioncolor}{rgb}{0.95,0.55,0.15}
sawine@2:   \definecolor{footersymbolcolor}{rgb}{0.95,0.55,0.15}\fi
sawine@2: \if@colorgreen
sawine@2:   \definecolor{sectionrectanglecolor}{rgb}{0.55,0.85,0.35}
sawine@2:   \definecolor{sectiontitlecolor}{rgb}{0.30,0.65,0.15}
sawine@2:   \definecolor{subsectioncolor}{rgb}{0.30,0.65,0.15}
sawine@2:   \definecolor{footersymbolcolor}{rgb}{0.30,0.65,0.15}\fi
sawine@2: \if@colorred
sawine@2:   \definecolor{sectionrectanglecolor}{rgb}{1.00,0.30,0.30}
sawine@2:   \definecolor{sectiontitlecolor}{rgb}{0.95,0.20,0.20}
sawine@2:   \definecolor{subsectioncolor}{rgb}{0.95,0.20,0.20}
sawine@2:   \definecolor{footersymbolcolor}{rgb}{0.95,0.20,0.20}\fi
sawine@2: \if@colorgrey
sawine@2:   \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}
sawine@2:   \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35}
sawine@2:   \definecolor{subsectioncolor}{rgb}{0.35,0.35,0.35}
sawine@2:   \definecolor{footersymbolcolor}{rgb}{0.35,0.35,0.35}\fi
sawine@2: 
sawine@2: % fonts
sawine@2: \if@roman
sawine@2:   \AtBeginDocument{\rmfamily}
sawine@2: \else
sawine@2:   \AtBeginDocument{\sffamily}\fi
sawine@2: \renewcommand*{\ttdefault}{pcr}
sawine@2: \renewcommand*{\firstnamefont}{\fontsize{38}{40}\sffamily\mdseries\upshape}
sawine@2: \renewcommand*{\familynamefont}{\firstnamefont}
sawine@2: \renewcommand*{\addressfont}{\normalsize\sffamily\mdseries\slshape}
sawine@2: \renewcommand*{\quotefont}{\large\slshape}
sawine@2: \renewcommand*{\sectionfont}{\Large\sffamily\mdseries\upshape}
sawine@2: \renewcommand*{\subsectionfont}{\large\sffamily\mdseries\upshape}
sawine@2: 
sawine@2: % styles
sawine@2: 
sawine@2: % maketitle
sawine@2: \renewcommand*{\maketitle}{%
sawine@2:   {%
sawine@2:     \ifthenelse{\isundefined{\@photo}}%
sawine@2:       {}%
sawine@2:       {{\color{firstnamecolor}\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}%
sawine@2:     \hfill%
sawine@2: %    \raggedleft{\firstnamestyle{\MakeLowercase{\@firstname}}\familynamestyle{\MakeLowercase{\@familyname}}}\\[-.35em]}%
sawine@2:     \raggedleft{\firstnamestyle{\@firstname}~\familynamestyle{\@familyname}}\\[-.35em]}%
sawine@2:   {\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[2.5em]}%
sawine@2: % optional quote
sawine@2:   \ifthenelse{\isundefined{\@quote}}%
sawine@2:     {}%
sawine@2:     {\centering{\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
sawine@2:   }%
sawine@2: 
sawine@2: % cv footer
sawine@2: \newif\if@firstfooterelement\@firstfooterelementtrue
sawine@2: \providecommand*{\footersymbol}{}
sawine@2: \renewcommand*{\footersymbol}{%
sawine@2:   \if@firstfooterelement%
sawine@2:   \else%
sawine@2:     { ~~\color{footersymbolcolor}\textbullet~~~}\fi}
sawine@2: \providecommand*{\makefooter}{}
sawine@2: \renewcommand*{\makefooter}{%
sawine@2:   \fancypagestyle{plain}{%
sawine@2:     \fancyfoot[c]{%
sawine@2:       \parbox{0.8\textwidth}{%
sawine@2:       \centering%
sawine@2:       \addressfont\color{addresscolor}%
sawine@2:       \ifthenelse{\isundefined{\@addressstreet}}{}{%
sawine@2:         \addresssymbol~\@addressstreet%
sawine@2:         \@firstfooterelementfalse%
sawine@2:         \ifthenelse{\isundefined{\@addresscity}}{}{~--~\@addresscity}\\\@firstfooterelementtrue}%
sawine@2:       \ifthenelse{\isundefined{\@mobile}}{}{\footersymbol\mobilesymbol~\@mobile\@firstfooterelementfalse}%
sawine@2:       \ifthenelse{\isundefined{\@phone}}{}{\footersymbol\phonesymbol~\@phone\@firstfooterelementfalse}%
sawine@2:       \ifthenelse{\isundefined{\@fax}}{}{\footersymbol\faxsymbol~\@fax\@firstfooterelementfalse}%
sawine@2:       \ifthenelse{\isundefined{\@email}}{}{\footersymbol\emailsymbol~\emaillink{\@email}\@firstfooterelementfalse}%
sawine@2:       \ifthenelse{\isundefined{\@extrainfo}}{}{\footersymbol\@extrainfo\@firstfooterelementfalse}}}%
sawine@2:   }%
sawine@2:   \pagestyle{plain}}
sawine@2: \AtBeginDocument{\makefooter}
sawine@2: 
sawine@2: 
sawine@2: \endinput
sawine@2: 
sawine@2: 
sawine@2: %% end of file `moderncvthemecasual.sty'.




