Lettre Koma-Script publipostage
Författare
christ0phe
Last Updated
för ett år sedan
Licens
Creative Commons CC BY 4.0
Sammanfattning
Exemple de lettre avec koma-script pour le publipostage
Exemple de lettre avec koma-script pour le publipostage
\documentclass[version=last]{scrlttr2}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage[left=3cm,right=1cm,top=2cm,bottom=2cm]{geometry}
\usepackage{hyperref} % Module hyperref
% Métadonnées du PDF
\hypersetup{colorlinks=true,
linkcolor=black, % Couleurs des liens
filecolor=black, % Couleur des liens de fichier
urlcolor=black,% Couleur des Urls
pdftitle={Schrek.fr},
pdfauthor={Christophe},% Meta auteur
pdfsubject={Lettre type},% Meta sujet
pdfkeywords={Latex,Hyperref,Lettre},% Meta mots clefs
pdfproducer = Latex}% Meta generateur du pdf
% Option KOma-script
\KOMAoptions{%
fontsize=12pt
%,headsepline=true% separate the header with a line on page >1
%,footsepline=true% separate the footer with a line on page >1
%pagenumber=botcenter% position of the page number (see docu)
%,parskip=false% Use indent instead of skip (more options cf. docu)
,fromalign=left% Alignement expediteur
,fromphone=true% print sender phone number
%,fromfax=true% print sender fax number
,fromemail=true% print sender e-mail address
%,fromurl=true% print sender URL
%,fromlogo=true% print a logo (position depends on fromalign)
%,addrfield=false% print an address field?
%,backaddress=false% print the back address?
%,subject=afteropening,titled% alternative subject layout and position
%,locfield=narrow% width of the (extra) location field
,foldmarks=vpmBT% print foldmarks?
%,numericaldate=true% date layout
,refline=narrow % layout of the refline
}
% Expediteur
\setkomavar{fromname}{Mr Duchmol}
\setkomavar{fromaddress}{12 rue des chèvres\\13200 ARLES}
\setkomavar{fromphone}{06 06 06 06}
\setkomavar{fromemail}{duduch@mail.fr}
\setkomavar{backaddress}{}
% Champ des attributs supplémentaires
%\setkomavar{yourref}{123/ABC} % votre référence
%\setkomavar{yourmail}{12/01/2023} % Date de votre email
%\setkomavar{myref}{ABC/123} % Ma reférence
%\setkomavar{customer}{123-45} % n° de client
%\setkomavar{invoice}{555855} % n° de facture
\setkomavar{place}{Nimes} % Ville
\setkomavar{date}{le \today} % Jour
%\setkomavar{date}{} % Supprime la date
% Separateur
\setkomavar{enclseparator}{ > }
% Sujet
\setkomavar{subject}{Objet: Sed ut perspiciatis unde}
% Signature
%\setkomavar{signature}{\qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \quad \quad Arles le \today}
\setkomavar{signature}{\qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \quad \quad \quad Mr Duchmol}
\LoadLetterOption{NF}
% numéro de page
\renewcommand*\pagemark{
\usekomafont{pagenumber}{\thepage~/\letterlastpage}
}
\setkomavar{firstfoot}{\centering\pagemark}
\begin{document}
\renewcommand*{\adrentry}[9]{%
\begin{letter}{#1 #2 \\#3}
\if #5h \opening{Monsieur,} \fi
\if #5f \opening{Madame,} \fi
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.
velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"
\closing{Bien cordialement}
\end{letter}
}
\input{adresses.adr}
\end{document}