1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/modern/.svn/text-base/moderncvthemecasual.sty.svn-base Sun Aug 01 13:48:50 2010 +0200
1.3 @@ -0,0 +1,154 @@
1.4 +%% start of file `moderncvthemecasual.sty'.
1.5 +%% Copyright 2007 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{moderncvthemecasual}[2008/06/17 v0.7 modern curriculum vitae style: casual]
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{moderncvthemecasual}{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.65,0.65,0.65}
1.66 +\definecolor{familynamecolor}{rgb}{0.45,0.45,0.45}
1.67 +\definecolor{quotecolor}{rgb}{0.35,0.35,0.35}
1.68 +\definecolor{addresscolor}{rgb}{0.35,0.35,0.35}
1.69 +% default blue color
1.70 + \definecolor{sectionrectanglecolor}{rgb}{0.25,0.50,0.75}
1.71 + \definecolor{sectiontitlecolor}{rgb}{0.20,0.40,0.65}
1.72 + \definecolor{subsectioncolor}{rgb}{0.20,0.40,0.65}
1.73 + \definecolor{footersymbolcolor}{rgb}{0.25,0.50,0.75}
1.74 +\if@colororange
1.75 + \definecolor{sectionrectanglecolor}{rgb}{1.00,0.65,0.20}
1.76 + \definecolor{sectiontitlecolor}{rgb}{0.95,0.55,0.15}
1.77 + \definecolor{subsectioncolor}{rgb}{0.95,0.55,0.15}
1.78 + \definecolor{footersymbolcolor}{rgb}{0.95,0.55,0.15}\fi
1.79 +\if@colorgreen
1.80 + \definecolor{sectionrectanglecolor}{rgb}{0.55,0.85,0.35}
1.81 + \definecolor{sectiontitlecolor}{rgb}{0.30,0.65,0.15}
1.82 + \definecolor{subsectioncolor}{rgb}{0.30,0.65,0.15}
1.83 + \definecolor{footersymbolcolor}{rgb}{0.30,0.65,0.15}\fi
1.84 +\if@colorred
1.85 + \definecolor{sectionrectanglecolor}{rgb}{1.00,0.30,0.30}
1.86 + \definecolor{sectiontitlecolor}{rgb}{0.95,0.20,0.20}
1.87 + \definecolor{subsectioncolor}{rgb}{0.95,0.20,0.20}
1.88 + \definecolor{footersymbolcolor}{rgb}{0.95,0.20,0.20}\fi
1.89 +\if@colorgrey
1.90 + \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}
1.91 + \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35}
1.92 + \definecolor{subsectioncolor}{rgb}{0.35,0.35,0.35}
1.93 + \definecolor{footersymbolcolor}{rgb}{0.35,0.35,0.35}\fi
1.94 +
1.95 +% fonts
1.96 +\if@roman
1.97 + \AtBeginDocument{\rmfamily}
1.98 +\else
1.99 + \AtBeginDocument{\sffamily}\fi
1.100 +\renewcommand*{\ttdefault}{pcr}
1.101 +\renewcommand*{\firstnamefont}{\fontsize{38}{40}\sffamily\mdseries\upshape}
1.102 +\renewcommand*{\familynamefont}{\firstnamefont}
1.103 +\renewcommand*{\addressfont}{\normalsize\sffamily\mdseries\slshape}
1.104 +\renewcommand*{\quotefont}{\large\slshape}
1.105 +\renewcommand*{\sectionfont}{\Large\sffamily\mdseries\upshape}
1.106 +\renewcommand*{\subsectionfont}{\large\sffamily\mdseries\upshape}
1.107 +
1.108 +% styles
1.109 +
1.110 +% maketitle
1.111 +\renewcommand*{\maketitle}{%
1.112 + {%
1.113 + \ifthenelse{\isundefined{\@photo}}%
1.114 + {}%
1.115 + {{\color{firstnamecolor}\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}%
1.116 + \hfill%
1.117 +% \raggedleft{\firstnamestyle{\MakeLowercase{\@firstname}}\familynamestyle{\MakeLowercase{\@familyname}}}\\[-.35em]}%
1.118 + \raggedleft{\firstnamestyle{\@firstname}~\familynamestyle{\@familyname}}\\[-.35em]}%
1.119 + {\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[2.5em]}%
1.120 +% optional quote
1.121 + \ifthenelse{\isundefined{\@quote}}%
1.122 + {}%
1.123 + {\centering{\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
1.124 + }%
1.125 +
1.126 +% cv footer
1.127 +\newif\if@firstfooterelement\@firstfooterelementtrue
1.128 +\providecommand*{\footersymbol}{}
1.129 +\renewcommand*{\footersymbol}{%
1.130 + \if@firstfooterelement%
1.131 + \else%
1.132 + { ~~\color{footersymbolcolor}\textbullet~~~}\fi}
1.133 +\providecommand*{\makefooter}{}
1.134 +\renewcommand*{\makefooter}{%
1.135 + \fancypagestyle{plain}{%
1.136 + \fancyfoot[c]{%
1.137 + \parbox{0.8\textwidth}{%
1.138 + \centering%
1.139 + \addressfont\color{addresscolor}%
1.140 + \ifthenelse{\isundefined{\@addressstreet}}{}{%
1.141 + \addresssymbol~\@addressstreet%
1.142 + \@firstfooterelementfalse%
1.143 + \ifthenelse{\isundefined{\@addresscity}}{}{~--~\@addresscity}\\\@firstfooterelementtrue}%
1.144 + \ifthenelse{\isundefined{\@mobile}}{}{\footersymbol\mobilesymbol~\@mobile\@firstfooterelementfalse}%
1.145 + \ifthenelse{\isundefined{\@phone}}{}{\footersymbol\phonesymbol~\@phone\@firstfooterelementfalse}%
1.146 + \ifthenelse{\isundefined{\@fax}}{}{\footersymbol\faxsymbol~\@fax\@firstfooterelementfalse}%
1.147 + \ifthenelse{\isundefined{\@email}}{}{\footersymbol\emailsymbol~\emaillink{\@email}\@firstfooterelementfalse}%
1.148 + \ifthenelse{\isundefined{\@extrainfo}}{}{\footersymbol\@extrainfo\@firstfooterelementfalse}}}%
1.149 + }%
1.150 + \pagestyle{plain}}
1.151 +\AtBeginDocument{\makefooter}
1.152 +
1.153 +
1.154 +\endinput
1.155 +
1.156 +
1.157 +%% end of file `moderncvthemecasual.sty'.