From c283c578db25effd1e52706dafe822c78aaa7607 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Wed, 5 Jan 2022 10:32:35 +0100 Subject: Modified the template in order generate a letter to --- model_6/example.rst | 14 +++----------- model_6/lettre.rst | 34 ++++++++++++++++++++++++++++++++++ model_6/resources/00_preamble.tex | 2 +- model_6/resources/10_container.tex | 24 +++++++++++++++++++----- model_6/resources/10_title_style.tex | 1 - 5 files changed, 57 insertions(+), 18 deletions(-) create mode 100755 model_6/lettre.rst (limited to 'model_6') diff --git a/model_6/example.rst b/model_6/example.rst index 5db07a6..42c055b 100755 --- a/model_6/example.rst +++ b/model_6/example.rst @@ -11,16 +11,6 @@ .. default-role:: latex -.. raw:: latex - - - %\setstretch{1.4} - - % Espacement entre chaque note de marge - %\setlength{\notesep}{0cm} - - \renewcommand{\labelitemi}{} - .. role:: smallcaps .. role:: smallemph @@ -37,6 +27,9 @@ Nom et Prénom Petite légende -------------- +:latex:`\renewcommand{\labelitemi}{}` + + .. container:: header * 17 allée des cerisiers @@ -46,7 +39,6 @@ Petite légende * 01/02/1980 * Permis B - Expériences =========== diff --git a/model_6/lettre.rst b/model_6/lettre.rst new file mode 100755 index 0000000..57ad1f1 --- /dev/null +++ b/model_6/lettre.rst @@ -0,0 +1,34 @@ +.. -*- mode: rst -*- +.. -*- coding: utf-8 -*- + + +.. role:: latex(raw) + :format: latex + +.. default-role:: latex + +:latex:`\renewcommand{\labelitemi}{}` + +.. |phoneicon| replace:: `\renewcommand{\labelitemi}{\faPhone}` +.. |mailicon| replace:: `\renewcommand{\labelitemi}{\faEnvelope}` +.. |noicon| replace:: `\renewcommand{\labelitemi}{}` + +.. container:: header + + * 17 allée des cerisiers + * 75001 Paris |phoneicon| + * 01 23 45 67 89 |mailicon| + * email@example |noicon| + +* Company Recruitment team +* *Company, Inc.* +* *123 somestreet* +* *some city* + +.. raw:: latex + + \setstretch{1.5} + \vspace{2cm} + +:latex:`\lipsum[1-3]` + diff --git a/model_6/resources/00_preamble.tex b/model_6/resources/00_preamble.tex index e969bba..bd36515 100755 --- a/model_6/resources/00_preamble.tex +++ b/model_6/resources/00_preamble.tex @@ -1,6 +1,6 @@ \usepackage{calc} -\usepackage[a4paper, top=0.5cm, bottom=0.5cm, outer=2.0cm, inner=2.0cm]{geometry} +\usepackage[a4paper, top=2cm, bottom=0.5cm, outer=2.0cm, inner=2.0cm]{geometry} \pagestyle{empty} \pagenumbering{gobble} diff --git a/model_6/resources/10_container.tex b/model_6/resources/10_container.tex index a880a85..9b4173b 100644 --- a/model_6/resources/10_container.tex +++ b/model_6/resources/10_container.tex @@ -1,8 +1,22 @@ +\usepackage[absolute]{textpos} \newenvironment{DUCLASSheader} { % renew the itemize command in order to apply a flushright to each elements \let\olditemize\itemize% - \renewcommand\itemize{\olditemize\raggedleft\setlength\itemsep{0.0em}\small}% - % Create a minipage on the right - \begin{flushright}\begin{minipage}[t][0cm][b]{\linewidth}% - \raggedleft\em\color{gray}} - { \end{minipage}\end{flushright}} + \renewcommand\itemize{ + \olditemize% + \raggedleft% + \setlength\itemsep{0.0em}% + \small}% + \raggedleft% + \em% + % A textblock is created for placing the header in the topright corner + \begin{textblock*}{\linewidth}[0,0](2cm,1.5cm)% + + % Create a new group for the color gray + \begingroup% + \color{gray}% + } + { + \endgroup% + \end{textblock*}% + } diff --git a/model_6/resources/10_title_style.tex b/model_6/resources/10_title_style.tex index 05036f4..a194354 100755 --- a/model_6/resources/10_title_style.tex +++ b/model_6/resources/10_title_style.tex @@ -13,7 +13,6 @@ \makeatletter \def\@maketitle{% - \vspace*{1cm} \fontsize{1.2cm}{2cm} \TitleFont\selectfont \@title } -- cgit v1.2.3