科摩文字母类 scrrttr2 默认使用 DIN 5008 字母格式。
我很乐意使用这种格式,但它坚持缩进行\closing
,即使\setlength{\parindent}{0pt}
已设置。
我该如何配置它以便它能够一切在字母主体块左侧?据我所知,这与 DIN 5008 并不矛盾。我尝试阅读 koma-script 指南,但我找到的有关更改块位置的所有内容都引用了伪间距的“高级用户”部分。我不是高级用户。我甚至不是初学者,事实上 DIN.lco 文件已经将 sigindent 设置为 0 毫米,所以我不知道为什么它坚持要缩进这一行。
这是我的代码:
\documentclass[a4paper]{scrlttr2}
\usepackage[urw-garamond]{mathdesign}
\usepackage[T1]{fontenc}
\usepackage{fontspec}
\setmainfont{GaramondNo8}
\setlength{\parindent}{0pt}
\usepackage[english]{babel}
\nonfrenchspacing
\setkomavar{fromname}{Ole Nordmann}
\setkomavar{fromaddress}{Storebakken 15 \\ 5500 Haugesund}
\setkomavar{fromphone}{+47 5222 8183}
\begin{document}
\begin{letter}{Christine Lagarde \\ Director \\ International Monetary Fund
\\ 700 19th Street, N.W. \\ Washington, D.C. 20431 \\ United States of America}
\KOMAoptions{fromphone=true,fromfax=false}
\setkomavar{subject}{Request for a loan}
\setkomavar{customer}{4455992}
\opening{Dear Ms. Lagarde,}
Attached please find my application for a home loan. Since the financial crisis, my family and I have been living in a tent. We're hopeful that in this fifth year, you'll see fit to grant us the credit we need to start our new life.\\
In 2009, my income for the year was almost zero.\\
In 2010, my mortgage was foreclosed on, the house seized by the bank, rented to Korean drug lords, turned into a marijuana grow operation, raided by police, then razed and the leftover wood thrown into a chipper. As a result, the rental income in 2010 for the basement suite was limited and went mostly to cover court costs.\\
I trust nonetheless that my prior years as a reliable debtor will give you sufficient confidence to accept this loan risk.
\closing{Sincerely}
\encl{loan application, gift certificate for chocolate}
\end{letter}
\end{document}
看起来像这样:
或不。作为新用户,我无法发布图片。您可以自己尝试运行代码,然后您就会明白我的意思。
请注意“Sincerely”的缩进——这就是我要说的。我怎样才能使整个内容左对齐?我的下一个问题是如何调整段落间距,这样我就不必这样做了\\
,这对我来说似乎非常错误。
答案1
您可以使用选项在段落之间垂直跳过parskip
。因此使用以下命令加载类:
\documentclass[a4paper,parskip=full,]{scrlttr2}
的调整\closing
取决于\raggedsignature
设置为的定义\centering
,因此您可以按如下方式更改它:
\renewcommand*{\raggedsignature}{\raggedright}
根据此修改,得到以下示例结果:
\documentclass[a4paper,parskip=full,]{scrlttr2}
\usepackage[urw-garamond]{mathdesign}
\usepackage[T1]{fontenc}
\usepackage{fontspec}
%\setmainfont{GaramondNo8}
%\setlength{\parindent}{0pt}
\usepackage[english]{babel}
\nonfrenchspacing
\setkomavar{fromname}{Ole Nordmann}
\setkomavar{fromaddress}{Storebakken 15 \\ 5500 Haugesund}
\setkomavar{fromphone}{+47 5222 8183}
\makeatletter
\renewcommand*{\raggedsignature}{\raggedright}
\makeatother
\begin{document}
\begin{letter}{Christine Lagarde \\ Director \\ International Monetary Fund
\\ 700 19th Street, N.W. \\ Washington, D.C. 20431 \\ United States of America}
\KOMAoptions{fromphone=true,fromfax=false}
\setkomavar{subject}{Request for a loan}
\setkomavar{customer}{4455992}
\opening{Dear Ms. Lagarde,}
Attached please find my application for a home loan. Since the financial crisis, my family and I have been living in a tent. We're hopeful that in this fifth year, you'll see fit to grant us the credit we need to start our new life.
In 2009, my income for the year was almost zero.
In 2010, my mortgage was foreclosed on, the house seized by the bank, rented to Korean drug lords, turned into a marijuana grow operation, raided by police, then razed and the leftover wood thrown into a chipper. As a result, the rental income in 2010 for the basement suite was limited and went mostly to cover court costs.
I trust nonetheless that my prior years as a reliable debtor will give you sufficient confidence to accept this loan risk.
\closing{Sincerely}
\encl{loan application, gift certificate for chocolate}
\end{letter}
\end{document}