The horizontal position of the the address field is determined by the pseudolength toaddrhpos
. A value of toaddrhpos
greater than 0 means the distance from the left border, a value lower than 0 means the distance from the right border.
So you could use something like
\makeatletter
\@setplength{toaddrhpos}{-1cm}
\makeatother
or
\makeatletter
\@setplength[-]{toaddrhpos}{\useplength{toaddrhpos}}
\makeatother
Code:
\documentclass{scrlttr2}
%%% only to show the fields, do not use in your real document
\LoadLetterOption{visualize}
\showfields{address,head}
%%%
\makeatletter
\@setplength[-]{toaddrhpos}{\useplength{toaddrhpos}}
\makeatother
\usepackage{blindtext}% for dummy text
\begin{document}
\begin{letter}{Max Mustermann\\Musterstr.12\\12345 Musterhausen}
\opening{Hello}
\blindtext
\end{letter}
\end{document}
Other pseudolengths related to the address field are toaddrvpos
, toaddrwidth
and toaddrheight
.
And you can use \addtokomafont{addressee}{\raggedleft}
to right align the address in the address field:
Code:
\documentclass[backaddress=false,fromalign=right]{scrlttr2}
%%% only to show the fields, do not use in your real document
\LoadLetterOption{visualize}
\showfields{address,head}
%%%
\makeatletter
\@setplength[-]{toaddrhpos}{\useplength{toaddrhpos}}
\makeatother
\addtokomafont{addressee}{\raggedleft}
\setkomavar{fromname}{Kombi Karle}
\setkomavar{fromaddress}{Kaiserstr.\\Karlsruhe}
\usepackage{blindtext}% for dummy text
\begin{document}
\begin{letter}{Max Mustermann\\Musterstr.12\\12345 Musterhausen}
\opening{Hello}
\blindtext
\end{letter}
\end{document}
But there are also some Letter Class Option files included in the KOMA-Script Distribution having the recipient's address on the right.
Use \LoadLetterOption{SN}
(Swiss letters with address field on the right side) in the preambel to get:
Or \LoadLetterOption{NF}
(French letters):
In both versions of the KOMA-Script manual (the printed version [includes more informations] and the pdf version [texdoc scrguien
or german texdoc 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 ...
Best Answer
The signature is saved in the variable
signature
. Default is\usekomavar{fromname}
.