diff options
author | Karl Berry <karl@freefriends.org> | 2006-07-04 12:47:11 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-07-04 12:47:11 +0000 |
commit | 81cb4991a294f8c832eeebda60e9f0b49f7c389c (patch) | |
tree | 716927b9379eebac950db971309770af069dcf01 /Master/texmf-dist/tex | |
parent | 7ce8eb47651667cd0b38e9aae56525fbc2d5533c (diff) |
new package moderncv
git-svn-id: svn://tug.org/texlive/trunk@1763 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
5 files changed, 685 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncv.cls b/Master/texmf-dist/tex/latex/moderncv/moderncv.cls new file mode 100644 index 00000000000..87ee95ef4fb --- /dev/null +++ b/Master/texmf-dist/tex/latex/moderncv/moderncv.cls @@ -0,0 +1,397 @@ +%% start of file `moderncv.cls'. + +%------------------------------------------------------------------------------- +% identification +%------------------------------------------------------------------------------- +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{moderncv}[2006/05/02 v0.4 modern curriculum vitae document class] + + +%------------------------------------------------------------------------------- +% class options +% +% (need to be done before the external package loading, for example because +% we need \paperwidth, \paperheight and \@ptsize to be defined before loading +% geometry and fancyhdr) +%------------------------------------------------------------------------------- +% paper size option +\DeclareOption{a4paper}{ + \setlength\paperheight{297mm} + \setlength\paperwidth{210mm}} +\DeclareOption{a5paper}{ + \setlength\paperheight{210mm} + \setlength\paperwidth{148mm}} +\DeclareOption{b5paper}{ + \setlength\paperheight{250mm} + \setlength\paperwidth{176mm}} +\DeclareOption{letterpaper}{ + \setlength\paperheight{11in} + \setlength\paperwidth{8.5in}} +\DeclareOption{legalpaper}{ + \setlength\paperheight{14in} + \setlength\paperwidth{8.5in}} +\DeclareOption{executivepaper}{ + \setlength\paperheight{10.5in} + \setlength\paperwidth{7.25in}} +\DeclareOption{landscape}{ + \setlength\@tempdima{\paperheight} + \setlength\paperheight{\paperwidth} + \setlength\paperwidth{\@tempdima}} + +% font size options +\newcommand\@ptsize{} +\DeclareOption{10pt}{\renewcommand\@ptsize{0}} +\DeclareOption{11pt}{\renewcommand\@ptsize{1}} +\DeclareOption{12pt}{\renewcommand\@ptsize{2}} + +% draft/final option +\DeclareOption{draft}{\setlength\overfullrule{5pt}} +\DeclareOption{final}{\setlength\overfullrule{0pt}} + +% nolmodern option +\newif\if@lmodern\@lmoderntrue +\DeclareOption{nolmodern}{\@lmodernfalse} + +% nocolor option +\newif\if@color\@colortrue +\DeclareOption{nocolor}{\@colorfalse} + +% execute default options +\ExecuteOptions{a4paper,11pt,color,final} + +% process given options +\ProcessOptions\relax +\input{size1\@ptsize.clo} + + +%------------------------------------------------------------------------------- +% required packages +%------------------------------------------------------------------------------- +% ifthen package +\RequirePackage{ifthen} + +% ifpdf package +\RequirePackage{ifpdf} + +% color package +\ifpdf + \RequirePackage[pdftex]{color} +\else + \RequirePackage[dvips]{color} +\fi + +% fontenc package +\RequirePackage[T1]{fontenc} + +% scalable Computer Modern fonts +%\usepackage{type1cm} + +% latin modern fonts +\AtEndOfClass{% + \if@lmodern + \RequirePackage{lmodern}\fi} + +% symbols like \Telefon, \Mobilefone, \Letter and \Email +\RequirePackage{marvosym} + +% extended characters of T1 in .ps + other guillemets +%\RequirePackage{ae,aecompl,aeguill} + +% page geometry +\addtolength{\oddsidemargin}{-54pt} +\addtolength{\textwidth}{109pt} +\addtolength{\topmargin}{-70pt} +\addtolength{\textheight}{122pt} +\addtolength{\marginparsep}{-5pt} +\addtolength{\marginparwidth}{-10pt} + +% hyperrefs +\RequirePackage{url} +\ifpdf + \RequirePackage[pdftex,pdfborder=0,breaklinks,baseurl=http://,pdfpagemode=None,pdfstartview=FitH,pdfpagelayout=SinglePage,pdfstartpage=1]{hyperref} + \AtEndOfClass{% + \AtBeginDocument{% + \hypersetup{% + pdfauthor = \@firstname~\@familyname,% + pdftitle = \@title,% + pdfsubject = \@firstname~\@familyname,% + pdfkeywords = \@firstname~\@familyname{} curriculum vit\ae{},% + pdfcreator = \LaTeX{} with `moderncv' package,% + pdfproducer = \LaTeX}}} +\else + \RequirePackage[dvips]{hyperref}\fi +\urlstyle{tt} + +% tables that split across multiple pages +\RequirePackage[]{longtable} +% spacing between sections +\setlength{\LTpre}{\medskipamount} +\setlength{\LTpost}{\medskipamount} +\setlength{\LTleft}{0pt} +\setlength{\LTright}{0pt} + +% graphics +\ifpdf + \RequirePackage[pdftex]{graphicx} +\else + \RequirePackage[dvips]{graphicx}\fi + +% headers and footers +\usepackage{fancyhdr} +\fancypagestyle{plain}{% + \renewcommand{\headrulewidth}{0pt} + \renewcommand{\footrulewidth}{0pt} + \fancyhf{}} +\pagestyle{plain} + +% compatibility package with older versions of moderncv +\RequirePackageWithOptions{moderncvcompatibility} + + +%------------------------------------------------------------------------------- +% class definition +%------------------------------------------------------------------------------- +% minimal base settings +\setlength\lineskip{1\p@} +\setlength\normallineskip{1\p@} +\renewcommand\baselinestretch{} +\setlength{\parindent}{0pt} +\setlength{\parskip}{0pt} +\setlength\columnsep{10\p@} +\setlength\columnseprule{0\p@} +\pagestyle{empty} +\pagenumbering{arabic} +\raggedbottom +\onecolumn + + +%------------------------------------------------------------------------------- +% style commands definitions +%------------------------------------------------------------------------------- +% symbols used +\providecommand*{\listitemsymbol}{\textbullet} + +% colors +\definecolor{firstnamecolor}{rgb}{0,0,0} +\definecolor{familynamecolor}{rgb}{0,0,0} +\definecolor{titlecolor}{rgb}{0,0,0} +\definecolor{addresscolor}{rgb}{0,0,0} +\definecolor{quotecolor}{rgb}{0,0,0} +\definecolor{sectionrectanglecolor}{rgb}{0,0,0} +\definecolor{sectiontitlecolor}{rgb}{0,0,0} +\definecolor{subsectioncolor}{rgb}{0,0,0} +\definecolor{hintcolor}{rgb}{0,0,0} + +% fonts +\providecommand*{\firstnamefont}{} +\providecommand*{\familynamefont}{} +\providecommand*{\titlefont}{} +\providecommand*{\addressfont}{} +\providecommand*{\quotefont}{} +\providecommand*{\sectionfont}{} +\providecommand*{\subsectionfont}{} +\providecommand*{\hintfont}{\small\sffamily} + +% styles +\providecommand*{\firstnamestyle}[1]{{\firstnamefont\color{firstnamecolor}#1}} +\providecommand*{\familynamestyle}[1]{{\familynamefont\color{familynamecolor}#1}} +\providecommand*{\titlestyle}[1]{{\titlefont\color{titlecolor}#1}} +\providecommand*{\addresstyle}[1]{{\addressfont\color{addresscolor}#1}} +\providecommand*{\quotestyle}[1]{{\quotefont\color{quotecolor}#1}} +\providecommand*{\sectionstyle}[1]{{\sectionfont\color{sectiontitlecolor}#1}} +\providecommand*{\subsectionstyle}[1]{{\subsectionfont\color{subsectioncolor}#1}} +\providecommand*{\hintstyle}[1]{{\hintfont\color{hintcolor}#1}} + +% styles: casual (default), classic, ... +\newcommand*{\moderncvstyle}[2][]{ + \def\@moderncvstyle{#2} + \def\@moderncvstyleoptions{#1}} +\AtBeginDocument{\RequirePackage[\@moderncvstyleoptions]{moderncvstyle\@moderncvstyle}} + +% load default style +\moderncvstyle{casual} + + +%------------------------------------------------------------------------------- +% structure commands definitions +%------------------------------------------------------------------------------- +\newcommand*{\firstname}[1]{\def\@firstname{#1}} +\newcommand*{\familyname}[1]{\def\@familyname{#1}} +\renewcommand*{\title}[1]{\def\@title{#1}} +\newcommand*{\address}[1]{\def\@address{#1}} +\newcommand*{\phone}[1]{\def\@phone{#1}} +\newcommand*{\email}[1]{\def\@email{#1}} +\newcommand*{\extrainfo}[1]{\def\@extrainfo{#1}} +\newcommand*{\quote}[1]{\def\@quote{#1}} +\firstname{} +\familyname{} +\title{} +\address{} +\phone{} +\email{} +\extrainfo{} +\quote{} + +% length used by the moderncv layout +% quote length +\newlength{\quotewidth} +% section lengths +\newlength{\hintscolumnwidth} +\newlength{\separatorcolumnwidth} +\setlength{\separatorcolumnwidth}{0.025\textwidth} +\newlength{\maincolumnwidth} +\newcommand*{\sethintscolumnlength}[1]{ + \setlength{\hintscolumnwidth}{#1}% + \setlength{\maincolumnwidth}{\textwidth}% + \addtolength{\maincolumnwidth}{-\separatorcolumnwidth}% + \addtolength{\maincolumnwidth}{-\hintscolumnwidth}} +\newcommand*{\sethintscolumntowidth}[1]{ + \settowidth{\hintscolumnwidth}{#1}% + \setlength{\maincolumnwidth}{\textwidth}% + \addtolength{\maincolumnwidth}{-\separatorcolumnwidth}% + \addtolength{\maincolumnwidth}{-\hintscolumnwidth}} +% doubleitem lengths +\newlength{\doubleitemmaincolumnwidth} +% listitem lengths +\newlength{\listitemsymbolwidth} +\settowidth{\listitemsymbolwidth}{\listitemsymbol{}~} +% listdoubleitem lengths +\newlength{\listdoubleitemmaincolumnwidth} +% recompute all the lengths that depends on the text width +\newcommand*{\recomputelengths}{% + \setlength{\quotewidth}{0.65\textwidth}% + \sethintscolumnlength{\hintscolumnwidth}% + % doubleitem lengths + \setlength{\doubleitemmaincolumnwidth}{\maincolumnwidth}% + \addtolength{\doubleitemmaincolumnwidth}{-\hintscolumnwidth}% + \addtolength{\doubleitemmaincolumnwidth}{-\separatorcolumnwidth}% + \setlength{\doubleitemmaincolumnwidth}{0.5\doubleitemmaincolumnwidth}% + % listdoubleitem lengths + \setlength{\listdoubleitemmaincolumnwidth}{\maincolumnwidth}% + \addtolength{\listdoubleitemmaincolumnwidth}{-\listitemsymbolwidth}% + \setlength{\listdoubleitemmaincolumnwidth}{0.475\listdoubleitemmaincolumnwidth}} +\sethintscolumnlength{0.15\textwidth} +\recomputelengths + +% makes the cv title +\renewcommand*{\maketitle}{}% + +% make a quote +\newcommand*{\makequote}{% + {\centering{% + \begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}}\\[2.5em]}} + +% draws a colored rectangle +% usage: \colorrule[optional height]{width} +%\newcommand*{\colorrule}[2][1ex]{{\color{sectionrectanglecolor}{\rule{#2}{#1}}}} + +% usage: \section{<title>}, or \emptysection{} +\newif\if@sectionopen\@sectionopenfalse +\newif\if@firstcvline\@firstcvlinefalse % bug if initially set to true... +\newcommand*{\closesection}{% + \if@sectionopen% + \end{longtable}% + \phantomsection% % reset the anchor for hyperrefs +% \par\null% + \@sectionopenfalse\fi} +\AtEndDocument{\closesection{}} +\newcommand*{\section}[1]{% + \closesection{}% + \@sectionopentrue% + \phantomsection{}% + \addcontentsline{toc}{part}{#1}% +% \ignorespacesafterend% NOT WORKING + \begin{longtable}[l]{@{}l@{\hspace{\separatorcolumnwidth}}@{}p{\maincolumnwidth}@{}}% +% \colorrule{\hintscolumnwidth}&\mbox{\sectionstyle{#1}}\\[1ex]}% + {\color{sectionrectanglecolor}\rule{\hintscolumnwidth}{1ex}} &\sectionstyle{#1}\\[1ex]% + \@firstcvlinetrue} +\newcommand*{\emptysection}{% + \closesection{}% + \@sectionopentrue% +% \ignorespacesafterend% NOT WORKING + \begin{longtable}[l]{@{}l@{\hspace{\separatorcolumnwidth}}@{}p{\maincolumnwidth}@{}}% + \@firstcvlinetrue} + +% usage (inside section): \subsection{title} +\newcommand*{\subsection}[1]{% + &\subsectionstyle{#1}\\[1ex]} + +% usage (inside section): \cvline{leftmark}{text} +\newcommand*{\cvline}[2]{% + \if@firstcvline% + \@firstcvlinefalse% + \\[-1em]% ugly hack to remove spaces before the first line + \else% + \\\fi% + \begin{minipage}[t]{\hintscolumnwidth}\raggedleft\hintfont{#1}\end{minipage}&\begin{minipage}[t]{\maincolumnwidth}#2\end{minipage}} +% #1&\framebox{\begin{minipage}[t]{\maincolumnwidth}#2\end{minipage}}} +% \begin{minipage}[t]{\hintscolumnwidth}\raggedleft\hintstyle{#1}\end{minipage}&\begin{minipage}[t]{\maincolumnwidth}#2\end{minipage}} + +% usage (inside section): \cvitem{leftmark}{text} +\newcommand*{\cvitem}[2]{% + \if@firstcvline + \else + \\[-0.75em]\fi + \cvline{#1}{#2}} + +% usage (inside section}: \cvdoubleitem{subtitle}{text}{subtitle}{text} +\newcommand*{\cvdoubleitem}[4]{% + \cvitem{#1}{\begin{minipage}[t]{\doubleitemmaincolumnwidth}#2\end{minipage}% + \hfill% + \begin{minipage}[t]{\hintscolumnwidth}\raggedleft\hintfont{#3}\end{minipage}\hspace*{\separatorcolumnwidth}\begin{minipage}[t]{\doubleitemmaincolumnwidth}#4\end{minipage}}} + +% usage (inside section): \cvlistitem{point1} +\newcommand*{\cvlistitem}[1]{% + \cvline{}{\listitemsymbol{}~#1}} + +% usage (inside section): \cvlistdoubleitem{point1}{point2} +\newcommand*{\cvlistdoubleitem}[2]{% + \cvline{}{\listitemsymbol{}~\begin{minipage}[t]{\listdoubleitemmaincolumnwidth}#1\end{minipage}% + \hfill% + \ifthenelse{\equal{#2}{}}% + {}% + {\listitemsymbol{}~\begin{minipage}[t]{\listdoubleitemmaincolumnwidth}#2\end{minipage}}}} + +% usage : \cventry{years}{degree/job title}{institution/employer}{localization}{optionnal: grade/...}{optional: comment/job description} +\newcommand*{\cventry}[6]{% + \cvitem{#1}{% + {\bfseries#2}% + \ifthenelse{\equal{#3}{}}{}{, {\slshape#3}}% + \ifthenelse{\equal{#4}{}}{}{, #4}% + \ifthenelse{\equal{#5}{}}{}{, #5}% + .% + \ifthenelse{\equal{#6}{}}{}{\\\begin{minipage}[t]{\textwidth}\small#6\end{minipage}}}} + +% usage (inside 'language' cvsection environment): \cvlanguage{name}{level}{comment} +\newcommand*{\cvlanguage}[3]{% + \cvitem{#1}{\begin{minipage}[t]{.225\maincolumnwidth}\textbf{#2}\end{minipage}\hfill\begin{minipage}[t]{0.725\maincolumnwidth}\raggedleft\footnotesize\itshape #3\end{minipage}}} + +% usage (inside 'computer skills' cvsection environment): \cvcomputer{category}{programs}{category}{programs} +\newcommand*{\cvcomputer}[4]{% + \cvdoubleitem{#1}{\small#2}{#3}{\small#4}} + +% usage: \weblink[optional text]{link} +\newcommand*{\weblink}[2][]{% + \ifthenelse{\equal{#1}{}}% + {\def\@linktext{#2}}% + {\def\@linktext{#1}}% + \href{#2}{\@linktext{}}} + +% usage: \httplink[optional text]{link} +\newcommand*{\httplink}[2][]{% + \ifthenelse{\equal{#1}{}}% + {\def\@linktext{#2}}% + {\def\@linktext{#1}}% + \href{http://#2}{\@linktext{}}} + +% usage: \emaillink[optional text]{link} +\newcommand*{\emaillink}[2][]{% + \ifthenelse{\equal{#1}{}}% + {\def\@linktext{#2}}% + {\def\@linktext{#1}}% + \href{mailto:#2}{\@linktext{}}} + + +\endinput + +%% end of file `moderncv.cls'. diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncvcompatibility.sty b/Master/texmf-dist/tex/latex/moderncv/moderncvcompatibility.sty new file mode 100644 index 00000000000..49dfe80a8c1 --- /dev/null +++ b/Master/texmf-dist/tex/latex/moderncv/moderncvcompatibility.sty @@ -0,0 +1,51 @@ +%% start of file `moderncvcompatibility.sty'. + +%------------------------------------------------------------------------------- +% identification +%------------------------------------------------------------------------------- +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{moderncvcompatibility}[2006/05/02 v0.4 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 version 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) + +\endinput + +%% end of file `moderncvstylethemecasual.sty'. diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty b/Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty new file mode 100644 index 00000000000..822e36a5566 --- /dev/null +++ b/Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty @@ -0,0 +1,104 @@ +%% start of file `moderncvstylecasual.sty'. + +%------------------------------------------------------------------------------- +% identification +%------------------------------------------------------------------------------- +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{moderncvstylecasual}[2006/05/02 v0.4 modern curriculum vitae style: casual] + + +%------------------------------------------------------------------------------- +% required packages +%------------------------------------------------------------------------------- + + +%------------------------------------------------------------------------------- +% package options +%------------------------------------------------------------------------------- +% nocolor option +\newif\if@color\@colortrue +\DeclareOption{nocolor}{\@colorfalse} + +% roman option +\newif\if@roman\@romanfalse +\DeclareOption{roman}{\@romantrue} + +% unused options +\DeclareOption*{ + \PackageWarning{moderncvstylecasual}{Unknown option ‘\CurrentOption’}} + +% execute default options +\ExecuteOptions{color} + +% process given options +\ProcessOptions\relax + + +%------------------------------------------------------------------------------- +% style definition +%------------------------------------------------------------------------------- +% symbols used +\renewcommand*{\listitemsymbol}{\textbullet} + +% colors +\if@color + \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{sectionrectanglecolor}{rgb}{0.25,0.5,0.75} + \definecolor{sectiontitlecolor}{rgb}{0.2,0.4,0.65} +\else + \definecolor{firstnamecolor}{rgb}{0.5,0.5,0.5} + \definecolor{familynamecolor}{rgb}{0,0,0} + \definecolor{quotecolor}{rgb}{0.35,0.35,0.35} + \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75} + \definecolor{sectiontitlecolor}{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}{\normalsize\sffamily\mdseries\upshape} + +% styles + +% maketitle +\renewcommand*{\maketitle}{% + {\raggedleft{\firstnamestyle{\MakeLowercase{\@firstname}}\familynamestyle{\MakeLowercase{\@familyname}}}\\[-.35em]}% + {\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[2.5em]}}% + +% cv footer +\providecommand*{\footersymbol}{} +\renewcommand*{\footersymbol}{\textbullet} +\providecommand*{\footerfont}{} +\renewcommand*{\footerfont}{\addressfont} +\if@color + \definecolor{footertextcolor}{rgb}{0.35,0.35,0.35} + \definecolor{footersymbolcolor}{rgb}{0.25,0.5,0.75} +\else + \definecolor{footertextcolor}{rgb}{0.35,0.35,0.35} + \definecolor{footersymbolcolor}{rgb}{0.75,0.75,0.75}\fi +\providecommand*{\makefooter}{} +\renewcommand*{\makefooter}{% + \fancypagestyle{plain}{% + \fancyfoot[c]{% + \footerfont% + \color{footertextcolor}\@address% + ~~\color{footersymbolcolor}\footersymbol~~% + \color{footertextcolor}\Telefon~\@phone% + ~~\color{footersymbolcolor}\footersymbol~~% + \color{footertextcolor}\Letter~\emaillink{\@email}}}% + \pagestyle{plain}} +\AtBeginDocument{\makefooter} + + +\endinput + +%% end of file `moderncvstylecasual.sty'. diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncvstyleclassic.sty b/Master/texmf-dist/tex/latex/moderncv/moderncvstyleclassic.sty new file mode 100644 index 00000000000..4250e96684f --- /dev/null +++ b/Master/texmf-dist/tex/latex/moderncv/moderncvstyleclassic.sty @@ -0,0 +1,97 @@ +%% start of file `moderncvstyleclassic.sty'. + +%------------------------------------------------------------------------------- +% identification +%------------------------------------------------------------------------------- +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{moderncvstyleclassic}[2006/05/02 v0.4 modern curriculum vitae style: casual] + + +%------------------------------------------------------------------------------- +% required packages +%------------------------------------------------------------------------------- + + +%------------------------------------------------------------------------------- +% package options +%------------------------------------------------------------------------------- +% nocolor option +\newif\if@color\@colortrue +\DeclareOption{nocolor}{\@colorfalse} + +% roman option +\newif\if@roman\@romanfalse +\DeclareOption{roman}{\@romantrue} + +% unused options +\DeclareOption*{ + \PackageWarning{moderncvstyleclassic}{Unknown option ‘\CurrentOption’}} + +% execute default options +\ExecuteOptions{color} + +% process given options +\ProcessOptions\relax + + +%------------------------------------------------------------------------------- +% style definition +%------------------------------------------------------------------------------- +% symbols used +\renewcommand*{\listitemsymbol}{\textbullet} + +% colors +\if@color + \definecolor{firstnamecolor}{rgb}{0,0,0} + \definecolor{familynamecolor}{rgb}{0,0,0} + \definecolor{titlecolor}{rgb}{0.35,0.35,0.35} + \definecolor{addresscolor}{rgb}{0.25,0.5,0.75} + \definecolor{quotecolor}{rgb}{0.35,0.35,0.35} + \definecolor{sectionrectanglecolor}{rgb}{0.25,0.5,0.75} + \definecolor{sectiontitlecolor}{rgb}{0.2,0.4,0.65} +\else + \definecolor{firstnamecolor}{rgb}{0,0,0} + \definecolor{familynamecolor}{rgb}{0,0,0} + \definecolor{titlecolor}{rgb}{0.35,0.35,0.35} + \definecolor{addresscolor}{rgb}{0.35,0.35,0.35} + \definecolor{quotecolor}{rgb}{0.35,0.35,0.35} + \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75} + \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35}\fi + +% fonts +\if@roman + \AtBeginDocument{\rmfamily} +\else + \AtBeginDocument{\sffamily}\fi +\renewcommand*{\ttdefault}{pcr} +\renewcommand*{\firstnamefont}{\fontsize{34}{36}\sffamily\mdseries\upshape} +\renewcommand*{\titlefont}{\LARGE\sffamily\mdseries\slshape} +\renewcommand*{\addressfont}{\rmfamily\mdseries\slshape} +\renewcommand*{\familynamefont}{\firstnamefont} +\renewcommand*{\quotefont}{\large\slshape} +\renewcommand*{\sectionfont}{\Large\sffamily\mdseries\upshape} +\renewcommand*{\subsectionfont}{\normalsize\sffamily\mdseries\upshape} + +% styles + +% maketitle +\renewcommand*{\maketitle}{% + \begin{minipage}[t]{.6\textwidth}% + \firstnamestyle{\@firstname~}\familynamestyle{\@familyname}% + \ifthenelse{\equal{\@title}{}}% + {}% + {\\[1.25em]\titlestyle{\@title}}% + \end{minipage}% + \begin{minipage}[t]{.4\textwidth}% + \raggedleft\addressfont\color{addresscolor}\@address\\[0.2em]% + \Telefon~\@phone\\[.2em]% + \Letter~\emaillink{\@email}% + \ifthenelse{\equal{\@extrainfo}{}}% + {}% + {\\[0.2em]\@extrainfo} + \end{minipage}\\[3em]} + + +\endinput + +%% end of file `moderncvstyleclassic.sty'. diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncvstyleempty.sty b/Master/texmf-dist/tex/latex/moderncv/moderncvstyleempty.sty new file mode 100644 index 00000000000..a96a371c5cf --- /dev/null +++ b/Master/texmf-dist/tex/latex/moderncv/moderncvstyleempty.sty @@ -0,0 +1,36 @@ +%% start of file `moderncvstyleempty.sty'. + +%------------------------------------------------------------------------------- +% identification +%------------------------------------------------------------------------------- +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{moderncvstyleempty}[2006/05/02 v0.4 modern curriculum vitae style: empty] + + +%------------------------------------------------------------------------------- +% required packages +%------------------------------------------------------------------------------- + + +%------------------------------------------------------------------------------- +% package options +%------------------------------------------------------------------------------- +% unused options +\DeclareOption*{ + \PackageWarning{moderncvstyleempty}{Unknown option ‘\CurrentOption’}} + +% execute default options +\ExecuteOptions{} + +% process given options +\ProcessOptions\relax + + +%------------------------------------------------------------------------------- +% style definition +%------------------------------------------------------------------------------- + + +\endinput + +%% end of file `moderncvstyleempty.sty'. |