I'm "getting angry" with the documentation of scrlttr2 class.
I would see all the option I can include in that class. I have the manual of koma-script, but I can't find that doc.
Can someone help me?
koma-scriptscrlttr2
I'm "getting angry" with the documentation of scrlttr2 class.
I would see all the option I can include in that class. I have the manual of koma-script, but I can't find that doc.
Can someone help me?
You vertical skip between the paragraphs can be done by the option parskip
. So load the class with:
\documentclass[a4paper,parskip=full,]{scrlttr2}
The adjustment of \closing
depends on the definition of \raggedsignature
which is set to \centering
so you can change it as follows:
\renewcommand*{\raggedsignature}{\raggedright}
Based on this modification the following example results:
\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}
1. Older versions of KOMA-Script
You have to redefine the definition of \section
, subsection
etc. You use a negativ value to set runin heading, similar to the standard article-class. I have copied the definition of headings from scrartcl
sometimes in the past. Be aware that this solution may break if scrartcl
is changed.
If you take a look at page 351 in the English manual for KOMA-Script, you will see that there are several commands for changing the space above and below chapter
and part
. Hopefully, we will see a similar command for \section
and her sisters.
Here, I have redefined both section and subsection to be runin-header.
\documentclass{scrartcl}
\makeatletter
\renewcommand\section{\@startsection{section}{1}{\z@}%
{-1.5ex}%
{-1em}%{2.3ex \@plus.2ex}% < - negative value here negative value here,
% the values behind % are the original.
% no use for rubber values, use a fix value to set the
% distance to between heading and the text
{\ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\relax
\setlength{\parfillskip}{\z@ plus 1fil}\fi
\raggedsection\sectfont\nobreak\size@section}%
}
\renewcommand\subsection{\@startsection{subsection}{1}{\z@}%
{-1.5ex \@plus -1ex \@minus -.2ex}%
{-1em}%{2.3ex \@plus.2ex}% <- negative value here, the values behind % are the original
{\ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\relax
\setlength{\parfillskip}{\z@ plus 1fil}\fi
\raggedsection\normalfont\sectfont\nobreak\size@section}%
}
\makeatother
\begin{document}
\section{First section}
This text follows on the same line as "First section"
\end{document}
You use the ordinary \addtokomafont
etc. to change the font, colour etc. And of course, you have to fiddle around with the figures to get the space above you prefer.
2. Newer versions of KOMA-Script
I refer to Johannes_B’s answer below.
For the sake of completeness, I will bring your attention to page 363 ff. in the English KOMA-Script manual as of 2015-10-03. The author has (from version 3.16?) added the possibility to interface to \section{}
and her sisters by the four commands:
\DeclareSectionCommand[attributes]{name}
\DeclareNewSectionCommand[attributes]{name}
\RedeclareSectionCommand[attributes]{name}
\ProvideSectionCommand[attributes]{name}
You may use this commands to define totally new sectioning commands, but also to redefine the existing ones, including the possibility to easily define the \section{}
-command to be a run-in heading.
\RedeclareSectionCommand[%
afterskip=-10pt plus -1sp minus 1sp% using rubber is optional
]{section}
Just use a negative value as the first afterskip
value ( I have used -10pt here).
Best Answer
In both versions of the KOMA-Script manual (the printed version [includes more informations] and the pdf version [
texdoc scrguien
or germantexdoc scrguide
]) you will find in the index the Class Options and the Package options. The page numbers differs if you use the german or english, the printed or pdf version.The KOMA-Script manual describes all options you can use, but you have to look into the index and search that one you need.
Or you can add what you need to your question.
In the German version you will find on page 453 (Chapter 21, class and package options):
All of this options and there values can be used for class
scr...
or KOMA-Script packages. The meaning and result is described on the page(s) you can click on in the index. The red numbers are links to the page ...