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 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
| \documentclass[a4paper,12pt,french]{report}
%====================== PACKAGES ======================
% Gérer les positionnement d'images
\usepackage{float}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage{url}
% Espacement entre les lignes
\usepackage{setspace}
% Police et mise en page (marges) du document
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{babel}
% Pour en-têtes et pieds
\usepackage{lastpage}
\usepackage{fancyhdr}
% Textes Aleatoire
\usepackage{lipsum}
%====================== MACRO ======================
\newcommand*\parttitle{}
\let\origpart\part
\renewcommand*{\part}[2][]{%
\ifx\\#1\\% optional argument not present?
\origpart{#2}%
\renewcommand*\parttitle{#2}%
\else
\origpart[#1]{#2}%
\renewcommand*\parttitle{#1}%
\fi
}
%====================== INFORMATION ET RÈGLES ======================
% En-tête
\rhead{\thepart. \parttitle}
\lhead{\textsc{Nom Etablissement}}
% Pied de pages
\rfoot{\textsc{Années 20XX}}
\cfoot{\textsc{Page \thepage/\pageref{LastPage}}}
\lfoot{\textsc{Prénom NOM}}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0.7pt}
\renewcommand{\footrulewidth}{0.7pt}
%======================== DÉBUT DU DOCUMENT ========================
\begin{document}
% Régler l'espacement entre les lignes
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
%====================== INCLUSION DES PARTIES ======================
%====================== Tables ======================
\tableofcontents
\newpage
\listoffigures
\newpage
%====================== Première Partie ======================
\part{Première Partie}
\renewcommand{\thesection}{\arabic{section}}
\section{Ma section}
\lipsum
\renewcommand{\thesection}{\arabic{section}}
\section{Ma 2e section}
\lipsum
\renewcommand{\thesection}{\arabic{section}}
\section{Ma 3e section}
\lipsum
\renewcommand{\thesection}{\arabic{section}}
\section{Ma 4e section}
\lipsum
%====================== Seconde Partie ======================
\part{Seconde Partie}
\noindent \lipsum
%====================== Troixième Partie ======================
\part{Troixième Partie}
\noindent \lipsum
%====================== Quatrième Partie ======================
\part{Quatrième Partie}
\noindent \lipsum
%======================== FIN DU DOCUMENT ========================
\end{document} |
Partager