1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
| \documentclass[12pt,a5paper,twoside, openany]{report}
%*********************************************************************************
%***************************** Load packages *******************************
%*********************************************************************************
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{lmodern}
\usepackage[francais]{babel}
\usepackage[inner=1.5cm,outer=1.3cm,footskip=40pt]{geometry}
\usepackage[pagestyles,clearempty]{titlesec}
\usepackage{titletoc}
\usepackage{tocloft}
\usepackage{fancyhdr}
\usepackage{lipsum}
\usepackage{pifont}
\usepackage{fourier-orns}
\usepackage{enumitem}
\usepackage{titlesec}
\usepackage{color}
\usepackage{graphicx}
%*********************************************************************************
%****************************** Format page *******************************
%********************************************************************************
\pretolerance=10000
\sloppy
%******** Change margins titlepage ********
\newenvironment{changemargin}[2]{\begin{list}{}{%
\setlength{\topsep}{0pt}%
\setlength{\leftmargin}{0pt}%
\setlength{\rightmargin}{-0pt}%
\setlength{\listparindent}{\parindent}%
\setlength{\itemindent}{\parindent}%
\setlength{\parsep}{0pt plus 1pt}%
\addtolength{\leftmargin}{#1}%
\addtolength{\rightmargin}{#2}%
}\item }{\end{list}}
%************ Change margins **************
\addtolength{\textheight}{+2cm}
\setlength{\headheight}{15pt}
%************ Interligne *************
\renewcommand{\baselinestretch}{1.2}
\baselineskip\the\baselineskip plus0.5pt minus0.5pt\relax
%*************** Headers **************
\pagestyle{fancy}
\fancyhf{}
\headsep=20pt
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\chaptermark}[1]%
{\markboth{\itshape{Chapitre~\thechapter~:\ #1}}{}}
\renewcommand{\sectionmark}[1]%
{\markright{\itshape{Section~\thesection~--~\ #1}}}
\fancyhead[RO]{ \rightmark}
\fancyhead[LE]{ \leftmark}
\fancyhead[LO,RE]{\bfseries\thepage}
%****************** part style ********************
\titleclass{\part}{page}
\titleformat{\part}[display]
{\raggedleft\singlespace\normalfont\Large\bfseries}
{\normalfont\LARGE\scshape\partname\ \thepart}
{-10pt}
{\rule{\textwidth}{3pt}\\ \vspace{10pt}}
{\Large}
\titlespacing*{\section}{}{-2cm}{0.3cm}{} |
Partager