I have got following Swiss-like letter layout, and I want to be able to move the recipient paragraph in order to match the opening of my envelope. And I want to have the place and date slipped horizontally to be aligned with the recipient's paragraph.
I have tried quite a few things, but since I am new to LaTex, I still don't understand most of its tricks. For instance, I don't understand why, in following code, things like my name and the date are defined with \setkomavar
before the \begin{document}
, but the recipient's paragraph is defined inside latter document section...
How can I reach my needs ?
Thanks in advance.
\documentclass[
SN,% lco file for swiss letters (SN 010 130))
refline=dateleft,
firstfoot=false,
enlargefirstpage,
backaddress=false,
foldmarks=false,
parskip=half-
]{scrlttr2}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[french]{babel}
\setkomavar{fromname}{John Doe}
\setkomavar{fromaddress}{My Street \\ My City \\ Suisse}
% adapter ces deux lignes :
\setkomavar{date}{Vevey, \today}
\setkomavar{subject}{Titre de la lettre}
\setkomafont{title}{\bfseries\normalsize\raggedright}
\makeatletter
\@setplength{firstheadwidth}{\textwidth}
\makeatother
\renewcommand\raggedsignature{\raggedright}
\usepackage{blindtext}% dummy text
\begin{document}
\begin{letter}{Compagny\\Contact person\\Street\\City}
\opening{Dear Mr. Forexample,}
\blindtext
\blindtext
\closing{Meilleures pensées}
%\encl{enclosures} % pièces jointes
%\cc{other recipients}
\end{letter}
\end{document}