diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/moderncv/moderncv.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/moderncv/moderncv.cls | 52 |
1 files changed, 19 insertions, 33 deletions
diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncv.cls b/Master/texmf-dist/tex/latex/moderncv/moderncv.cls index a2e596813ba..b4199d585ea 100644 --- a/Master/texmf-dist/tex/latex/moderncv/moderncv.cls +++ b/Master/texmf-dist/tex/latex/moderncv/moderncv.cls @@ -10,7 +10,7 @@ % identification %------------------------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{moderncv}[2011/11/11 v0.13.1 modern curriculum vitae document class] +\ProvidesClass{moderncv}[2011/12/04 v0.14 modern curriculum vitae document class] %------------------------------------------------------------------------------- @@ -64,10 +64,6 @@ \newif\if@lmodern\@lmoderntrue \DeclareOption{nolmodern}{\@lmodernfalse} -% CJK option -%\newif\if@CJK\@CJKfalse -%\DeclareOption{CJK}{\@CJKtrue} - % execute default options \ExecuteOptions{a4paper,11pt,color,final} @@ -89,18 +85,12 @@ % if... then... else... constructs \RequirePackage{ifthen} -% latex vs pdflatex vs xelatex vs luatex compilation -%\RequirePackage{ifpdf} - % color \RequirePackage{color} % font encoding \RequirePackage[T1]{fontenc} -% scalable Computer Modern fonts -%\usepackage{type1cm} - % latin modern fonts \if@lmodern \RequirePackage{lmodern}\fi @@ -108,9 +98,6 @@ % 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} @@ -125,15 +112,14 @@ % load hyperred at the end of the preamble to pass options required by loaded packages (like CJK) \AtEndPreamble{ \@ifpackageloaded{CJK} - {\RequirePackage[CJKbookmarks]{hyperref}} + {\RequirePackage[unicode]{hyperref}} {\RequirePackage{hyperref}} - \AtBeginDocument{ \hypersetup{ breaklinks, baseurl = http://, pdfborder = 0 0 0, pdfpagemode = UseNone,% do not show thumbnails or bookmarks on opening -% pdfstartview = FitH, + pdfpagelabels = false,% to avoid a warning setting it automatically to false anyway, because hyperref detects \thepage as undefined (why?) pdfstartpage = 1, pdfcreator = \LaTeX{} with `moderncv' package, pdfproducer = \LaTeX{}, @@ -141,7 +127,7 @@ pdfauthor = \@firstname~\@familyname, pdftitle = \@title, pdfsubject = \@firstname~\@familyname, - pdfkeywords = \@firstname~\@familyname{} curriculum vit\ae{}}} + pdfkeywords = \@firstname~\@familyname{} curriculum vit\ae{}} \pagenumbering{arabic}% has to be issued after loading hyperref } @@ -170,14 +156,14 @@ \setlength\lineskip{1\p@} \setlength\normallineskip{1\p@} \renewcommand\baselinestretch{} -\setlength{\parindent}{0pt} -\setlength{\parskip}{0pt} +\setlength{\parindent}{0\p@} +\setlength{\parskip}{0\p@} \setlength\columnsep{10\p@} \setlength\columnseprule{0\p@} \setlength\fboxsep{3\p@} \setlength\fboxrule{.4\p@} -% TO BE TESTED +% Not required %\setlength\arraycolsep{5\p@} %\setlength\tabcolsep{6\p@} %\setlength\arrayrulewidth{.4\p@} @@ -232,12 +218,16 @@ \providecommand*{\subsectionstyle}[1]{{\subsectionfont\color{subsectioncolor}#1}} \providecommand*{\hintstyle}[1]{{\hintfont\color{hintcolor}#1}} -% themes: casual (default), classic, ... +% makes the cv title +\newcommand*{\maketitle}{}% +\title{}% to avoid LaTeX complaining that \maketitle is a called without first a call to \title + +% makes the cv footer +\newcommand*{\makefooter} + +% loads a style \newcommand*{\moderncvtheme}[2][]{ - \def\@moderncvtheme{#2} - \def\@moderncvthemeoptions{#1}} -\moderncvtheme{casual}% default theme -\AtEndPreamble{\RequirePackage[\@moderncvthemeoptions]{moderncvtheme\@moderncvtheme}} + \RequirePackage[#1]{moderncvtheme#2}} %------------------------------------------------------------------------------- @@ -261,6 +251,7 @@ \newlength{\quotewidth} % section lengths \newlength{\hintscolumnwidth} +\setlength{\hintscolumnwidth}{0.15\textwidth} \newlength{\separatorcolumnwidth} \setlength{\separatorcolumnwidth}{0.025\textwidth} \newlength{\maincolumnwidth} @@ -294,13 +285,8 @@ \setlength{\listdoubleitemmaincolumnwidth}{0.475\listdoubleitemmaincolumnwidth}% % fancyhdr lengths \renewcommand{\headwidth}{\textwidth}% - \recomputethemelengths} -\setlength{\hintscolumnwidth}{0.15\textwidth} -\recomputelengths - -% makes the cv title -%\newcommand*{\maketitle}{}% -\title{}% to avoid LaTeX complaining that \maketitle is a called without first a call to \title + \recomputethemelengths{}} +\AtBeginDocument{\recomputelengths{}} % draws a colored rectangle % usage: \colorrule[optional height]{width} |