信件无抬头

信件无抬头

我有 MWE,但我不想在文档右侧显示规则和姓名地址等。我只想在左侧显示规则。但我没有实现。这可能吗?

  • 意思是我想要这个:在此处输入图片描述
  • 但不是这个:在此处输入图片描述
\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
  fromemail=true,         % <===========================================
  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}{Max Musterfrau}
\setkomavar{fromaddress}{Musterstrasse 9\\12345 Ort}
\setkomavar{fromphone}{+49\,12\,34\,56\,789}
\setkomavar{fromemail}{[email protected]} 
\setkomavar{signature}{(Max Musterfrau)}
\setkomavar{place}{Ort}
\setkomavar{date}{\today}
%\usepackage{marvosym} % <================================================
\setkomavar{phoneseparator}{~} % <========================================
\setkomavar{emailseparator}{~} % <========================================

\begin{document}
\renewcaptionname{english}\emailname{~} % <=========================
\renewcaptionname{english}\phonename{~} % <=======================
\begin{letter}{To: Claire Laterfield}
\setkomavar{subject}{Anschreiben}
\opening{Dear Claire,}
I am writing this letter because I have nothing better to do.

\closing{Sincerely,}
\end{letter}
\end{document}

答案1

如果我理解正确的话,你肯定不希望信头出现在第一页。因此,选项

  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
  fromemail=true,         % <===========================================

没有任何意义,但您想要选项firsthead=false\setkomavar{firsthead}{}

我建议使用第一个:

\documentclass[
  fontsize=11pt,
  paper=a4,
  parskip=half,
  enlargefirstpage=on,    % More space on first page
  firsthead=false,        % Don't use a letter head at the first page.
  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}{Max Musterfrau}
\setkomavar{fromaddress}{Musterstrasse 9\\12345 Ort}
\setkomavar{fromphone}{+49\,12\,34\,56\,789}
\setkomavar{fromemail}{[email protected]} 
\setkomavar{signature}{(Max Musterfrau)}
\setkomavar{place}{Ort}
\setkomavar{date}{\today}
%\usepackage{marvosym} % <================================================
\setkomavar{phoneseparator}{~} % <========================================
\setkomavar{emailseparator}{~} % <========================================
%\setkomavar{firsthead}{}% YOU CAN ALSO USE THIS INSTEAD OF firsthead=false.
\begin{document}
\renewcaptionname{english}\emailname{~} % <=========================
\renewcaptionname{english}\phonename{~} % <=======================
\begin{letter}{To: Claire Laterfield}
\setkomavar{subject}{Anschreiben}
\opening{Dear Claire,}
I am writing this letter because I have nothing better to do.

\closing{Sincerely,}
\end{letter}
\end{document}

在此处输入图片描述

变量使用情况的示意图如图 4.10 所示。

顺便说一句:您的一些选项是默认的,尽管如此,我并没有删除它们。

相关内容