moderncv 页码,有 2 页

moderncv 页码,有 2 页

moderncv我对和有疑问pagenumbering

在以下示例中,第一页没有页脚和页码,而第二页有。我希望第一页只有页码,而第二页有标准页脚和页码。

这怎么可能?

\documentclass[12pt,a4paper,sans]{moderncv}

% moderncv themes
\moderncvstyle{casual}
\moderncvcolor{blue}
\usepackage[scale=0.75]{geometry}

% personal data
\name{John}{Doe}
\phone[mobile]{+1~(234)~567~890}

% content
\begin{document}
\makecvtitle
\pagestyle{empty}

\section{Education}
\cventry{1998-2007}{Degree}{Institution}{City}{\textit{Grade}}    {Description}

\pagebreak % just to simulate a lenghty CV for this MWE

\section{Computer skills}
Second page

\thispagestyle{plain}
\end{document}

答案1

您的问题可以通过添加来解决

\fancypagestyle{first}{%
\cfoot{}
}

回到序言。

\documentclass[12pt,a4paper,sans]{moderncv}

% moderncv themes
\moderncvstyle{casual}
\moderncvcolor{blue}
\usepackage[scale=0.75]{geometry}

\usepackage{fancyhdr} % Not required here as it is used by moderncv anyway
\fancypagestyle{first}{%
\cfoot{}
}

% personal data
\name{John}{Doe}
\phone[mobile]{+1~(234)~567~890}

% content
\begin{document}
\makecvtitle
\thispagestyle{first}

\section{Education}
\cventry{1998-2007}{Degree}{Institution}{City}{\textit{Grade}}
{Description}

\pagebreak % just to simulate a lenghty CV for this MWE

\section{Computer skills}
Second page

\thispagestyle{plain}
\end{document}

相关内容