
sawine@0: %% start of file `moderncvthemeclassic.sty'.
sawine@0: %% Copyright 2006-2008 Xavier Danaux (xdanaux@gmail.com).
sawine@0: %
sawine@0: % This work may be distributed and/or modified under the
sawine@0: % conditions of the LaTeX Project Public License version 1.3c,
sawine@0: % available at http://www.latex-project.org/lppl/.
sawine@0: 
sawine@0: 
sawine@0: %-------------------------------------------------------------------------------
sawine@0: %                identification
sawine@0: %-------------------------------------------------------------------------------
sawine@0: \NeedsTeXFormat{LaTeX2e}
sawine@0: \ProvidesPackage{moderncvthemeclassic}[2008/06/17 v0.7 modern curriculum vitae style: classic]
sawine@0: 
sawine@0: 
sawine@0: %-------------------------------------------------------------------------------
sawine@0: %                required packages
sawine@0: %-------------------------------------------------------------------------------
sawine@0: 
sawine@0: 
sawine@0: %-------------------------------------------------------------------------------
sawine@0: %                package options
sawine@0: %-------------------------------------------------------------------------------
sawine@0: % color options
sawine@0: % blue (default option)
sawine@0: \DeclareOption{blue}{}
sawine@0: % orange
sawine@0: \newif\if@colororange\@colororangefalse
sawine@0: \DeclareOption{orange}{\@colororangetrue}
sawine@0: % green
sawine@0: \newif\if@colorgreen\@colorgreenfalse
sawine@0: \DeclareOption{green}{\@colorgreentrue}
sawine@0: % red
sawine@0: \newif\if@colorred\@colorredfalse
sawine@0: \DeclareOption{red}{\@colorredtrue}
sawine@0: % grey
sawine@0: \newif\if@colorgrey\@colorgreyfalse
sawine@0: \DeclareOption{grey}{\@colorgreytrue}
sawine@0: 
sawine@0: % roman option
sawine@0: \newif\if@roman\@romanfalse
sawine@0: \DeclareOption{roman}{\@romantrue}
sawine@0: 
sawine@0: % unused options
sawine@0: \DeclareOption*{
sawine@0:   \PackageWarning{moderncvthemeclassic}{Unknown option ‘\CurrentOption’}}
sawine@0: 
sawine@0: % execute default options
sawine@0: \ExecuteOptions{color}
sawine@0: 
sawine@0: % process given options
sawine@0: \ProcessOptions\relax
sawine@0: 
sawine@0: 
sawine@0: %-------------------------------------------------------------------------------
sawine@0: %                style definition
sawine@0: %-------------------------------------------------------------------------------
sawine@0: % symbols used
sawine@0: \renewcommand*{\listitemsymbol}{\textbullet}
sawine@0: 
sawine@0: % colors
sawine@0: \definecolor{firstnamecolor}{rgb}{0,0,0}
sawine@0: \definecolor{familynamecolor}{rgb}{0,0,0}
sawine@0: \definecolor{titlecolor}{rgb}{0.35,0.35,0.35}
sawine@0: \definecolor{quotecolor}{rgb}{0.35,0.35,0.35}
sawine@0: % default blue color
sawine@0:   \definecolor{addresscolor}{rgb}{0.25,0.5,0.75}
sawine@0:   \definecolor{sectionrectanglecolor}{rgb}{0.25,0.5,0.75}
sawine@0:   \definecolor{sectiontitlecolor}{rgb}{0.2,0.4,0.65}
sawine@0:   \definecolor{subsectioncolor}{rgb}{0.2,0.4,0.65}
sawine@0:   \definecolor{footersymbolcolor}{rgb}{0.25,0.50,0.75}
sawine@0: \if@colororange
sawine@0:   \definecolor{addresscolor}{rgb}{0.95,0.55,0.15}
sawine@0:   \definecolor{sectionrectanglecolor}{rgb}{1,0.65,0.20}
sawine@0:   \definecolor{sectiontitlecolor}{rgb}{0.95,0.55,0.15}
sawine@0:   \definecolor{subsectioncolor}{rgb}{0.95,0.55,0.15}\fi
sawine@0: \if@colorgreen
sawine@0:   \definecolor{addresscolor}{rgb}{0.30,0.65,0.15}
sawine@0:   \definecolor{sectionrectanglecolor}{rgb}{0.55,0.85,0.35}
sawine@0:   \definecolor{sectiontitlecolor}{rgb}{0.30,0.65,0.15}
sawine@0:   \definecolor{subsectioncolor}{rgb}{0.30,0.65,0.15}\fi
sawine@0: \if@colorred
sawine@0:   \definecolor{addresscolor}{rgb}{0.95,0.20,0.20}
sawine@0:   \definecolor{sectionrectanglecolor}{rgb}{1.00,0.30,0.30}
sawine@0:   \definecolor{sectiontitlecolor}{rgb}{0.95,0.20,0.20}
sawine@0:   \definecolor{subsectioncolor}{rgb}{0.95,0.20,0.20}\fi
sawine@0: \if@colorgrey
sawine@0:   \definecolor{addresscolor}{rgb}{0.35,0.35,0.35}
sawine@0:   \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}
sawine@0:   \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35}
sawine@0:   \definecolor{subsectioncolor}{rgb}{0.35,0.35,0.35}\fi
sawine@0: 
sawine@0: % fonts
sawine@0: \if@roman
sawine@0:   \AtBeginDocument{\rmfamily}
sawine@0: \else
sawine@0:   \AtBeginDocument{\sffamily}\fi
sawine@0: \renewcommand*{\ttdefault}{pcr}
sawine@0: \renewcommand*{\firstnamefont}{\fontsize{34}{36}\sffamily\mdseries\upshape}
sawine@0: \renewcommand*{\titlefont}{\LARGE\sffamily\mdseries\slshape}
sawine@0: \renewcommand*{\addressfont}{\normalsize\rmfamily\mdseries\slshape}
sawine@0: \renewcommand*{\familynamefont}{\firstnamefont}
sawine@0: \renewcommand*{\quotefont}{\large\slshape}
sawine@0: \renewcommand*{\sectionfont}{\Large\sffamily\mdseries\upshape}
sawine@0: \renewcommand*{\subsectionfont}{\large\sffamily\mdseries\upshape}
sawine@0: 
sawine@0: % styles
sawine@0: 
sawine@0: % maketitle
sawine@0: %   setmaketitlenamemaxwidth to the full name length, capped by \maketitlenamemaxwidth
sawine@0: \newlength{\maketitlenamemaxwidth}
sawine@0: \setlength{\maketitlenamemaxwidth}{.525\textwidth}
sawine@0: \newlength{\maketitlenamefullwidth}
sawine@0: \settowidth{\maketitlenamefullwidth}{\firstnamestyle{\@firstname~}\familynamestyle{\@familyname}}
sawine@0: \newlength{\maketitlenamewidth}
sawine@0: \ifnum\maketitlenamemaxwidth<\maketitlenamefullwidth\setlength{\maketitlenamewidth}{\maketitlenamemaxwidth}\else\setlength{\maketitlenamewidth}{\maketitlenamefullwidth}\fi
sawine@0: %   other lengths
sawine@0: \newlength{\maketitlepicturewidth}
sawine@0: \setlength{\maketitlepicturewidth}{\@photowidth}
sawine@0: \newlength{\maketitledetailswidth}
sawine@0: %   recompute theme-specific lengths, called by class to recompute all lengths
sawine@0: \renewcommand*{\recomputethemelengths}{%
sawine@0:   \setlength{\maketitledetailswidth}{\textwidth}%
sawine@0:   \addtolength{\maketitledetailswidth}{-\maketitlenamewidth}%
sawine@0:   \addtolength{\maketitledetailswidth}{-\separatorcolumnwidth}%
sawine@0:   \addtolength{\maketitledetailswidth}{-\maketitlepicturewidth}}
sawine@0: \recomputethemelengths% cv footer
sawine@0: \newif\if@firstfooterelement\@firstfooterelementtrue
sawine@0: \providecommand*{\footersymbol}{}
sawine@0: \renewcommand*{\footersymbol}{%
sawine@0:   \if@firstfooterelement%
sawine@0:   \else%
sawine@0:     { ~~\color{footersymbolcolor}\textbullet~~~}\fi}
sawine@0: \providecommand*{\makefooter}{}
sawine@0: \renewcommand*{\makefooter}{%
sawine@0:   \fancypagestyle{plain}{%
sawine@0:     \fancyfoot[c]{%
sawine@0:       \parbox{0.8\textwidth}{%
sawine@0:       \centering%
sawine@0:       \addressfont\color{addresscolor}%
sawine@0:       \ifthenelse{\isundefined{\@addressstreet}}{}{%
sawine@0:         \addresssymbol~\@addressstreet%
sawine@0:         \@firstfooterelementfalse%
sawine@0:         \ifthenelse{\isundefined{\@addresscity}}{}{~--~\@addresscity}\\\@firstfooterelementtrue}%
sawine@0:       \ifthenelse{\isundefined{\@mobile}}{}{\footersymbol\mobilesymbol~\@mobile\@firstfooterelementfalse}%
sawine@0:       \ifthenelse{\isundefined{\@phone}}{}{\footersymbol\phonesymbol~\@phone\@firstfooterelementfalse}%
sawine@0:       \ifthenelse{\isundefined{\@fax}}{}{\footersymbol\faxsymbol~\@fax\@firstfooterelementfalse}%
sawine@0:       \ifthenelse{\isundefined{\@email}}{}{\footersymbol\emailsymbol~\emaillink{\@email}\@firstfooterelementfalse}%
sawine@0:       \ifthenelse{\isundefined{\@extrainfo}}{}{\footersymbol\@extrainfo\@firstfooterelementfalse}}}%
sawine@0:   }%
sawine@0:   \pagestyle{plain}}
sawine@0: \AtBeginDocument{\makefooter}
sawine@0: \newif\if@firstdetailselement\@firstdetailselementtrue
sawine@0: \newcommand*{\maketitledetailsnewline}{
sawine@0:   \if@firstdetailselement%
sawine@0:     \@firstdetailselementfalse%
sawine@0:   \else%
sawine@0:     \\[.2em]\fi}
sawine@0: \renewcommand*{\maketitle}{%
sawine@0:   % name and title
sawine@0:   \begin{minipage}[b]{\maketitlenamewidth}%
sawine@0:     \firstnamestyle{\@firstname~}\familynamestyle{\@familyname}%
sawine@0:     \ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}%
sawine@0:   \end{minipage}%
sawine@0:   % optional data
sawine@0:   %\begin{minipage}[b]{\maketitledetailswidth}%
sawine@0:    % \raggedleft\addressfont\color{addresscolor}%
sawine@0:     %\ifthenelse{\isundefined{\@addressstreet}}{}{%
sawine@0:      % \maketitledetailsnewline%
sawine@0:       %\addresssymbol~\@addressstreet%
sawine@0:       %\ifthenelse{\isundefined{\@addresscity}}{}{\\\@addresscity}}%
sawine@0:     %\ifthenelse{\isundefined{\@mobile}}{}{\maketitledetailsnewline\mobilesymbol~\@mobile}%
sawine@0:     %\ifthenelse{\isundefined{\@phone}}{}{\maketitledetailsnewline\phonesymbol~\@phone}%
sawine@0:     %\ifthenelse{\isundefined{\@fax}}{}{\maketitledetailsnewline\faxsymbol~\@fax}%
sawine@0:     %\ifthenelse{\isundefined{\@email}}{}{\maketitledetailsnewline\emailsymbol~\emaillink{\@email}}%
sawine@0:     %\ifthenelse{\isundefined{\@extrainfo}}{}{\maketitledetailsnewline\@extrainfo}%
sawine@0:   %\end{minipage}%
sawine@0:   % optional photo
sawine@0:   \ifthenelse{\isundefined{\@photo}}%
sawine@0:     {}%
sawine@0:     {\hspace*{120pt}\color{firstnamecolor}\framebox{\includegraphics[width=\maketitlepicturewidth]{\@photo}}}\\[3em]%
sawine@0:   % optional quote
sawine@0:   \ifthenelse{\isundefined{\@quote}}%
sawine@0:     {}%
sawine@0:     {\centering{\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
sawine@0:   }
sawine@0: 
sawine@0: % cv footer
sawine@0: \newif\if@firstfooterelement\@firstfooterelementtrue
sawine@0: \providecommand*{\footersymbol}{}
sawine@0: \renewcommand*{\footersymbol}{%
sawine@0:   \if@firstfooterelement%
sawine@0:   \else%
sawine@0:     { ~~\color{footersymbolcolor}\textbullet~~~}\fi}
sawine@0: \providecommand*{\makefooter}{}
sawine@0: \renewcommand*{\makefooter}{%
sawine@0:   \fancypagestyle{plain}{%
sawine@0:     \fancyfoot[c]{%
sawine@0:       \parbox{0.8\textwidth}{%
sawine@0:       \centering%
sawine@0:       \addressfont\color{addresscolor}%
sawine@0:       \ifthenelse{\isundefined{\@addressstreet}}{}{%
sawine@0:         \addresssymbol~\@addressstreet%
sawine@0:         \@firstfooterelementfalse%
sawine@0:         \ifthenelse{\isundefined{\@addresscity}}{}{~--~\@addresscity}\\\@firstfooterelementtrue}%
sawine@0:       \ifthenelse{\isundefined{\@mobile}}{}{\footersymbol\mobilesymbol~\@mobile\@firstfooterelementfalse}%
sawine@0:       \ifthenelse{\isundefined{\@phone}}{}{\footersymbol\phonesymbol~\@phone\@firstfooterelementfalse}%
sawine@0:       \ifthenelse{\isundefined{\@fax}}{}{\footersymbol\faxsymbol~\@fax\@firstfooterelementfalse}%
sawine@0:       \ifthenelse{\isundefined{\@email}}{}{\footersymbol\emailsymbol~\emaillink{\@email}\@firstfooterelementfalse}%
sawine@0:       \ifthenelse{\isundefined{\@extrainfo}}{}{\footersymbol\@extrainfo\@firstfooterelementfalse}}}%
sawine@0:   }%
sawine@0:   \pagestyle{plain}}
sawine@0: \AtBeginDocument{\makefooter}
sawine@0: 
sawine@0: \endinput
sawine@0: 
sawine@0: 
sawine@0: %% end of file `moderncvthemeclassic.sty'.




