An error occurred while loading the file. Please try again.
-
Dorchies David authoredb9bbd203
%*******************************************************************************
% @file rapport_onema/preambule_onema.tex
% Préambule pour modèle de rapport ONEMA
% @author David Dorchies (Irstea Montpellier)
% @date Jan 2017
%*******************************************************************************
% Le rapport ONEMA est basé sur le préambule commun pour les rapports en français
\input{rapport_francais/preambule_rapport_francais}
% Définition de la police du document http://stackoverflow.com/q/877597
\usepackage{times}
\renewcommand{\familydefault}{\sfdefault}
\urlstyle{sf} % font of url links http://tex.stackexchange.com/a/668
% Definition des couleurs
\definecolor{titreColor}{RGB}{0,115,119} % Turquoise foncé
% Definition des titres
\usepackage{titlesec}
\titleformat{\chapter}
[block]
{\color{titreColor}\normalfont\Large\bfseries\sffamily}
{\thechapter}{0.5em}{}
\titleformat{\section}
[block]
{\normalfont\Large\bfseries\sffamily\raggedright}
{\thesection}{0.5em}{}
\titleformat{\subsection}
[block]
{\normalfont\bfseries\sffamily\itshape\raggedright}
{\thesubsection}{0.5em}{}
\titleformat{\subsubsection}
[block]
{\normalfont\sffamily\itshape\raggedright}
{\thesubsubsection}{0.5em}{}
\setcounter{secnumdepth}{3} % for numbering subsubsection http://tex.stackexchange.com/a/42163
% Définition du format des paragraphes
\setlength{\parskip}{0.5em}
% Format des titres utilisés dans le préambule du rapport (Auteurs, résumé...)
\newcommand{\titrepreambule}[1]{
\vspace{2\baselineskip}
{\sffamily\Large\color{titreColor}\scshape{#1}}
\vspace{\baselineskip}}
% Définition des entêtes et pieds de page
\usepackage{fancyhdr}
\pagestyle{fancy}
% Fancyhdr does not apply same header/footer on chapter and non-chapter pages
% http://tex.stackexchange.com/a/117334
\usepackage{etoolbox}
\patchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{fancy}}{}{}
% Replace hyphen by bullet in list
\usepackage{enumitem}
\setlist[itemize]{label=\raisebox{0.25ex}{$\bullet$}}
% Page de N à M
% @example \cfoot{\thepage\ sur \pageref{LastPage}}
% @see https://fr.wikibooks.org/wiki/LaTeX/Mise_en_page
\usepackage{lastpage}
% Acronymes
71727374757677787980818283848586878889
\usepackage[printonlyused,withpage]{acronym}
% Numbers too close to figure captions in List of Figures http://tex.stackexchange.com/a/117089/124910
\makeatletter
\def\l@figure{\@dottedtocline{1}{1.5em}{3.5em}}
\def\l@table{\@dottedtocline{1}{1.5em}{3.5em}}
\makeatother
% List of figures and tables as sections in a report https://texblog.org/2014/03/25/table-of-contents-list-of-figures-and-tables-as-sections-in-a-report/
\makeatletter
\renewcommand\listoftables{%
\section{\listtablename}%
\@starttoc{lot}%
}
\renewcommand\listoffigures{%
\section{\listfigurename}%
\@starttoc{lof}%
}
\makeatother