在此信函模板中,如何使联系方式页脚仅出现在最后一页?

在此信函模板中,如何使联系方式页脚仅出现在最后一页?

这是一封 2 页的求职信。两个都我的联系方式显示在页面底部的页脚中。如何使页脚(联系方式)显示在页面底部仅有的在第二页?

\documentclass[11pt,a4paper,sans]{moderncv}      
\moderncvstyle{casual}  
\moderncvcolor{blue}                               
\usepackage[utf8]{inputenc}                      
\usepackage[scale=0.95, top=1cm, bottom=2cm, left=2cm, right=1cm]{geometry}
\renewcommand*{\addressfont}{\small\mdseries}
\name{John}{Templeton}
\title{Resumé title}                             
\address{36 Mauniour, Valybir, Alcansa}{}{United States}
\phone[mobile]{+19193433283}                  
\email{[email protected]}    
\extrainfo{\emailsymbol\emaillink{r\[email protected]}}

\newlength{\currentparskip}

\begin{document}

\recipient{Department of Philology \\
Faculty of Humanities \\
University California\\
Elgsdelaan 1105 \\
1081 HV California\\
[email protected]\\
Job number:5675}{}

\date{\today}


\opening{To whom it may concern,}
\closing{Yours sincerely,\vspace{-0.5cm}}
\makelettertitle
\setlength{\currentparskip}{\parskip}
    \setlength{\parskip}{\currentparskip}

The body of the letter

\vspace{0.5cm}

\enclosure [\upshape Attached]{\upshape resume, writing sample.}      

\makeletterclosing

\clearpage

\end{document}

答案1

您可以简单地添加

\thispagestyle{empty} % <===============================================

您需要它来抑制页脚。

请参阅以下 MWE

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{casual}
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.95, top=1cm, bottom=2cm, left=2cm, right=1cm]{geometry}

\usepackage{blindtext}

\renewcommand*{\addressfont}{\small\mdseries}
\name{John}{Templeton}
\title{Resumé title}                             
\address{36 Mauniour, Valybir, Alcansa}{}{United States}
\phone[mobile]{+19193433283}                  
\email{[email protected]}    
\extrainfo{\emailsymbol\emaillink{r\[email protected]}}

\newlength{\currentparskip}

\begin{document}

\recipient{Department of Philology \\
Faculty of Humanities \\
University California\\
Elgsdelaan 1105 \\
1081 HV California\\
[email protected]\\
Job number:5675}{}

\date{\today}


\opening{To whom it may concern,}
\closing{Yours sincerely,\vspace{-0.5cm}}
\makelettertitle
\setlength{\currentparskip}{\parskip}
    \setlength{\parskip}{\currentparskip}

The body of the letter

\thispagestyle{empty} % <===============================================

\vspace{0.5cm}

\blindtext 

\vspace{7.5cm}

\blindtext 

\vspace{5.0cm}

\blindtext

\enclosure [\upshape Attached]{\upshape resume, writing sample.}      

\makeletterclosing

\clearpage

\end{document}

以及生成的 pdf

在此处输入图片描述

相关内容