MacTeX 2014 上 moderncv 包的页码不显示

MacTeX 2014 上 moderncv 包的页码不显示

我正在运行带有 MacTeX 2014 的 OS X Yosemite Beta 6。总体而言,一切似乎都正常,但是,当我使用 moderncv 创建包含一页以上的简历时,页码不会显示在页脚的右侧。这是一个最小的例子:

\documentclass[sans, letterpaper,10pt]{moderncv}
\moderncvstyle{casual}
\moderncvcolor{blue}

\name{John}{Doe}
%\title{}
\address{street}{postcode city}
\mobile{+4~(11)~311~111}
\phone{+2~(345)~678~901}
\fax{+3~(456)~789~012}
\email{[email protected]}
\homepage{www.johndoe.com}
\extrainfo{additional info}
% \photo[64pt][0.4pt]{picture.png}
%\quote{}

\begin{document}
\makecvtitle

\section{Experience}

\subsection{My work}
\cvcomputer{One}{Bla, Bla, Bla}{Two}{Bla,Bla,Bla}

\newpage

\section{Foreign Languages}
\cvitemwithcomment{English}{Fluent}{Some description here}

\newpage

\section{Other Skills}
\cvitemwithcomment{Computers}{Very good}{Some description here}

\end{document}

我也尝试过用 pdflatex、xelatex 和 lualatex 编译代码,但它们似乎对 moderncv 的行为没有任何影响。

我知道这里也出现过类似的问题,但我没有看到提供解决方案。人们建议使用\rfoot,但由于页码是在 moderncv 中定义的,我想找出我的文件中出了什么问题。

谢谢,

人类

答案1

我不知道为什么需要这样做(似乎这应该是默认行为),但是为了获得页码,您可以添加

\usepackage{lastpage}
\rfoot{\addressfont\itshape\textcolor{gray}{Page \thepage\ of \pageref{LastPage}}}

得出的结果是:

在此处输入图片描述

答案2

\setlength{\footskip}{136.00005pt}

这就是我的问题根源。评论后,出现页码。

相关内容