summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/moderncv/moderncv.cls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-10-31 21:45:18 +0000
committerKarl Berry <karl@freefriends.org>2012-10-31 21:45:18 +0000
commit54ba93bf0a6f72847b3981af2e763a8ce60b9d07 (patch)
tree8cc66c2255a088f71e0168365879fe372a57e49a /Master/texmf-dist/tex/latex/moderncv/moderncv.cls
parent4051c7da97b4e20b82b75d470cedd3cbbffee96b (diff)
moderncv (31oct12)
git-svn-id: svn://tug.org/texlive/trunk@28139 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/moderncv/moderncv.cls')
-rw-r--r--Master/texmf-dist/tex/latex/moderncv/moderncv.cls43
1 files changed, 25 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncv.cls b/Master/texmf-dist/tex/latex/moderncv/moderncv.cls
index 5d8b23a2f61..1107842c5d4 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}[2012/08/10 v1.1.3 modern curriculum vitae and letter document class]
+\ProvidesClass{moderncv}[2012/10/31 v1.2.0 modern curriculum vitae and letter document class]
%-------------------------------------------------------------------------------
@@ -69,19 +69,17 @@
%-------------------------------------------------------------------------------
% required packages
%-------------------------------------------------------------------------------
-% \AtEndPreamble hook (loading tetoolbox instead of defining the macro, as to avoid incompatibilities with etoolbox (and packages relying on it) defining the macro too)
+% \AtEndPreamble hook (loading etoolbox instead of defining the macro, as to avoid incompatibilities with etoolbox (and packages relying on it) defining the macro too)
\RequirePackage{etoolbox}
%\let\@endpreamblehook\@empty
%\def\AtEndPreamble{\g@addto@macro\@endpreamblehook}
-%\let\moderncv@document\document
-%\def\document{\endgroup\@endpreamblehook\begingroup\moderncv@document}
+%\let\document@original\document
+%\def\document{\endgroup\@endpreamblehook\begingroup\document@original}
% if... then... else... constructs
\RequirePackage{ifthen}
% TODO: move to xifthen and \isempty{<arg>} instead of \equal{<arg>}{}
-% TODO: replace \newcommand by \NewDocumentCommand (LaTeX 3)
-
% color
\RequirePackage{xcolor}
@@ -125,7 +123,8 @@
\RequirePackage{url}
\urlstyle{tt}
\AtEndPreamble{
- \RequirePackage[unicode,pdfpagelabels=false]{hyperref}% unicode is required for unicode pdf metadata, pdfpagelabels=false is required to avoid a warning setting it automatically to false anyway, because hyperref detects \thepage as undefined (why?)
+ \pagenumbering{arabic}% has to be issued before loading hyperref, as to set \thepage and hence to avoid hyperref issuing a warning and setting pdfpagelabels=false
+ \RequirePackage[unicode]{hyperref}% unicode is required for unicode pdf metadata
\hypersetup{
breaklinks,
baseurl = http://,
@@ -139,9 +138,7 @@
pdfauthor = {\@firstname{}~\@familyname{}},
pdftitle = {\@firstname{}~\@familyname{} -- \@title{}},
pdfsubject = {Resum\'{e} of \@firstname{}~\@familyname{}},
- pdfkeywords = {\@firstname{}~\@familyname{}, curriculum vit\ae{}, resum\'{e}}}
- \pagenumbering{arabic}% has to be issued after loading hyperref
-}
+ pdfkeywords = {\@firstname{}~\@familyname{}, curriculum vit\ae{}, resum\'{e}}}}
% graphics
\RequirePackage{graphicx}
@@ -171,10 +168,11 @@
% lengths calculations
\RequirePackage{calc}
-% advanced command arguments
+% advanced command arguments (LaTeX 3)
\RequirePackage{xargs}
+% TODO (?): replace all \newcommand by \NewDocumentCommand
-% micro-typography (e.g., character protrusion, font expansion, hyphenatable letterspacing)
+% micro-typography (e.g., character protrusion, font expansion, hyphenatable letterspacing)
\RequirePackage{microtype}
% compatibility package with older versions of moderncv
@@ -194,12 +192,12 @@
\setlength\columnseprule{0\p@}
\setlength\fboxsep{3\p@}
\setlength\fboxrule{.4\p@}
+\setlength\arrayrulewidth{.4\p@}
+\setlength\doublerulesep{2\p@}
-% not required
+% not set on purpose
%\setlength\arraycolsep{5\p@}
%\setlength\tabcolsep{6\p@}
-%\setlength\arrayrulewidth{.4\p@}
-%\setlength\doublerulesep{2\p@}
%\setlength\tabbingsep{\labelsep}
\raggedbottom
@@ -291,6 +289,15 @@
\newcommand*{\subsectionfont}{}
\newcommand*{\hintfont}{}
+% styles
+\newcommand*{\namestyle}[1]{{\namefont#1}}
+\newcommand*{\titlestyle}[1]{{\titlefont#1}}
+\newcommand*{\addressstyle}[1]{{\addressfont#1}}
+\newcommand*{\quotestyle}[1]{{\quotefont#1}}
+\newcommand*{\sectionstyle}[1]{{\sectionfont#1}}
+\newcommand*{\subsectionstyle}[1]{{\subsectionfont#1}}
+\newcommand*{\hintstyle}[1]{{\hintfont#1}}
+
% recompute all resume lengths
\newcommand*{\recomputecvlengths}{}
@@ -305,11 +312,11 @@
% makes the resume title
% usage: \makecvtitle
-\newcommand*{\makecvtitle}{}%
+\newcommand*{\makecvtitle}{}
% makes the resume footer
% usage: \makecvfooter
-\newcommand*{\makecvfooter}{\makefooter}%
+\newcommand*{\makecvfooter}{\makefooter}
% makes a resume section
% usage: \section{<title>}
@@ -433,7 +440,7 @@
%-------------------------------------------------------------------------------
% elements
\newcommand*{\recipient}[2]{\def\@recipientname{#1}\def\@recipientaddress{#2}}
-\renewcommand*{\date}[1]{\def\@date{#1}}
+\renewcommand*{\date}[1]{\def\@date{#1}}\date{\today}
\newcommand*{\opening}[1]{\def\@opening{#1}}
\newcommand*{\closing}[1]{\def\@closing{#1}}
\newcommand*{\enclosure}[2][]{%