summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/moderncv/moderncv.cls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-01-27 00:06:31 +0000
committerKarl Berry <karl@freefriends.org>2012-01-27 00:06:31 +0000
commitc6dd4805eb3789701aed68b6ba8f2d05bf4e4a7d (patch)
tree24e9c51a6346a7f59e11f609d385e5ef000fdb92 /Master/texmf-dist/tex/latex/moderncv/moderncv.cls
parent8f4cafb6e83086f58a5a3d3a10a3d5352d703033 (diff)
moderncv 0.17 (25jan12)
git-svn-id: svn://tug.org/texlive/trunk@25203 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.cls10
1 files changed, 6 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncv.cls b/Master/texmf-dist/tex/latex/moderncv/moderncv.cls
index cbdcfc04606..cf19a0457a9 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/01/15 v0.16 modern curriculum vitae document class]
+\ProvidesClass{moderncv}[2012/01/25 v0.17 modern curriculum vitae document class]
%-------------------------------------------------------------------------------
@@ -99,7 +99,7 @@
% hyper links
\RequirePackage{url}
\urlstyle{tt}
-% load hyperred at the end of the preamble to pass options required by loaded packages (like CJK)
+% load hyperref at the end of the preamble to pass options required by loaded packages (like CJK)
\AtEndPreamble{
\@ifpackageloaded{CJK}
{\RequirePackage[unicode]{hyperref}}
@@ -313,9 +313,11 @@
\AtBeginDocument{%
\if@displaypagenumbers%
\@ifundefined{r@lastpage}{}{%
- \ifthenelse{\pageref{lastpage} > 1}{%
+ \ifthenelse{\pageref{lastpage}>1}{%
+ \newlength{\pagenumberwidth}%
+ \settowidth{\pagenumberwidth}{\color{color2}\addressfont\itshape\strut\thepage/\pageref{lastpage}}%
\fancypagestyle{plain}{%
- \fancyfoot[r]{\addressfont\color{color2}\footnotesize\thepage/\pageref{lastpage}}}%
+ \fancyfoot[r]{\parbox{\pagenumberwidth}{\color{color2}\addressfont\itshape\strut\thepage/\pageref{lastpage}}}}% the parbox is required to ensure alignment with a possible center footer (e.g., as in the casual style)
\pagestyle{plain}}{}}%
\AtEndDocument{\label{lastpage}}\else\fi}}