I want to place the date above the receiver address with KOMA-Script class scrlttr2. I'm using the NF.lco or \LoadLetterOption{NF}
In French letters,
- the first line contains the date, flushed to the right
- then the sender address on the left
- then the receiver address on the right
- then the subject
- ...
I can use the excellent lettre class from 'Observatoire de Genève' to obtain the correct french layout (see below), but I'm constrained by my org-mode export tool using scrlttr2 as the LaTeX class.
How do I do that ?
In fact I'de love to have an org-mode tool to export directly to the lettre class. An alternative would be to reproduce the 'lettre' layout in a .lco file. but that not my question here.
I probably have not read enough linearly the official documentation but random regex search in it for 'date' 'date.*position' 'position' did not give me satisfying results.
Below are illustration of what I have and then what I want
What I have
for the following code
\documentclass[a4paper,11pt,french]{scrlttr2}
\usepackage{palatino}
\usepackage[T1]{fontenc}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage{eurosym}
\usepackage{geometry}
\usepackage{graphicx}
\geometry{verbose,a4paper,lmargin=3cm,rmargin=3cm}
\setlength\parskip{\medskipamount} \setlength\parindent{0pt}
\usepackage{setspace} \usepackage{lipsum} \setstretch{1.15}
\LoadLetterOption{NF}%
\KOMAoptions{%
fromalign=left% alignment of the address
,fromphone=true% print sender phone number
,fromemail=true% print sender e-mail address
,fromlogo=true% print a logo (position depends on fromalign)
}
\setkomavar{date}{le \today}
\setkomafont{backaddress}{\rmfamily}
\setkomafont{fromaddress}{\small}
\setkomafont{fromname}{\scshape}
\setkomavar{backaddressseparator}{ $\cdot$ }
\setkomavar{backaddress}{}
\setkomavar{emailseparator}{~:~} \setkomavar{enclseparator}{ > } \setkomavar{fromaddress}{7-13 rue dejourney\\ 49000 ANGERS} \setkomavar{fromemail}{gigiair@gigiair.fr} \setkomavar{fromname}{Gigiair} \setkomavar{fromphone}{0123 456 789} \setkomavar{phoneseparator}{~:~} \setkomavar{place}{Angers} \setkomavar{signature}{\qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \quad \quad \includegraphics[width=2.5cm]{signature}} \setkomavar{subjectseparator}{ >>> } \setkomavar{subject}{Modèle}
\usepackage{babel}
\begin{document}
\begin{letter}{\`A Madame la centurion\\
Camps de Babaurum\\
Bretagne conquise} \def\concname{Objet :~}
\opening{Madame la centurion,} C'est une invitation pour manger du sanglier roti. \closing{à la tienne !}
\cc{Panoramix et Obleix} \end{letter} \end{document}
and what I want
from the following code
\documentclass[11pt, francais]{lettre} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[francais]{babel} \usepackage{mathcomp} \usepackage{url}
\makeatletter \newcommand*{\NoRule}{\renewcommand*{\rule@length}{0}} \makeatother
\begin{document}
\begin{letter} {\`A Madame la centurion
\\Camps de Babaurum
\\Bretagne conquise} \def\concname{Objet :~} \conc{Fête au village}
\NoRule
\name{Abraracourcix chef} \address{Village des irréductibles Gaulois\\ Armorique} \lieu{Bretagne Libre}
\telephone{0123 456 789} \nofax \email{goscini@uderzo.be}
\opening{Madame la centurion,} C'est une invitation pour manger du sanglier roti. \closing{à la tienne !}
\cc{Panoramix et Obleix}
\end{letter} \end{document}
Adding a page from scrguien.pdf (KOMA-Script manual) that could help other readers coming here





0pt. Then the class calculates the length of the positions of the letter elements when "opening". The rules for the calculations are described in the documentation. – esdd Apr 11 '19 at 11:50