-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9ab3b7f
Showing
8 changed files
with
1,101 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
%% start of file `moderncvcompatibility.sty'. | ||
%% Copyright 2006-2010 Xavier Danaux (xdanaux@gmail.com). | ||
% | ||
% This work may be distributed and/or modified under the | ||
% conditions of the LaTeX Project Public License version 1.3c, | ||
% available at http://www.latex-project.org/lppl/. | ||
|
||
|
||
%------------------------------------------------------------------------------- | ||
% identification | ||
%------------------------------------------------------------------------------- | ||
\NeedsTeXFormat{LaTeX2e} | ||
\ProvidesPackage{moderncvcompatibility}[2010/08/03 v0.12 modern curriculum vitae compatibility patches] | ||
|
||
|
||
%------------------------------------------------------------------------------- | ||
% required packages | ||
%------------------------------------------------------------------------------- | ||
|
||
|
||
%------------------------------------------------------------------------------- | ||
% package options | ||
%------------------------------------------------------------------------------- | ||
% old casual option (version 0.1) | ||
%\DeclareOption{casual}{\input{moderncvstylecasual.sty}} | ||
|
||
% old classic option (version 0.1) | ||
%\DeclareOption{classic}{\input{moderncvstyleclassic.sty}} | ||
|
||
\DeclareOption*{} | ||
|
||
% process given options | ||
\ProcessOptions\relax | ||
|
||
%------------------------------------------------------------------------------- | ||
% definitions | ||
%------------------------------------------------------------------------------- | ||
% compatibility with version 0.1 | ||
\newcommand*{\cvresume}[2]{\cvlistdoubleitem{#1}{#2}} | ||
|
||
% compatibility with versions <= 0.2 | ||
% section, cvline, ... with width argument... | ||
%\newcommand*{\section}[2][0.825]{% | ||
% \closesection{}% | ||
% \@sectionopentrue% | ||
% \addcontentsline{toc}{part}{#2} | ||
% \begin{longtable}[t]{@{}r@{\hspace{.025\textwidth}}@{}p{#1\textwidth}@{}}% | ||
%% \colorrule{.15\textwidth}&\mbox{\color{sectiontitlecolor}\sectionfont#2}\\[1ex]}% | ||
% {\color{sectionrectanglecolor}\rule{0.15\textwidth}{1ex}}&\mbox{\color{sectiontitlecolor}\sectionfont#2}\\[1ex]}% | ||
%\newcommand*{\cvline}[3][.825]{% | ||
% \begin{minipage}[t]{\hintscolumnwidth}\raggedleft\small\sffamily#2\end{minipage}&\begin{minipage}[t]{\maincolumnwidth}#3\end{minipage}\\} | ||
%\newcommand*{\cvitem}[3][.825]{% | ||
% \cvline[#1]{#2}{#3\vspace*{.75em}}} % the \vspace*{} inside the cvline environment is a hack... (should conceptually be outside the environment) | ||
|
||
% compatibility with versions <= 0.5 | ||
\newcommand*{\cvitem}[2]{\cvline{#1}{#2}} | ||
\newcommand*{\moderncvstyle}[1]{\moderncvtheme{#1}} | ||
|
||
% compatibility with versions <=0.7 | ||
\newcommand*{\closesection}{} | ||
\newcommand*{\emptysection}{} | ||
\newcommand*{\sethintscolumnlength}[1]{% | ||
\setlength{\hintscolumnwidth}{#1}% | ||
\recomputelengths} | ||
\newcommand*{\sethintscolumntowidth}[1]{% | ||
\settowidth{\hintscolumnwidth}{#1}% | ||
\recomputelengths} | ||
|
||
\endinput | ||
|
||
|
||
%% end of file `moderncvcompatibility.sty'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
%% start of file `moderncvthemecasual.sty'. | ||
%% Copyright 2006-2010 Xavier Danaux (xdanaux@gmail.com). | ||
% | ||
% This work may be distributed and/or modified under the | ||
% conditions of the LaTeX Project Public License version 1.3c, | ||
% available at http://www.latex-project.org/lppl/. | ||
|
||
|
||
%------------------------------------------------------------------------------- | ||
% identification | ||
%------------------------------------------------------------------------------- | ||
\NeedsTeXFormat{LaTeX2e} | ||
\ProvidesPackage{moderncvthemecasual}[2010/08/03 v0.12 modern curriculum vitae style: casual] | ||
|
||
|
||
%------------------------------------------------------------------------------- | ||
% required packages | ||
%------------------------------------------------------------------------------- | ||
|
||
|
||
%------------------------------------------------------------------------------- | ||
% package options | ||
%------------------------------------------------------------------------------- | ||
% color options | ||
% blue (default option) | ||
\DeclareOption{blue}{} | ||
% orange | ||
\newif\if@colororange\@colororangefalse | ||
\DeclareOption{orange}{\@colororangetrue} | ||
% green | ||
\newif\if@colorgreen\@colorgreenfalse | ||
\DeclareOption{green}{\@colorgreentrue} | ||
% red | ||
\newif\if@colorred\@colorredfalse | ||
\DeclareOption{red}{\@colorredtrue} | ||
% grey | ||
\newif\if@colorgrey\@colorgreyfalse | ||
\DeclareOption{grey}{\@colorgreytrue} | ||
|
||
% roman option | ||
\newif\if@roman\@romanfalse | ||
\DeclareOption{roman}{\@romantrue} | ||
|
||
% unused options | ||
\DeclareOption*{ | ||
\PackageWarning{moderncvthemecasual}{Unknown option ‘\CurrentOption’}} | ||
|
||
% execute default options | ||
\ExecuteOptions{color} | ||
|
||
% process given options | ||
\ProcessOptions\relax | ||
|
||
|
||
%------------------------------------------------------------------------------- | ||
% style definition | ||
%------------------------------------------------------------------------------- | ||
% symbols used | ||
|
||
% colors | ||
\definecolor{firstnamecolor}{rgb}{0.65,0.65,0.65} | ||
\definecolor{familynamecolor}{rgb}{0.45,0.45,0.45} | ||
\definecolor{quotecolor}{rgb}{0.35,0.35,0.35} | ||
\definecolor{addresscolor}{rgb}{0.35,0.35,0.35} | ||
% default blue color | ||
\definecolor{sectionrectanglecolor}{rgb}{0.25,0.50,0.75} | ||
\definecolor{sectiontitlecolor}{rgb}{0.20,0.40,0.65} | ||
\definecolor{subsectioncolor}{rgb}{0.20,0.40,0.65} | ||
\definecolor{footersymbolcolor}{rgb}{0.25,0.50,0.75} | ||
\if@colororange | ||
\definecolor{sectionrectanglecolor}{rgb}{1.00,0.65,0.20} | ||
\definecolor{sectiontitlecolor}{rgb}{0.95,0.55,0.15} | ||
\definecolor{subsectioncolor}{rgb}{0.95,0.55,0.15} | ||
\definecolor{footersymbolcolor}{rgb}{0.95,0.55,0.15}\fi | ||
\if@colorgreen | ||
\definecolor{sectionrectanglecolor}{rgb}{0.55,0.85,0.35} | ||
\definecolor{sectiontitlecolor}{rgb}{0.30,0.65,0.15} | ||
\definecolor{subsectioncolor}{rgb}{0.30,0.65,0.15} | ||
\definecolor{footersymbolcolor}{rgb}{0.30,0.65,0.15}\fi | ||
\if@colorred | ||
\definecolor{sectionrectanglecolor}{rgb}{1.00,0.30,0.30} | ||
\definecolor{sectiontitlecolor}{rgb}{0.95,0.20,0.20} | ||
\definecolor{subsectioncolor}{rgb}{0.95,0.20,0.20} | ||
\definecolor{footersymbolcolor}{rgb}{0.95,0.20,0.20}\fi | ||
\if@colorgrey | ||
\definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75} | ||
\definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35} | ||
\definecolor{subsectioncolor}{rgb}{0.35,0.35,0.35} | ||
\definecolor{footersymbolcolor}{rgb}{0.35,0.35,0.35}\fi | ||
|
||
% fonts | ||
\if@roman | ||
\AtBeginDocument{\rmfamily} | ||
\else | ||
\AtBeginDocument{\sffamily}\fi | ||
\renewcommand*{\ttdefault}{pcr} | ||
\renewcommand*{\firstnamefont}{\fontsize{38}{40}\sffamily\mdseries\upshape} | ||
\renewcommand*{\familynamefont}{\firstnamefont} | ||
\renewcommand*{\addressfont}{\normalsize\sffamily\mdseries\slshape} | ||
\renewcommand*{\quotefont}{\large\slshape} | ||
\renewcommand*{\sectionfont}{\Large\sffamily\mdseries\upshape} | ||
\renewcommand*{\subsectionfont}{\large\sffamily\mdseries\upshape} | ||
|
||
% styles | ||
|
||
% maketitle | ||
\renewcommand*{\maketitle}{% | ||
{% | ||
\ifthenelse{\isundefined{\@photo}}% | ||
{}% | ||
{{\color{firstnamecolor}\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}% | ||
\hfill% | ||
% \raggedleft{\firstnamestyle{\MakeLowercase{\@firstname}}\familynamestyle{\MakeLowercase{\@familyname}}}\\[-.35em]}% | ||
\raggedleft{\firstnamestyle{\@firstname}~\familynamestyle{\@familyname}}\\[-.35em]}% | ||
{\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[2.5em]}% | ||
% optional quote | ||
\ifthenelse{\isundefined{\@quote}}% | ||
{}% | ||
{{\centering{}\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}\\[2.5em]}}% | ||
\par}% to avoid weird spacing bug at the first section if no blank line is left after \maketitle | ||
|
||
% cv footer | ||
\newif\if@firstfooterelement\@firstfooterelementtrue | ||
\providecommand*{\footersymbol}{} | ||
\renewcommand*{\footersymbol}{% | ||
\if@firstfooterelement% | ||
\else% | ||
{ ~~\color{footersymbolcolor}\textbullet~~~}\fi} | ||
\providecommand*{\makefooter}{} | ||
\renewcommand*{\makefooter}{% | ||
\fancypagestyle{plain}{% | ||
\fancyfoot[c]{% | ||
\parbox{0.8\textwidth}{% | ||
\centering% | ||
\addressfont\color{addresscolor}% | ||
\ifthenelse{\isundefined{\@addressstreet}}{}{% | ||
\addresssymbol~\@addressstreet% | ||
\@firstfooterelementfalse% | ||
\ifthenelse{\isundefined{\@addresscity}}{}{~--~\@addresscity}\\\@firstfooterelementtrue}% | ||
\ifthenelse{\isundefined{\@mobile}}{}{\footersymbol\mobilesymbol~\@mobile\@firstfooterelementfalse}% | ||
\ifthenelse{\isundefined{\@phone}}{}{\footersymbol\phonesymbol~\@phone\@firstfooterelementfalse}% | ||
\ifthenelse{\isundefined{\@fax}}{}{\footersymbol\faxsymbol~\@fax\@firstfooterelementfalse}% | ||
\ifthenelse{\isundefined{\@email}}{}{\footersymbol\emailsymbol~\emaillink{\@email}\@firstfooterelementfalse}% | ||
\ifthenelse{\isundefined{\@homepage}}{}{\footersymbol\homepagesymbol~\httplink{\@homepage}\@firstfooterelementfalse}% | ||
\ifthenelse{\isundefined{\@extrainfo}}{}{\footersymbol\@extrainfo\@firstfooterelementfalse}}}% | ||
}% | ||
\pagestyle{plain}} | ||
\AtBeginDocument{\makefooter} | ||
|
||
|
||
\endinput | ||
|
||
|
||
%% end of file `moderncvthemecasual.sty'. |
Oops, something went wrong.