我正在尝试使用 newlfm 写信。第一页没问题,但在后续页面上,它会为页眉和页脚添加条形图,但不包括第一页上显示的地址、徽标等。我希望后续页面除了我的文本外都是空白的。
代码如下:
\documentclass[stdletter,11pt]{newlfm}
\addrfromskipbefore{10pt}
\unprbottom{1cm}
\newsavebox{\CortlandLogo}
\sbox{
\CortlandLogo}{\parbox[t]{1.75in}{\includegraphics[height=1.5cm,ext=.pdf]{CortlandLogo}}
}
\newsavebox{\PhysDept}
\sbox{
\PhysDept}{\parbox[t]{5cm}{\sf \Large Physics Department}
}
\Rheader{\usebox{\CortlandLogo}}
\Lheader{\usebox{\PhysDept}}
\newsavebox{\Footertext}
\sbox{\Footertext}{
\begin{minipage}[c]{15cm}
\begin{center}
\sf Bowers Hall, Room 342, P.O. Box 2000, Cortland, NY 13045-0900, United States\\
Phone: (607) 753-2821 Fax: (607) 753-2927
\end{center}
\end{minipage}
}
\Cfooter{\usebox{\Footertext}}
\namefrom{Dr. Andrew Carmichael}
\addrfrom{\parbox{2.5in}{Dr. Andrew Carmichael\\ Office: Bowers 133\\ Phone: 607 753-5697 }}
\begin{document}
\closeline{Yours faithfully,}
\begin{newlfm}
{\bf Re: BLAH BLAH}
\vspace{1cm}
TEXT TEXT BLAH BLAH TEXT WHEN THERE'S ENOUGH TEXT HERE IT GOES OVER TO TWO PAGES AND THERE THE TROUBLE STARTS
\end{newlfm}
\end{document}
答案1
该类othhead
从第二页开始使用页面样式;因此,您可以简单地\let
将此页面样式作为empty
页面样式;这可以使用
\makeatletter
\let\ps@othhead\ps@empty
\makeatother
使用简化版本代码的完整示例:
\documentclass[stdletter,11pt]{newlfm}
\makeatletter
\let\ps@othhead\ps@empty
\makeatother
\Rheader{Right}
\Lheader{Left}
\Cfooter{Center}
\namefrom{Dr. Andrew Carmichael}
\addrfrom{\parbox{2.5in}{Dr. Andrew Carmichael\\ Office: Bowers 133\\ Phone: 607 753-5697 }}
\begin{document}
\closeline{Yours faithfully,}
\begin{newlfm}
text
\newpage
Some other text
\end{newlfm}
\end{document}