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
|
|
|
# --
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
\documentclass[12pt]{article}
|
|
|
|
\usepackage[utf8]{inputenc}
|
2012-09-10 17:51:31 +02:00
|
|
|
\usepackage{marvosym}
|
|
|
|
\usepackage{eurosym}
|
|
|
|
\DeclareUnicodeCharacter{20AC}{\euro{}}
|
|
|
|
% \usepackage[T1]{fontenc}
|
2012-06-15 16:54:02 +02:00
|
|
|
% \usepackage{lmodern}
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
|
|
%%==============================================================================
|
|
|
|
%% 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-06-15 16:54:02 +02:00
|
|
|
\def\gender{${2:male}}
|
|
|
|
|
|
|
|
%% Recipient
|
|
|
|
\def\recipientfirstname{${3:Firstname}}
|
|
|
|
\def\recipientfamilyname{${4:Familyname}}
|
|
|
|
\def\recipientinstitute{${5:Institute}}
|
|
|
|
\def\recipientstreet{${6:Street}}
|
|
|
|
\def\recipientcity{${7:City}}
|
|
|
|
\def\recipientpostcode{${8:Postcode}}
|
|
|
|
|
|
|
|
%%==============================================================================
|
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
|
|
|
|
%%==============================================================================
|
|
|
|
|
|
|
|
\usepackage{eukdate}
|
2012-09-10 17:51:31 +02:00
|
|
|
% \usepackage{lipsum}
|
2012-06-15 16:54:02 +02:00
|
|
|
\usepackage{ifthen}
|
|
|
|
\usepackage[svgname]{xcolor}
|
|
|
|
|
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-09-10 17:51:31 +02:00
|
|
|
\def\en #1{}
|
|
|
|
\def\fr #1{}
|
|
|
|
|
|
|
|
%% If strings are equal. Syntax:
|
2012-06-15 16:54:02 +02:00
|
|
|
\ifthenelse{\equal{\locale}{en}}{
|
2012-09-10 17:51:31 +02:00
|
|
|
\def\en #1{#1}}{}
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
\ifthenelse{\equal{\locale}{fr}}{
|
2012-09-10 17:51:31 +02:00
|
|
|
\def\fr #1{#1}}{}
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
%% Gender commands.
|
2012-09-10 17:51:31 +02:00
|
|
|
\def\male #1{}
|
|
|
|
\def\female #1{}
|
|
|
|
\def\org #1{}
|
|
|
|
|
2012-06-15 16:54:02 +02:00
|
|
|
\ifthenelse{\equal{\gender}{male}}{
|
2012-09-10 17:51:31 +02:00
|
|
|
\def\male #1{#1}}{}
|
|
|
|
|
2012-06-15 16:54:02 +02:00
|
|
|
\ifthenelse{\equal{\gender}{female}}{
|
2012-09-10 17:51:31 +02:00
|
|
|
\def\female #1{#1}}{}
|
|
|
|
|
|
|
|
\ifthenelse{\equal{\gender}{org}}{
|
|
|
|
\def\org #1{#1}}{}
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
\def\civility{%
|
2012-09-10 17:51:31 +02:00
|
|
|
\en{\male{M.}\female{Mrs.}}%
|
|
|
|
\fr{\male{Monsieur}\female{Madame}}%
|
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{}}
|
|
|
|
\pinex{\fullname}{{\bfseries \fullname}
|
|
|
|
\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}
|
|
|
|
\pinex{\fullname}{{\bfseries \recipientfullname}
|
|
|
|
\\\\[0.5\baselineskip]
|
|
|
|
}
|
|
|
|
\pinex{\recipientinstitute}{\recipientinstitute{}
|
|
|
|
\\\\[0.5\baselineskip]
|
|
|
|
}
|
|
|
|
\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
|
|
|
|
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-09-10 17:51:31 +02:00
|
|
|
%% \noindent{\em
|
|
|
|
%% \fr{Ci-joint~: Curriculum Vitæ}
|
|
|
|
%% \en{Attachment: Curriculum Vit\ae}
|
|
|
|
%% }
|
2012-06-15 16:54:02 +02:00
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
\end{document}
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|