我正在改编我在网上找到的求职信模板。它通过将收件人地址布局成可以放入信封的形式来非常直白地理解“信件”。但是,我将通过电子邮件发送此信息,因此收件人地址是多余的。我想删除它,并将内容上移。下面是我正在使用的代码的精简版,附件是一张显示我想要做什么的图片。我是一个绝对的 LaTeX 初学者,我希望我想要做的事情是合理的。
\documentclass[a4paper,backaddress=off,foldmarks=false]{scrlttr2}
\usepackage{fontspec} % Allows font customization
\usepackage{marvosym} % Allows the use of symbol
\usepackage{csquotes}
\setlength\parindent{0pt}
\defaultfontfeatures{Mapping=tex-text}
\renewcommand{\normalsize}{\fontsize{12.5}{17}\selectfont}
\setkomavar{fromname}{Name}
\setkomavar{fromaddress}{Address\\City}
\setkomavar{fromphone}{012 345 678}
\setkomavar{fromemail}{[email protected]}
\setkomavar{place}{}
\setkomavar{signature}{Name}
\setkomavar{firsthead} {
\centering
{\addfontfeature{LetterSpace=20.0}\fontsize{24}{24}\selectfont\scshape \usekomavar{fromname}}\\[1mm]
\fontsize{12}{12}\selectfont\scshape Job title }
\setkomavar{firstfoot}{
\centering
\addfontfeature{LetterSpace=50.0}\scshape
{
\renewcommand{\\}{\ {\large\textperiodcentered}\ }
\usekomavar{fromaddress}
}\\
{\Large\Letter} \usekomavar{fromemail} \ {\Large\Telefon} \usekomavar{fromphone}}
\begin{document}
\begin{letter}{Company\\Address\\City}
\setkomavar{subject}{Position Title}
\opening{Dear Recruiter,}
Content goes here.
Sincerely yours, \\ \\ \\
\usekomavar{signature}
\end{letter}
\end{document}
答案1
\documentclass[a4paper,backaddress=off,foldmarks=false,parskip=half,addrfield=false]{scrlttr2}
\usepackage{fontspec} % Allows font customization
\usepackage{marvosym} % Allows the use of symbol
\usepackage{csquotes}
\defaultfontfeatures{Mapping=tex-text}
\renewcommand{\normalsize}{\fontsize{12.5}{17}\selectfont}
\let\raggedsignature\raggedright
\makeatletter
\@setplength{sigbeforevskip}{\parskip}
\@setplength{refvpos}{\useplength{toaddrvpos}}
\makeatother
\setkomavar{fromname}{Name}
\setkomavar{fromaddress}{Address\\City}
\setkomavar{fromphone}{012 345 678}
\setkomavar{fromemail}{[email protected]}
\setkomavar{place}{}
\setkomavar{signature}{Name}
\setkomavar{firsthead} {
\centering
{\addfontfeature{LetterSpace=20.0}\fontsize{24}{24}\selectfont\scshape \usekomavar{fromname}}\\[1mm]
\fontsize{12}{12}\selectfont\scshape Job title }
\setkomavar{firstfoot}{
\centering
\addfontfeature{LetterSpace=50.0}\scshape
{
\renewcommand{\\}{\ {\large\textperiodcentered}\ }
\usekomavar{fromaddress}
}\\
{\Large\Letter} \usekomavar{fromemail} \ {\Large\Telefon} \usekomavar{fromphone}}
\begin{document}
\begin{letter}{Company\\Address\\City}
\setkomavar{subject}{Position Title}
\opening{Dear Recruiter,}
Content goes here.
\closing{Sincerely yours,}
\end{letter}
\end{document}
请注意,我不仅添加了两个伪长度的变化(您可以在 scrguien.pdf 的图 22.1 和表 22.1 中找到这些变化)当前 KOMA-Script 版本),还增加了选项addrfield=false
。