1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/modern/moderncvthemeclassic.sty Sun Aug 01 13:48:50 2010 +0200
1.3 @@ -0,0 +1,218 @@
1.4 +%% start of file `moderncvthemeclassic.sty'.
1.5 +%% Copyright 2006-2008 Xavier Danaux (xdanaux@gmail.com).
1.6 +%
1.7 +% This work may be distributed and/or modified under the
1.8 +% conditions of the LaTeX Project Public License version 1.3c,
1.9 +% available at http://www.latex-project.org/lppl/.
1.10 +
1.11 +
1.12 +%-------------------------------------------------------------------------------
1.13 +% identification
1.14 +%-------------------------------------------------------------------------------
1.15 +\NeedsTeXFormat{LaTeX2e}
1.16 +\ProvidesPackage{moderncvthemeclassic}[2008/06/17 v0.7 modern curriculum vitae style: classic]
1.17 +
1.18 +
1.19 +%-------------------------------------------------------------------------------
1.20 +% required packages
1.21 +%-------------------------------------------------------------------------------
1.22 +
1.23 +
1.24 +%-------------------------------------------------------------------------------
1.25 +% package options
1.26 +%-------------------------------------------------------------------------------
1.27 +% color options
1.28 +% blue (default option)
1.29 +\DeclareOption{blue}{}
1.30 +% orange
1.31 +\newif\if@colororange\@colororangefalse
1.32 +\DeclareOption{orange}{\@colororangetrue}
1.33 +% green
1.34 +\newif\if@colorgreen\@colorgreenfalse
1.35 +\DeclareOption{green}{\@colorgreentrue}
1.36 +% red
1.37 +\newif\if@colorred\@colorredfalse
1.38 +\DeclareOption{red}{\@colorredtrue}
1.39 +% grey
1.40 +\newif\if@colorgrey\@colorgreyfalse
1.41 +\DeclareOption{grey}{\@colorgreytrue}
1.42 +
1.43 +% roman option
1.44 +\newif\if@roman\@romanfalse
1.45 +\DeclareOption{roman}{\@romantrue}
1.46 +
1.47 +% unused options
1.48 +\DeclareOption*{
1.49 + \PackageWarning{moderncvthemeclassic}{Unknown option ‘\CurrentOption’}}
1.50 +
1.51 +% execute default options
1.52 +\ExecuteOptions{color}
1.53 +
1.54 +% process given options
1.55 +\ProcessOptions\relax
1.56 +
1.57 +
1.58 +%-------------------------------------------------------------------------------
1.59 +% style definition
1.60 +%-------------------------------------------------------------------------------
1.61 +% symbols used
1.62 +\renewcommand*{\listitemsymbol}{\textbullet}
1.63 +
1.64 +% colors
1.65 +\definecolor{firstnamecolor}{rgb}{0,0,0}
1.66 +\definecolor{familynamecolor}{rgb}{0,0,0}
1.67 +\definecolor{titlecolor}{rgb}{0.35,0.35,0.35}
1.68 +\definecolor{quotecolor}{rgb}{0.35,0.35,0.35}
1.69 +% default blue color
1.70 + \definecolor{addresscolor}{rgb}{0.25,0.5,0.75}
1.71 + \definecolor{sectionrectanglecolor}{rgb}{0.25,0.5,0.75}
1.72 + \definecolor{sectiontitlecolor}{rgb}{0.2,0.4,0.65}
1.73 + \definecolor{subsectioncolor}{rgb}{0.2,0.4,0.65}
1.74 + \definecolor{footersymbolcolor}{rgb}{0.25,0.50,0.75}
1.75 +\if@colororange
1.76 + \definecolor{addresscolor}{rgb}{0.95,0.55,0.15}
1.77 + \definecolor{sectionrectanglecolor}{rgb}{1,0.65,0.20}
1.78 + \definecolor{sectiontitlecolor}{rgb}{0.95,0.55,0.15}
1.79 + \definecolor{subsectioncolor}{rgb}{0.95,0.55,0.15}\fi
1.80 +\if@colorgreen
1.81 + \definecolor{addresscolor}{rgb}{0.30,0.65,0.15}
1.82 + \definecolor{sectionrectanglecolor}{rgb}{0.55,0.85,0.35}
1.83 + \definecolor{sectiontitlecolor}{rgb}{0.30,0.65,0.15}
1.84 + \definecolor{subsectioncolor}{rgb}{0.30,0.65,0.15}\fi
1.85 +\if@colorred
1.86 + \definecolor{addresscolor}{rgb}{0.95,0.20,0.20}
1.87 + \definecolor{sectionrectanglecolor}{rgb}{1.00,0.30,0.30}
1.88 + \definecolor{sectiontitlecolor}{rgb}{0.95,0.20,0.20}
1.89 + \definecolor{subsectioncolor}{rgb}{0.95,0.20,0.20}\fi
1.90 +\if@colorgrey
1.91 + \definecolor{addresscolor}{rgb}{0.35,0.35,0.35}
1.92 + \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}
1.93 + \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35}
1.94 + \definecolor{subsectioncolor}{rgb}{0.35,0.35,0.35}\fi
1.95 +
1.96 +% fonts
1.97 +\if@roman
1.98 + \AtBeginDocument{\rmfamily}
1.99 +\else
1.100 + \AtBeginDocument{\sffamily}\fi
1.101 +\renewcommand*{\ttdefault}{pcr}
1.102 +\renewcommand*{\firstnamefont}{\fontsize{34}{36}\sffamily\mdseries\upshape}
1.103 +\renewcommand*{\titlefont}{\LARGE\sffamily\mdseries\slshape}
1.104 +\renewcommand*{\addressfont}{\normalsize\rmfamily\mdseries\slshape}
1.105 +\renewcommand*{\familynamefont}{\firstnamefont}
1.106 +\renewcommand*{\quotefont}{\large\slshape}
1.107 +\renewcommand*{\sectionfont}{\Large\sffamily\mdseries\upshape}
1.108 +\renewcommand*{\subsectionfont}{\large\sffamily\mdseries\upshape}
1.109 +
1.110 +% styles
1.111 +
1.112 +% maketitle
1.113 +% setmaketitlenamemaxwidth to the full name length, capped by \maketitlenamemaxwidth
1.114 +\newlength{\maketitlenamemaxwidth}
1.115 +\setlength{\maketitlenamemaxwidth}{.525\textwidth}
1.116 +\newlength{\maketitlenamefullwidth}
1.117 +\settowidth{\maketitlenamefullwidth}{\firstnamestyle{\@firstname~}\familynamestyle{\@familyname}}
1.118 +\newlength{\maketitlenamewidth}
1.119 +\ifnum\maketitlenamemaxwidth<\maketitlenamefullwidth\setlength{\maketitlenamewidth}{\maketitlenamemaxwidth}\else\setlength{\maketitlenamewidth}{\maketitlenamefullwidth}\fi
1.120 +% other lengths
1.121 +\newlength{\maketitlepicturewidth}
1.122 +\setlength{\maketitlepicturewidth}{\@photowidth}
1.123 +\newlength{\maketitledetailswidth}
1.124 +% recompute theme-specific lengths, called by class to recompute all lengths
1.125 +\renewcommand*{\recomputethemelengths}{%
1.126 + \setlength{\maketitledetailswidth}{\textwidth}%
1.127 + \addtolength{\maketitledetailswidth}{-\maketitlenamewidth}%
1.128 + \addtolength{\maketitledetailswidth}{-\separatorcolumnwidth}%
1.129 + \addtolength{\maketitledetailswidth}{-\maketitlepicturewidth}}
1.130 +\recomputethemelengths% cv footer
1.131 +\newif\if@firstfooterelement\@firstfooterelementtrue
1.132 +\providecommand*{\footersymbol}{}
1.133 +\renewcommand*{\footersymbol}{%
1.134 + \if@firstfooterelement%
1.135 + \else%
1.136 + { ~~\color{footersymbolcolor}\textbullet~~~}\fi}
1.137 +\providecommand*{\makefooter}{}
1.138 +\renewcommand*{\makefooter}{%
1.139 + \fancypagestyle{plain}{%
1.140 + \fancyfoot[c]{%
1.141 + \parbox{0.8\textwidth}{%
1.142 + \centering%
1.143 + \addressfont\color{addresscolor}%
1.144 + \ifthenelse{\isundefined{\@addressstreet}}{}{%
1.145 + \addresssymbol~\@addressstreet%
1.146 + \@firstfooterelementfalse%
1.147 + \ifthenelse{\isundefined{\@addresscity}}{}{~--~\@addresscity}\\\@firstfooterelementtrue}%
1.148 + \ifthenelse{\isundefined{\@mobile}}{}{\footersymbol\mobilesymbol~\@mobile\@firstfooterelementfalse}%
1.149 + \ifthenelse{\isundefined{\@phone}}{}{\footersymbol\phonesymbol~\@phone\@firstfooterelementfalse}%
1.150 + \ifthenelse{\isundefined{\@fax}}{}{\footersymbol\faxsymbol~\@fax\@firstfooterelementfalse}%
1.151 + \ifthenelse{\isundefined{\@email}}{}{\footersymbol\emailsymbol~\emaillink{\@email}\@firstfooterelementfalse}%
1.152 + \ifthenelse{\isundefined{\@extrainfo}}{}{\footersymbol\@extrainfo\@firstfooterelementfalse}}}%
1.153 + }%
1.154 + \pagestyle{plain}}
1.155 +\AtBeginDocument{\makefooter}
1.156 +\newif\if@firstdetailselement\@firstdetailselementtrue
1.157 +\newcommand*{\maketitledetailsnewline}{
1.158 + \if@firstdetailselement%
1.159 + \@firstdetailselementfalse%
1.160 + \else%
1.161 + \\[.2em]\fi}
1.162 +\renewcommand*{\maketitle}{%
1.163 + % name and title
1.164 + \begin{minipage}[b]{\maketitlenamewidth}%
1.165 + \firstnamestyle{\@firstname~}\familynamestyle{\@familyname}%
1.166 + \ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}%
1.167 + \end{minipage}%
1.168 + % optional data
1.169 + %\begin{minipage}[b]{\maketitledetailswidth}%
1.170 + % \raggedleft\addressfont\color{addresscolor}%
1.171 + %\ifthenelse{\isundefined{\@addressstreet}}{}{%
1.172 + % \maketitledetailsnewline%
1.173 + %\addresssymbol~\@addressstreet%
1.174 + %\ifthenelse{\isundefined{\@addresscity}}{}{\\\@addresscity}}%
1.175 + %\ifthenelse{\isundefined{\@mobile}}{}{\maketitledetailsnewline\mobilesymbol~\@mobile}%
1.176 + %\ifthenelse{\isundefined{\@phone}}{}{\maketitledetailsnewline\phonesymbol~\@phone}%
1.177 + %\ifthenelse{\isundefined{\@fax}}{}{\maketitledetailsnewline\faxsymbol~\@fax}%
1.178 + %\ifthenelse{\isundefined{\@email}}{}{\maketitledetailsnewline\emailsymbol~\emaillink{\@email}}%
1.179 + %\ifthenelse{\isundefined{\@extrainfo}}{}{\maketitledetailsnewline\@extrainfo}%
1.180 + %\end{minipage}%
1.181 + % optional photo
1.182 + \ifthenelse{\isundefined{\@photo}}%
1.183 + {}%
1.184 + {\hspace*{120pt}\color{firstnamecolor}\framebox{\includegraphics[width=\maketitlepicturewidth]{\@photo}}}\\[3em]%
1.185 + % optional quote
1.186 + \ifthenelse{\isundefined{\@quote}}%
1.187 + {}%
1.188 + {\centering{\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
1.189 + }
1.190 +
1.191 +% cv footer
1.192 +\newif\if@firstfooterelement\@firstfooterelementtrue
1.193 +\providecommand*{\footersymbol}{}
1.194 +\renewcommand*{\footersymbol}{%
1.195 + \if@firstfooterelement%
1.196 + \else%
1.197 + { ~~\color{footersymbolcolor}\textbullet~~~}\fi}
1.198 +\providecommand*{\makefooter}{}
1.199 +\renewcommand*{\makefooter}{%
1.200 + \fancypagestyle{plain}{%
1.201 + \fancyfoot[c]{%
1.202 + \parbox{0.8\textwidth}{%
1.203 + \centering%
1.204 + \addressfont\color{addresscolor}%
1.205 + \ifthenelse{\isundefined{\@addressstreet}}{}{%
1.206 + \addresssymbol~\@addressstreet%
1.207 + \@firstfooterelementfalse%
1.208 + \ifthenelse{\isundefined{\@addresscity}}{}{~--~\@addresscity}\\\@firstfooterelementtrue}%
1.209 + \ifthenelse{\isundefined{\@mobile}}{}{\footersymbol\mobilesymbol~\@mobile\@firstfooterelementfalse}%
1.210 + \ifthenelse{\isundefined{\@phone}}{}{\footersymbol\phonesymbol~\@phone\@firstfooterelementfalse}%
1.211 + \ifthenelse{\isundefined{\@fax}}{}{\footersymbol\faxsymbol~\@fax\@firstfooterelementfalse}%
1.212 + \ifthenelse{\isundefined{\@email}}{}{\footersymbol\emailsymbol~\emaillink{\@email}\@firstfooterelementfalse}%
1.213 + \ifthenelse{\isundefined{\@extrainfo}}{}{\footersymbol\@extrainfo\@firstfooterelementfalse}}}%
1.214 + }%
1.215 + \pagestyle{plain}}
1.216 +\AtBeginDocument{\makefooter}
1.217 +
1.218 +\endinput
1.219 +
1.220 +
1.221 +%% end of file `moderncvthemeclassic.sty'.