From c88cd4938a8bfb6b5bb42e8b3450f42078649569 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Fri, 29 Sep 2017 13:16:31 +0200 Subject: [PATCH] =?UTF-8?q?Retour=20du=20style=20dans=20le=20d=C3=A9p?= =?UTF-8?q?=C3=B4t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- styles | 1 - styles/preambule.tex | 213 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 213 insertions(+), 1 deletion(-) delete mode 120000 styles create mode 100644 styles/preambule.tex diff --git a/styles b/styles deleted file mode 120000 index 9c6b034..0000000 --- a/styles +++ /dev/null @@ -1 +0,0 @@ -../convformation/styles/ \ No newline at end of file diff --git a/styles/preambule.tex b/styles/preambule.tex new file mode 100644 index 0000000..f70bad7 --- /dev/null +++ b/styles/preambule.tex @@ -0,0 +1,213 @@ +\usepackage{ifxetex} +\ifxetex + \usepackage{fontspec} + %\usepackage{microtype} + %\usepackage{xunicode} + \usepackage{polyglossia} + \usepackage{xltxtra} + \setdefaultlanguage{french} + \setotherlanguage{english} + \defaultfontfeatures{Mapping=tex-text} % To support LaTeX quoting style + %\setmainfont{Caviar Dreams} + \newfontfamily\headingfont[]{Caviar Dreams} + \usepackage{titlesec} + \defaultfontfeatures{Ligatures=TeX} + % Set sans serif font to Calibri + \setsansfont{LiberationSans} + % Set serifed font to Cambria + \setmainfont{LiberationSans} +\else + \usepackage[utf8]{inputenc} + \usepackage[T1]{fontenc} + \usepackage{amsfonts} + \usepackage[english, francais]{babel} +\fi +\usepackage{pifont} +\usepackage{geometry} +\usepackage{fancybox} +\usepackage{verbatim} +\usepackage{eurosym} +%\usepackage{color} +\usepackage[svgnames,table]{xcolor} +\usepackage{listings} +\usepackage{graphicx} +\usepackage{hyperref} +\usepackage{titlesec} +\usepackage{fancyhdr} +\usepackage{lastpage} +%\usepackage{enumitem} +\usepackage{makeidx} +\usepackage{tocbibind} +\usepackage[backend=biber,hyperref=true,backref=true]{biblatex} +\addbibresource{biblio.bib} +\usepackage{url} +\renewcommand{\baselinestretch}{1.3} +\addto\captionsfrench{\renewcommand{\contentsname}{Sommaire}} +\usepackage{graphicx} +\usepackage{pdfpages} +\makeindex + +% +% Tableaux +% +\usepackage{array} +\usepackage{booktabs} +\usepackage{colortbl} + +% Default +\newcolumntype{1}{l} +\newcolumntype{2}{l} +\newcolumntype{3}{l} +\newcolumntype{4}{l} +\newcolumntype{5}{l} +\newcolumntype{6}{l} +\newcolumntype{7}{l} +\newcolumntype{8}{l} +\newcommand*\heading{} +\newcommand*\beforeheading{} +\newcommand*\afterheading{} +\newcommand*\normalline{} +\newcommand*\lastline{} + +%\renewcommand*\toprule{\arrayrulecolor{red}{\hline}} + +% Nice looking rules, centered cells +\newcolumntype{1}{c} +\newcolumntype{2}{c} +\newcolumntype{3}{c} +\newcolumntype{4}{c} +\newcolumntype{5}{c} +\newcolumntype{6}{c} +\newcolumntype{7}{c} +\newcolumntype{8}{c} +\renewcommand*\heading[1]{\chapterfont\MakeUppercase{#1}} +\renewcommand*\beforeheading{\arrayrulecolor{CadolesBlue}\toprule} +\renewcommand*\afterheading{\midrule} +\renewcommand*\normalline{} +\renewcommand*\lastline{\bottomrule} + +\definecolor{CadolesBlue}{rgb}{.16,.50,.69} +\definecolor{CadolesLightBlue}{rgb}{.31,.506,.741} +\newfontfamily\cadolesfont{Caviar Dreams} +\newfontfamily\chapterfont[Color=CadolesBlue]{Caviar Dreams} +\newfontfamily\sectionfont[Color=CadolesBlue]{Caviar Dreams} +\newfontfamily\subsectionfont[Color=CadolesLightBlue]{Caviar Dreams} +\newfontfamily\subsubsectionfont[Color=CadolesLightBlue]{Caviar Dreams} + +\newcommand{\tickYes}{\color{Green}\checkmark} +\newcommand{\tickNo}{\color{red}{\hspace{1pt}\ding{55}}} +\newcommand{\wlink}[1]{\textcolor{CadolesBlue}{\underline{#1}}} +\newcommand{\classname}[1]{\texttt{\textbf{#1}}} +%\newcommand{\cadoles}{\chapterfont{Cadoles}} +\newcommand{\cadoles}{\cadolesfont\textcolor{black}{Cad}\textcolor{CadolesBlue}{ole}\textcolor{black}{s}} +\newcommand{\TitleRule}{\rule[0.5ex]{12cm}{0.5mm}} +\newcommand\espace{\vrule height 20pt width 0pt} +\newcommand{\titre}[1]{{\color{DarkBlue}\normalfont\LARGE\bfseries #1\smallskip\hrule height 1pt}\bigskip} +\renewcommand*\abstractname{Summary} +%\renewcommand{\FrenchLabelItem}{\color{DarkBlue}{\ding{68}}} +\let\oldfootnoterule\footnoterule +\renewcommand\footnoterule{\vspace*{-3pt}% +\noindent\rule{3in}{0.4pt}\vspace*{2.6pt}}% -3 + 0.4 + 2.6 = 0 + +%\pagestyle{headings} +\makeatletter +\renewcommand{\thesection}{} +\titleformat{\chapter}{\LARGE\chapterfont}{\thesection}{0ex}{}[\color{CadolesBlue}\hrule height 1pt] +\titleformat{\section}{\Large\sectionfont}{\thesection}{0ex}{}[\color{CadolesBlue}\hrule height 1pt] +\titleformat{\subsection}{\large\subsectionfont}{\thesection}{0ex}{} +\titleformat{\subsubsection}{\itshape\subsubsectionfont}{\thesection}{0ex}{} + +\input{inc/00-entete-pied-de-page} + +\def\maketitle{ + \begin{center} + \includegraphics[scale=0.8]{"inc/logo"} + \end{center} + \vspace{4.5cm} + + \begin{flushleft} + \textbf{\Huge \cadolesfont\textcolor{CadolesBlue}{\@title}} + \end{flushleft} + \begin{center} + \color{CadolesBlue}\TitleRule + \end{center} + \begin{flushright} + \vspace{-1.5ex} + \textbf{\huge \cadolesfont\textcolor{DarkGrey}{\departement}} + \end{flushright} + \vspace{2.5cm} +} + +\def\destinataire{ + \vspace{2cm} + \begin{flushright} + \begin{minipage}[r]{8cm} + \input{Destinataire} + \end{minipage} + \end{flushright} + +} + +\def\origine{ + \vspace{1.5cm} + \begin{flushleft} + \begin{minipage}[l]{8cm} + \input{inc/00-Coordonnees} + \end{minipage} + \end{flushleft} +} + +% +% Itemize avec la petite cadoles +% +%\newenvironment{citemize}{\renewcommand{\labelitemi{$\odot$}}} +%\newenvironment{citemize}{\renewcommand{\labelitemi{\includegraphics[height=1.6ex]{inc/cadole.png}}}} +\newenvironment{citemize}{\renewcommand + \labelitemi{\includegraphics[height=1ex]{inc/cadole.png}}\begin{itemize}}{\end{itemize}} + + +% +% Box pour citations +% +\newsavebox{\fmbox} +\newenvironment{fmpage}[1] + {\begin{lrbox}{\fmbox}\begin{minipage}{#1}} + {\end{minipage}\end{lrbox}\fbox{\usebox{\fmbox}}} + +\hypersetup{ + backref=true, % Permet d'ajouter des liens dans + pagebackref=true, % les bibliographies + hyperindex=true, % Ajoute des liens dans les index. + colorlinks=true, % Colorise les liens. + breaklinks=true, % Permet le retour à la ligne dans les liens trop longs. + urlcolor= CadolesBlue, % Couleur des hyperliens. + linkcolor= CadolesBlue, % Couleur des liens internes. + bookmarks=true, % Créé des signets pour Acrobat. + bookmarksopen=true, % Si les signets Acrobat sont créés, + % les afficher complètement. + pdftitle={\@title}, % Titre du document. + % Informations apparaissant dans + pdfauthor={Cadoles}, % dans les informations du document + pdfsubject={Proposition Commerciale} % sous Acrobat. +} + + + +%\topmargin 0in +%\leftmargin 2.5cm +%\rightmargin 2.5cm + +\setlength{\hoffset}{-18pt} +\setlength{\oddsidemargin}{0pt} % Marge gauche sur pages impaires +\setlength{\evensidemargin}{9pt} % Marge gauche sur pages paires +\setlength{\marginparwidth}{54pt} % Largeur de note dans la marge +%\setlength{\textwidth}{481pt} % Largeur de la zone de texte (17cm) +\setlength{\voffset}{-18pt} % Bon pour DOS +\setlength{\marginparsep}{7pt} % Séparation de la marge +\setlength{\topmargin}{0pt} % Pas de marge en haut +\setlength{\headheight}{13pt} % Haut de page +\setlength{\headsep}{10pt} % Entre le haut de page et le texte +\setlength{\footskip}{27pt} % Bas de page + séparation +\setlength{\textheight}{708pt} % Hauteur de la zone de texte (25cm) + +