![删除双重发件人标头](https://linux22.com/image/332994/%E5%88%A0%E9%99%A4%E5%8F%8C%E9%87%8D%E5%8F%91%E4%BB%B6%E4%BA%BA%E6%A0%87%E5%A4%B4.png)
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, % Adress field for envelope with window
backaddress=on, % Sender address in this window
subject=beforeopening, % Placement of subject
locfield=narrow, % Additional field for sender
foldmarks=on, % Print foldmarks
]{scrlttr2}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{blindtext}
\setkomafont{fromname}{\sffamily \LARGE}
\setkomafont{fromaddress}{\sffamily}%% statt \small
\setkomafont{pagenumber}{\sffamily}
\setkomafont{subject}{\bfseries}
\setkomafont{backaddress}{\mdseries}
\LoadLetterOption{DIN}
\setkomavar{fromname}{Mario Rossi}
\setkomavar{fromaddress}{Via Roma 2,\\Frascati}
\setkomavar{fromphone}{+39 \,00\,00\,00\,000}
\setkomavar{fromemail}{[email protected]} % NON VIENE VISUALIZZATA
\setkomavar{backaddressseparator}{\enspace\textperiodcentered\enspace}
\setkomavar{signature}{(Mario Rossi)}
\setkomavar{place}{Frascati}
\setkomavar{date}{\today}
\setkomavar{enclseparator}{: }
\begin{document}
\begin{letter}{To: Claire Laterfield}
\setkomavar{subject}{Greetings}
\opening{Dear Claire,}
I am writing this letter because I have nothing better to do.
\closing{Sincerely,}
\end{letter}
\end{document}
答案1
如果不应该backaddress
将此选项的值更改为off
:
`backaddress=off`
但这样就不需要更改字体元素backaddress
或变量了backaddressseparator
。请注意,字母类选项文件DIN
是该类默认加载的。
\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, % Adress field for envelope with window
% following line is changed:
backaddress=off, % Sender address in this window
subject=beforeopening, % Placement of subject
locfield=narrow, % Additional field for sender
foldmarks=on, % Print foldmarks
]{scrlttr2}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{blindtext}
\setkomafont{fromname}{\sffamily \LARGE}
\setkomafont{fromaddress}{\sffamily}%% statt \small
\setkomafont{pagenumber}{\sffamily}
\setkomafont{subject}{\bfseries}
%\setkomafont{backaddress}{\mdseries}
%\LoadLetterOption{DIN}
\setkomavar{fromname}{Mario Rossi}
\setkomavar{fromaddress}{Via Roma 2,\\Frascati}
\setkomavar{fromphone}{+39 \,00\,00\,00\,000}
\setkomavar{fromemail}{[email protected]} % NON VIENE VISUALIZZATA
%\setkomavar{backaddressseparator}{\enspace\textperiodcentered\enspace}
\setkomavar{signature}{(Mario Rossi)}
\setkomavar{place}{Frascati}
\setkomavar{date}{\today}
\setkomavar{enclseparator}{: }
\begin{document}
\begin{letter}{To: Claire Laterfield}
\setkomavar{subject}{Greetings}
\opening{Dear Claire,}
I am writing this letter because I have nothing better to do.
\closing{Sincerely,}
\end{letter}
\end{document}