2012-06-15 16:54:02 +02:00
|
|
|
# -*- mode: snippet -*-
|
|
|
|
# contributor : Xavier Danaux <xdanaux@gmail.com>
|
2012-09-10 17:51:31 +02:00
|
|
|
# contributor : Pierre Neidhardt <ambrevar at gmail dot com> 2012-09-10
|
2012-09-07 19:54:29 +02:00
|
|
|
# key: letter
|
2012-06-15 16:54:02 +02:00
|
|
|
# group: skeleton
|
2012-09-10 17:51:31 +02:00
|
|
|
# name: Modern Letter class
|
2012-06-15 16:54:02 +02:00
|
|
|
# --
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
2012-12-29 14:44:51 +01:00
|
|
|
\documentclass[12pt,a4paper]{article}
|
2012-06-15 16:54:02 +02:00
|
|
|
\usepackage[utf8]{inputenc}
|
2013-01-06 11:38:21 +01:00
|
|
|
\usepackage[T1]{fontenc}
|
2013-01-08 23:57:55 +01:00
|
|
|
\usepackage{amsmath,amssymb,amsfonts}
|
|
|
|
\usepackage{geometry}
|
2013-01-06 11:38:21 +01:00
|
|
|
\usepackage{lmodern}
|
|
|
|
\usepackage{marvosym}
|
2013-01-08 23:57:55 +01:00
|
|
|
\usepackage{textcomp}
|
2012-12-29 14:44:51 +01:00
|
|
|
\DeclareUnicodeCharacter{00AB}{\og{}}
|
2013-01-08 23:57:55 +01:00
|
|
|
\DeclareUnicodeCharacter{00B0}{\textdegree{}}
|
2012-12-29 14:44:51 +01:00
|
|
|
\DeclareUnicodeCharacter{00BB}{\fg{}}
|
2013-01-08 23:57:55 +01:00
|
|
|
\DeclareUnicodeCharacter{20AC}{\EUR{}}
|
|
|
|
\DeclareUnicodeCharacter{2264}{\leqslant}
|
|
|
|
\DeclareUnicodeCharacter{2265}{\geqslant}
|
2012-06-15 16:54:02 +02:00
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
|
|
%%==============================================================================
|
|
|
|
%% Localization
|
|
|
|
%%==============================================================================
|
2012-09-10 17:51:31 +02:00
|
|
|
%% Supported locales: en, fr.
|
|
|
|
\def\locale{en}
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
%%==============================================================================
|
|
|
|
%% Personal Information
|
|
|
|
%%==============================================================================
|
|
|
|
|
|
|
|
\def\firstname{Pierre}
|
|
|
|
\def\familyname{Neidhardt}
|
2012-09-10 17:51:31 +02:00
|
|
|
\def\street{}
|
|
|
|
\def\postcode{}
|
|
|
|
\def\city{}
|
|
|
|
\def\country{}
|
|
|
|
\def\mobile{\en{(+00) }00 00 00}
|
|
|
|
\def\phone{\en{(+00) }00 00 00}
|
|
|
|
\def\mail{}
|
|
|
|
% \def\institute{} %% Not used.
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
%%==============================================================================
|
|
|
|
%% Recipient Information
|
|
|
|
%%==============================================================================
|
|
|
|
|
2012-09-10 17:51:31 +02:00
|
|
|
%% Recipient gender. Can be male, female, org.
|
2012-12-28 22:21:18 +01:00
|
|
|
\def\gender{${1:male}}
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
%% Recipient
|
2012-12-28 22:21:18 +01:00
|
|
|
\def\recipientfirstname{${2:Firstname}}
|
|
|
|
\def\recipientfamilyname{${3:Familyname}}
|
|
|
|
\def\recipientinstitute{${4:Institute}}
|
|
|
|
\def\recipientstreet{${5:Street}}
|
|
|
|
\def\recipientcity{${6:City}}
|
|
|
|
\def\recipientpostcode{${7:Postcode}}
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
%%==============================================================================
|
2012-09-10 17:51:31 +02:00
|
|
|
%% Subject
|
2012-06-15 16:54:02 +02:00
|
|
|
%%==============================================================================
|
|
|
|
|
2012-09-10 17:51:31 +02:00
|
|
|
\def\subject{${9:Subject}}
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
%%==============================================================================
|
2012-09-10 17:51:31 +02:00
|
|
|
%% PDF Metadata
|
2012-06-15 16:54:02 +02:00
|
|
|
%%==============================================================================
|
|
|
|
|
2012-09-10 17:51:31 +02:00
|
|
|
\def\FileAuthor{\firstname{} \familyname}
|
|
|
|
\def\FileTitle{Letter}
|
|
|
|
\def\FileSubject{\subject{}}
|
|
|
|
% \def\FileKeyWords{\firstname{} \familyname, letter}
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
%%==============================================================================
|
|
|
|
%% General options
|
|
|
|
%%==============================================================================
|
|
|
|
|
2012-09-10 17:51:31 +02:00
|
|
|
% \usepackage{lipsum}
|
2012-06-15 16:54:02 +02:00
|
|
|
\usepackage[svgname]{xcolor}
|
2013-01-08 23:57:55 +01:00
|
|
|
\usepackage{eukdate}
|
|
|
|
\usepackage{graphicx}
|
|
|
|
\usepackage{ifthen}
|
|
|
|
\usepackage{needspace}
|
|
|
|
\usepackage{xspace}
|
2012-09-10 17:51:31 +02:00
|
|
|
|
|
|
|
%% print if not empty
|
|
|
|
\def\pine#1{\def\test{#1}\ifx\test\empty\relax\else #1\fi}
|
|
|
|
%% print #2 if not empty.
|
|
|
|
\def\pinex#1#2{\ifx#1\empty\relax\else #2\fi}
|
|
|
|
|
2012-06-15 16:54:02 +02:00
|
|
|
%% Language
|
2012-12-29 14:44:51 +01:00
|
|
|
\def\localedef#1{
|
|
|
|
\ifthenelse{\equal{\locale}{#1}}{
|
|
|
|
\expandafter\def\csname#1\endcsname ##1{##1}
|
|
|
|
}{
|
|
|
|
\expandafter\def\csname#1\endcsname ##1{}}
|
|
|
|
}
|
2012-06-15 16:54:02 +02:00
|
|
|
|
2012-12-29 14:44:51 +01:00
|
|
|
\localedef{en}
|
|
|
|
\localedef{fr}
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
%% Gender commands.
|
2012-12-29 14:44:51 +01:00
|
|
|
\def\genderdef#1{
|
|
|
|
\ifthenelse{\equal{\gender}{#1}}{
|
|
|
|
\expandafter\def\csname#1\endcsname ##1{##1}
|
|
|
|
}{
|
|
|
|
\expandafter\def\csname#1\endcsname ##1{}}
|
|
|
|
}
|
2012-09-10 17:51:31 +02:00
|
|
|
|
2012-12-29 14:44:51 +01:00
|
|
|
\genderdef{male}
|
|
|
|
\genderdef{female}
|
|
|
|
\genderdef{org}
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
\def\civility{%
|
2012-09-10 17:51:31 +02:00
|
|
|
\en{\male{M.}\female{Mrs.}}%
|
2012-12-09 13:36:43 +01:00
|
|
|
\fr{\male{Monsieur}\female{Madame}\org{Madame, Monsieur}}%
|
2012-06-15 16:54:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
%% Greetings toggle.
|
2012-09-10 17:51:31 +02:00
|
|
|
\def\greetings #1{}
|
|
|
|
\ifthenelse{
|
|
|
|
\equal{\gender}{org}
|
|
|
|
}{}{\def\greetings #1{#1}}
|
|
|
|
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
%% Compilation options
|
|
|
|
\usepackage{ifpdf}
|
|
|
|
\ifpdf
|
2012-09-10 17:51:31 +02:00
|
|
|
\usepackage[pdftex]{graphicx}
|
2012-06-15 16:54:02 +02:00
|
|
|
\else
|
2012-09-10 17:51:31 +02:00
|
|
|
\usepackage[dvips]{graphicx}
|
2012-06-15 16:54:02 +02:00
|
|
|
\fi
|
|
|
|
|
|
|
|
%% Babel
|
|
|
|
\fr{\usepackage[frenchb]{babel}}
|
|
|
|
|
|
|
|
|
|
|
|
%% Day-of-week translation
|
|
|
|
\makeatletter
|
|
|
|
\fr{
|
2012-09-10 17:51:31 +02:00
|
|
|
\renewcommand\weekday{%
|
|
|
|
\ifcase\theeuk@date Samedi\or Dimanche\or Lundi\or
|
|
|
|
Mardi\or Mercredi\or Jeudi\or Vendredi\fi}
|
|
|
|
\newcommand\weekdaylower{%
|
|
|
|
\ifcase\theeuk@date samedi\or dimanche\or lundi\or
|
|
|
|
mardi\or mercredi\or jeudi\or vendredi\fi}
|
2012-06-15 16:54:02 +02:00
|
|
|
}
|
|
|
|
\makeatother
|
|
|
|
|
|
|
|
%% Layout
|
|
|
|
\usepackage[scale=0.8]{geometry}
|
|
|
|
% \en{\setlength{\parindent}{0pt}}
|
|
|
|
\fr{
|
|
|
|
\setlength{\parindent}{4ex}
|
|
|
|
}
|
|
|
|
\addtolength{\parskip}{6pt}
|
|
|
|
|
|
|
|
%% Width of the minipage used to display parts of text on the right.
|
|
|
|
\newlength{\mpwidth}
|
|
|
|
\addtolength{\mpwidth}{0.4\textwidth}
|
|
|
|
|
2012-09-10 17:51:31 +02:00
|
|
|
%% Remove page number
|
2012-06-15 16:54:02 +02:00
|
|
|
\pagestyle{empty}
|
|
|
|
|
|
|
|
%% Fonts
|
|
|
|
\renewcommand{\familydefault}{\sfdefault}
|
|
|
|
|
2012-09-10 17:51:31 +02:00
|
|
|
%% \let\emphtemp\emph
|
|
|
|
%% \renewcommand{\emph}[1]{{\rm\emphtemp{#1}}}
|
|
|
|
|
|
|
|
\let\latextemp\LaTeX
|
|
|
|
\renewcommand{\LaTeX}{{\rm \latextemp}}
|
|
|
|
|
|
|
|
\let\textemp\TeX
|
|
|
|
\renewcommand{\TeX}{{\rm \textemp}}
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
%% PDF Metadata
|
|
|
|
\ifpdf
|
2012-09-10 17:51:31 +02:00
|
|
|
\usepackage[]{hyperref}
|
|
|
|
\hypersetup{
|
|
|
|
pdfauthor = \FileAuthor,
|
|
|
|
pdftitle = \FileTitle,
|
|
|
|
pdfsubject = \FileSubject,
|
|
|
|
%% pdfkeywords = \FileKeyWords,
|
|
|
|
pdfcreator = \LaTeX,
|
|
|
|
pdfproducer = \LaTeX,
|
|
|
|
pdftex,
|
|
|
|
pdfborder=0,
|
|
|
|
breaklinks,
|
|
|
|
baseurl=http://,
|
|
|
|
pdfpagemode=None,
|
|
|
|
pdfstartview=XYZ,
|
|
|
|
pdfstartpage=1,
|
|
|
|
colorlinks=true,
|
|
|
|
urlcolor=black
|
|
|
|
}
|
2012-06-15 16:54:02 +02:00
|
|
|
\else
|
2012-09-10 17:51:31 +02:00
|
|
|
\usepackage[dvips]{hyperref}
|
2012-06-15 16:54:02 +02:00
|
|
|
\fi
|
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
\begin{document}
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
|
|
%%==============================================================================
|
|
|
|
%% Personal particulars
|
|
|
|
%%==============================================================================
|
|
|
|
|
|
|
|
\en{\hfill}
|
|
|
|
\begin{minipage}{\mpwidth}
|
2012-09-10 17:51:31 +02:00
|
|
|
\edef\fullname{\firstname{} \familyname{}}
|
2013-01-09 00:56:00 +01:00
|
|
|
\pinex{\fullname}{\textbf{\fullname}
|
2012-09-10 17:51:31 +02:00
|
|
|
\vspace{0.5em}\\\\
|
|
|
|
}
|
|
|
|
\small\itshape%
|
|
|
|
\pinex{\street}{\street \\\\}
|
|
|
|
\pinex{\city}{\postcode{} \city\pinex{\country}{ -- \country{}}
|
|
|
|
\vspace{0.5em}\\\\
|
|
|
|
}
|
|
|
|
\pinex{\mobile}{\Mobilefone~\mobile \\\\}
|
|
|
|
\pinex{\phone}{\Telefon~\phone \\\\}
|
|
|
|
\pinex{\mail}{\Letter~\href{mailto:\mail}{\mail}}
|
2012-06-15 16:54:02 +02:00
|
|
|
\end{minipage}
|
|
|
|
\vspace{\baselineskip}
|
|
|
|
|
|
|
|
%%==============================================================================
|
|
|
|
%% Recipient particulars
|
|
|
|
%%==============================================================================
|
|
|
|
|
2012-09-10 17:51:31 +02:00
|
|
|
\en{\noindent}%
|
|
|
|
\fr{\hfill}%
|
2012-06-15 16:54:02 +02:00
|
|
|
\begin{minipage}{\mpwidth}
|
2012-09-10 17:51:31 +02:00
|
|
|
\edef\recipientfullname{\recipientfirstname{} \recipientfamilyname}
|
2012-12-09 13:36:43 +01:00
|
|
|
\pinex{\recipientfullname}{\textbf{\recipientfullname}\\\\[0.5\baselineskip]}
|
|
|
|
\pinex{\recipientinstitute}{\recipientinstitute{}\\\\[0.5\baselineskip]}
|
2012-09-10 17:51:31 +02:00
|
|
|
\pinex{\recipientcity}{
|
|
|
|
{\small\itshape
|
|
|
|
\recipientstreet{} \\\\
|
|
|
|
\pine{\recipientpostcode} \recipientcity{} \\\\
|
|
|
|
}
|
|
|
|
}
|
2012-06-15 16:54:02 +02:00
|
|
|
\end{minipage}
|
|
|
|
|
|
|
|
%%==============================================================================
|
|
|
|
%% Date
|
|
|
|
%%==============================================================================
|
|
|
|
|
2012-09-10 17:51:31 +02:00
|
|
|
\vfill
|
2012-06-15 16:54:02 +02:00
|
|
|
\vspace{1em}
|
|
|
|
|
|
|
|
\hfill
|
|
|
|
\begin{minipage}{\mpwidth}
|
2012-09-10 17:51:31 +02:00
|
|
|
\en{\today}
|
|
|
|
\fr{\city, le \weekdaylower\ \today}
|
|
|
|
\end{minipage}\\\\
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
%%==============================================================================
|
|
|
|
%% Object
|
|
|
|
%%==============================================================================
|
2012-09-10 17:51:31 +02:00
|
|
|
\pinex{\subject}{
|
|
|
|
\noindent
|
|
|
|
\textbf{\en{Object}\fr{Objet}~:}
|
|
|
|
\subject{}.
|
|
|
|
\vspace{1\baselineskip}
|
|
|
|
}
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
|
|
|
|
%%==============================================================================
|
|
|
|
%% Content
|
|
|
|
%%==============================================================================
|
|
|
|
\greetings{
|
2012-09-10 17:51:31 +02:00
|
|
|
\en{Dear}\fr{\male{Cher}\female{Chère}} \civility{} \recipientfamilyname,
|
2012-06-15 16:54:02 +02:00
|
|
|
}
|
|
|
|
|
2012-09-10 17:51:31 +02:00
|
|
|
\noindent
|
2012-12-28 22:21:18 +01:00
|
|
|
$0
|
2012-09-10 17:51:31 +02:00
|
|
|
Common blah.
|
|
|
|
I thank you for your consideration; I am looking forward to hearing from you soon!
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
%%==============================================================================
|
|
|
|
%% Closing
|
|
|
|
%%==============================================================================
|
|
|
|
|
|
|
|
\vfill
|
|
|
|
|
|
|
|
\en{
|
2012-09-10 17:51:31 +02:00
|
|
|
Best regards.
|
|
|
|
%% Yours sincerely,
|
2012-06-15 16:54:02 +02:00
|
|
|
}
|
|
|
|
\fr{
|
2012-09-10 17:51:31 +02:00
|
|
|
%% Cordialement,
|
|
|
|
Veuillez agréer, \civility{}, l'expression de mes sentiments les meilleurs.
|
2012-06-15 16:54:02 +02:00
|
|
|
}
|
|
|
|
|
2012-09-10 17:51:31 +02:00
|
|
|
\vspace{\baselineskip}
|
2012-06-15 16:54:02 +02:00
|
|
|
\hfill
|
|
|
|
\begin{minipage}{\mpwidth}
|
2012-09-10 17:51:31 +02:00
|
|
|
\textbf{\firstname\ \familyname}\newline
|
|
|
|
%\includegraphics[scale=0.75]{signature_blue}
|
2012-06-15 16:54:02 +02:00
|
|
|
\end{minipage}
|
|
|
|
|
|
|
|
%%==============================================================================
|
|
|
|
%% P.S. & Attachment
|
|
|
|
%%==============================================================================
|
|
|
|
|
|
|
|
\vfill
|
|
|
|
|
2012-12-09 13:36:43 +01:00
|
|
|
\noindent{
|
|
|
|
\scriptsize
|
|
|
|
\emph{\fr{Pièce(s) joint(es)~:}\en{Attachment:}}
|
|
|
|
Curriculum Vitæ
|
|
|
|
}
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
\end{document}
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|