
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}