summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/moderncv/moderncv.cls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-01-17 00:01:02 +0000
committerKarl Berry <karl@freefriends.org>2012-01-17 00:01:02 +0000
commitd09f4ca68c6df756737f810b80fa1190bd5b57d9 (patch)
tree6e09bb333920a0ecdbafd99817637e437b999bcf /Master/texmf-dist/tex/latex/moderncv/moderncv.cls
parent06cb5c1303792dae4ef9a8828457c61a71985d49 (diff)
moderncv (16jan12)
git-svn-id: svn://tug.org/texlive/trunk@25126 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.cls15
1 files changed, 6 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncv.cls b/Master/texmf-dist/tex/latex/moderncv/moderncv.cls
index 8801b9aaee6..cbdcfc04606 100644
--- a/Master/texmf-dist/tex/latex/moderncv/moderncv.cls
+++ b/Master/texmf-dist/tex/latex/moderncv/moderncv.cls
@@ -1,5 +1,5 @@
%% start of file `moderncv.cls'.
-%% Copyright 2006-2011 Xavier Danaux (xdanaux@gmail.com).
+%% Copyright 2006-2012 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,
@@ -10,7 +10,7 @@
% identification
%-------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{moderncv}[2011/12/23 v0.15.1 modern curriculum vitae document class]
+\ProvidesClass{moderncv}[2012/01/15 v0.16 modern curriculum vitae document class]
%-------------------------------------------------------------------------------
@@ -252,17 +252,14 @@
% makes a cv section
% usage: \section{<title>}
\newcommand*{\section}[1]{}
-\AtEndPreamble{%
- \@ifpackageloaded{natbib}
- {
- \RequirePackage{suffix}
- \WithSuffix\newcommand\section*{\section}
- }{}
-}
+% starred variant, which is identical but defined to allow its use (e.g. for natbib compatibility, who uses \section*{} for the bibliography header)
+\RequirePackage{suffix}
+\AtBeginDocument{\WithSuffix\newcommand\section*{\section}}
% makes a cv subsection
% usage: \subsection{title}
\newcommand*{\subsection}[1]{}
+\AtBeginDocument{\WithSuffix\newcommand\subsection*{\subsection}}
% makes a cv line with a header and a corresponding text
% usage: \cvitem[spacing]{header}{text}