
我正在嘗試使用 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}