1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/comsoft/moderncvthemeclassic.sty Sat Jul 03 12:15:48 2010 +0200
1.3 @@ -0,0 +1,166 @@
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 +\if@colororange
1.75 + \definecolor{addresscolor}{rgb}{0.95,0.55,0.15}
1.76 + \definecolor{sectionrectanglecolor}{rgb}{1,0.65,0.20}
1.77 + \definecolor{sectiontitlecolor}{rgb}{0.95,0.55,0.15}
1.78 + \definecolor{subsectioncolor}{rgb}{0.95,0.55,0.15}\fi
1.79 +\if@colorgreen
1.80 + \definecolor{addresscolor}{rgb}{0.30,0.65,0.15}
1.81 + \definecolor{sectionrectanglecolor}{rgb}{0.55,0.85,0.35}
1.82 + \definecolor{sectiontitlecolor}{rgb}{0.30,0.65,0.15}
1.83 + \definecolor{subsectioncolor}{rgb}{0.30,0.65,0.15}\fi
1.84 +\if@colorred
1.85 + \definecolor{addresscolor}{rgb}{0.95,0.20,0.20}
1.86 + \definecolor{sectionrectanglecolor}{rgb}{1.00,0.30,0.30}
1.87 + \definecolor{sectiontitlecolor}{rgb}{0.95,0.20,0.20}
1.88 + \definecolor{subsectioncolor}{rgb}{0.95,0.20,0.20}\fi
1.89 +\if@colorgrey
1.90 + \definecolor{addresscolor}{rgb}{0.35,0.35,0.35}
1.91 + \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}
1.92 + \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35}
1.93 + \definecolor{subsectioncolor}{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{34}{36}\sffamily\mdseries\upshape}
1.102 +\renewcommand*{\titlefont}{\LARGE\sffamily\mdseries\slshape}
1.103 +\renewcommand*{\addressfont}{\normalsize\rmfamily\mdseries\slshape}
1.104 +\renewcommand*{\familynamefont}{\firstnamefont}
1.105 +\renewcommand*{\quotefont}{\large\slshape}
1.106 +\renewcommand*{\sectionfont}{\Large\sffamily\mdseries\upshape}
1.107 +\renewcommand*{\subsectionfont}{\large\sffamily\mdseries\upshape}
1.108 +
1.109 +% styles
1.110 +
1.111 +% maketitle
1.112 +% setmaketitlenamemaxwidth to the full name length, capped by \maketitlenamemaxwidth
1.113 +\newlength{\maketitlenamemaxwidth}
1.114 +\setlength{\maketitlenamemaxwidth}{.525\textwidth}
1.115 +\newlength{\maketitlenamefullwidth}
1.116 +\settowidth{\maketitlenamefullwidth}{\firstnamestyle{\@firstname~}\familynamestyle{\@familyname}}
1.117 +\newlength{\maketitlenamewidth}
1.118 +\ifnum\maketitlenamemaxwidth<\maketitlenamefullwidth\setlength{\maketitlenamewidth}{\maketitlenamemaxwidth}\else\setlength{\maketitlenamewidth}{\maketitlenamefullwidth}\fi
1.119 +% other lengths
1.120 +\newlength{\maketitlepicturewidth}
1.121 +\setlength{\maketitlepicturewidth}{\@photowidth}
1.122 +\newlength{\maketitledetailswidth}
1.123 +% recompute theme-specific lengths, called by class to recompute all lengths
1.124 +\renewcommand*{\recomputethemelengths}{%
1.125 + \setlength{\maketitledetailswidth}{\textwidth}%
1.126 + \addtolength{\maketitledetailswidth}{-\maketitlenamewidth}%
1.127 + \addtolength{\maketitledetailswidth}{-\separatorcolumnwidth}%
1.128 + \addtolength{\maketitledetailswidth}{-\maketitlepicturewidth}}
1.129 +\recomputethemelengths
1.130 +\newif\if@firstdetailselement\@firstdetailselementtrue
1.131 +\newcommand*{\maketitledetailsnewline}{
1.132 + \if@firstdetailselement%
1.133 + \@firstdetailselementfalse%
1.134 + \else%
1.135 + \\[.2em]\fi}
1.136 +\renewcommand*{\maketitle}{%
1.137 + % name and title
1.138 + \begin{minipage}[b]{\maketitlenamewidth}%
1.139 + \firstnamestyle{\@firstname~}\familynamestyle{\@familyname}%
1.140 + \ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}%
1.141 + \end{minipage}%
1.142 + % optional data
1.143 + \begin{minipage}[b]{\maketitledetailswidth}%
1.144 + \raggedleft\addressfont\color{addresscolor}%
1.145 + \ifthenelse{\isundefined{\@addressstreet}}{}{%
1.146 + \maketitledetailsnewline%
1.147 + \addresssymbol~\@addressstreet%
1.148 + \ifthenelse{\isundefined{\@addresscity}}{}{\\\@addresscity}}%
1.149 + \ifthenelse{\isundefined{\@mobile}}{}{\maketitledetailsnewline\mobilesymbol~\@mobile}%
1.150 + \ifthenelse{\isundefined{\@phone}}{}{\maketitledetailsnewline\phonesymbol~\@phone}%
1.151 + \ifthenelse{\isundefined{\@fax}}{}{\maketitledetailsnewline\faxsymbol~\@fax}%
1.152 + \ifthenelse{\isundefined{\@email}}{}{\maketitledetailsnewline\emailsymbol~\emaillink{\@email}}%
1.153 + \ifthenelse{\isundefined{\@extrainfo}}{}{\maketitledetailsnewline\@extrainfo}%
1.154 + \end{minipage}%
1.155 + % optional photo
1.156 + \ifthenelse{\isundefined{\@photo}}%
1.157 + {}%
1.158 + {\hspace*{\separatorcolumnwidth}\color{firstnamecolor}\framebox{\includegraphics[width=\maketitlepicturewidth]{\@photo}}}\\[3em]%
1.159 + % optional quote
1.160 + \ifthenelse{\isundefined{\@quote}}%
1.161 + {}%
1.162 + {\centering{\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
1.163 + }
1.164 +
1.165 +
1.166 +\endinput
1.167 +
1.168 +
1.169 +%% end of file `moderncvthemeclassic.sty'.