在尝试使用 scrlttr2 包时,如果一封信的地址是发给多方,那么信的正文和收信人之间就会发生冲突/崩溃。换句话说,信的正文(包括主题)打印在四个地址中的最后两个地址之上。
我该如何解决这个问题,以便我仍然可以使用 scrlttr2 字母类来撰写我的信件?
如能得到帮助我将非常感激。
\documentclass[
fontsize=11pt, paper=a4, parskip=half, enlargefirstpage=on, % More space on first page
fromalign=right, % PLacement of name in letter head
fromphone=on, % Turn on phone number of sender
fromrule=aftername, % Rule after sender name in letter head
addrfield=on, % Address field for envelope with window
backaddress=off, % Sender address in this window
subject=beforeopening, % Placement of subject
locfield=narrow, % Additional field for sender
foldmarks=off, % Print foldmarks
]{scrlttr2}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{bookman}
\usepackage{lipsum}
\setkomafont{fromname}{\sffamily }
\setkomafont{fromaddress}{\sffamily}%% statt \small
\setkomafont{pagenumber}{\sffamily}
\setkomafont{subject}{\bfseries}
\setkomafont{backaddress}{\mdseries}
\LoadLetterOption{DIN}
\setkomavar{fromname}{LAW OFFICE OF CHEET M. LIKELY}
\setkomavar{fromaddress}{10723 Brooke Avenue, Suite 245\\Forest Hills, New York 11375}
\setkomavar{fromphone}{555.878.6202}
\setkomavar{fromemail}{[email protected]} \setkomavar{backaddressseparator} {\enspace\textperiodcentered\enspace}
\setkomavar{signature}{Bill U. Lotts, Esq.}
\setkomavar{place}{}
\setkomavar{date}{\today}
\setkomavar{enclseparator}{: }
\begin{letter}{HIGHSTUFF BRYNYARD, ESQ.
BYRNYARD LAW OFFICES, PLLC.
4 WEST GATE\\
FURMANVILLE, NY 11735 \vskip.2in JOSEPH M. DSGRIBLE, ESQ.\\
DSGRIBLE DSGRIBLE \& DSGRIBLE\\
555 STUFFIT AVE \\
HARDHEART CITY, NY 11530\\
(555) 222-2800 \vskip.2in JOSEPH F. PYZKOFF, ESQ.\\
PYZKOFF, PYZKOFF & PYZKOFF\\
500 BYLE COUNTY BLVD. \\
MOSTRUBLE, NY 11735\\
(555) 249-6600 \vskip.2in JAMES A. POOKA, JR.\\
3320 103RD STREET\\
NUTSO, NY 11361\\
(555) 418-3392}
\setkomavar{subject}{Re:}
\opening{Dear Sir or Madam:}
\lipsum[2]
\closing{Very truly yours,}
\encl{Papers}
\end{letter}
\end{document}
答案1
使用你的代码我收到警告
地址字段为 155.80432pt 至高
所以我知道我必须将地址字段的高度和参考线上方的空间都扩大 156pt:
\makeatletter
\@addtoplength{toaddrheight}{156pt}% enlarge the height of the address field
\@addtoplength{refvpos}{156pt}% shift the refline down
\makeatother
所谓的伪长度toaddrheight
在 KOMA-Script 文档中进行了解释。
代码:
\documentclass[
fontsize=11pt, paper=a4, parskip=half, enlargefirstpage=on, % More space on first page
fromalign=right, % PLacement of name in letter head
fromphone=on, % Turn on phone number of sender
fromrule=aftername, % Rule after sender name in letter head
addrfield=on, % Address field for envelope with window
backaddress=off, % Sender address in this window
subject=beforeopening, % Placement of subject
locfield=narrow, % Additional field for sender
foldmarks=off, % Print foldmarks
]{scrlttr2}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{bookman}
\usepackage{lipsum}
\setkomafont{fromname}{\sffamily }
\setkomafont{fromaddress}{\sffamily}%% statt \small
\setkomafont{pagenumber}{\sffamily}
\setkomafont{subject}{\bfseries}
\setkomafont{backaddress}{\mdseries}
%\LoadLetterOption{DIN}% already loaded by the class
\setkomavar{fromname}{LAW OFFICE OF CHEET M. LIKELY}
\setkomavar{fromaddress}{10723 Brooke Avenue, Suite 245\\Forest Hills, New York 11375}
\setkomavar{fromphone}{555.878.6202}
\setkomavar{fromemail}{[email protected]}
\setkomavar{backaddressseparator}{\enspace\textperiodcentered\enspace}
\setkomavar{signature}{Bill U. Lotts, Esq.}
\setkomavar{place}{}
\setkomavar{date}{\today}
\setkomavar{enclseparator}{: }
\makeatletter
\@addtoplength{toaddrheight}{156pt}
\@addtoplength{refvpos}{156pt}
\makeatother
\begin{document}
\begin{letter}{HIGHSTUFF BRYNYARD, ESQ.
BYRNYARD LAW OFFICES, PLLC.
4 WEST GATE\\
FURMANVILLE, NY 11735\\[.2in]
JOSEPH M. DSGRIBLE, ESQ.\\
DSGRIBLE DSGRIBLE \& DSGRIBLE\\
555 STUFFIT AVE \\
HARDHEART CITY, NY 11530\\
(555) 222-2800\\[.2in]
JOSEPH F. PYZKOFF, ESQ.\\
PYZKOFF, PYZKOFF \& PYZKOFF\\
500 BYLE COUNTY BLVD. \\
MOSTRUBLE, NY 11735\\
(555) 249-6600\\[.2in]
JAMES A. POOKA, JR.\\
3320 103RD STREET\\
NUTSO, NY 11361\\
(555) 418-3392}
\setkomavar{subject}{Re:}
\opening{Dear Sir or Madam:}
\lipsum[2]
\closing{Very truly yours,}
\encl{Papers}
\end{letter}
\end{document}
但我认为一封信应该有一个唯一的收件人toaddress
,所以应该有四封信,每封信都有一个收件人:
代码:
\documentclass[
fontsize=11pt, paper=a4, parskip=half, enlargefirstpage=on, % More space on first page
fromalign=right, % PLacement of name in letter head
fromphone=on, % Turn on phone number of sender
fromrule=aftername, % Rule after sender name in letter head
addrfield=on, % Address field for envelope with window
backaddress=off, % Sender address in this window
subject=beforeopening, % Placement of subject
locfield=narrow, % Additional field for sender
foldmarks=off, % Print foldmarks
]{scrlttr2}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{bookman}
\usepackage{lipsum}
\setkomafont{fromname}{\sffamily }
\setkomafont{fromaddress}{\sffamily}%% statt \small
\setkomafont{pagenumber}{\sffamily}
\setkomafont{subject}{\bfseries}
\setkomafont{backaddress}{\mdseries}
\setkomavar{fromname}{LAW OFFICE OF CHEET M. LIKELY}
\setkomavar{fromaddress}{10723 Brooke Avenue, Suite 245\\Forest Hills, New York 11375}
\setkomavar{fromphone}{555.878.6202}
\setkomavar{fromemail}{[email protected]}
\setkomavar{backaddressseparator}{\enspace\textperiodcentered\enspace}
\setkomavar{signature}{Bill U. Lotts, Esq.}
\setkomavar{place}{}
\setkomavar{date}{\today}
\setkomavar{enclseparator}{: }
\begin{document}
\newcommand{\myletter}[1]{%
\begin{letter}{#1}
\setkomavar{subject}{Re:}
\opening{Dear Sir or Madam:}
\lipsum[2]
\closing{Very truly yours,}
\encl{Papers}
\cc{Recipient 1\\Recipient 2\\Recipient 3\\Recipient 4}
\end{letter}
}
\myletter{HIGHSTUFF BRYNYARD, ESQ.
BYRNYARD LAW OFFICES, PLLC.
4 WEST GATE\\
FURMANVILLE, NY 11735}
\myletter{
JOSEPH M. DSGRIBLE, ESQ.\\
DSGRIBLE DSGRIBLE \& DSGRIBLE\\
555 STUFFIT AVE \\
HARDHEART CITY, NY 11530\\
(555) 222-2800}
\myletter{
JOSEPH F. PYZKOFF, ESQ.\\
PYZKOFF, PYZKOFF \& PYZKOFF\\
500 BYLE COUNTY BLVD. \\
MOSTRUBLE, NY 11735\\
(555) 249-6600}
\myletter{
JAMES A. POOKA, JR.\\
3320 103RD STREET\\
NUTSO, NY 11361\\
(555) 418-3392}
\end{document}