diff --git a/thesis.cls b/thesis.cls index 3a2e943..eca9070 100644 --- a/thesis.cls +++ b/thesis.cls @@ -471,9 +471,7 @@ \newpage{\pagestyle{empty}\cleardoublepage}} %%%% .... et utiliser la commande \clearemptydoublepage juste avant le \chapter - -\fancyhf{} % on annule le fancy automatique - +\fancyhf{} % on annule le fancy automatique %%%%%%%%%% Gerer les en tetes dans les frontmatter mainmatter et backmatter \RequirePackage{geometry} @@ -481,28 +479,27 @@ \appto\frontmatter{\pagestyle{fancy} \renewcommand{\sectionmark}[1]{} - \renewcommand{\chaptermark}[1]{\markboth{\textit{#1}}{}} + \renewcommand{\chaptermark}[1]{\markboth{#1}{}} \fancyhead[LE,RO]{\small\thepage} - \fancyhead[RO]{\small\leftmark} % \rightmark = section courante + \fancyhead[RO]{\small\leftmark} % \rightmark = section courante \fancyhead[LE]{\small\leftmark} % \leftmark = chapitre courant - \fancyfoot[C]{\thepage} % marque la page au centre + \fancyfoot[C]{\thepage} % marque la page au centre } \appto\mainmatter{\pagestyle{fancy} - \renewcommand{\sectionmark}[1]{\markright{\textit{\thesection.\ #1}}} - \renewcommand{\chaptermark}[1]{\markboth{\chaptername~\thechapter~--\ \textit{#1}}{}} + \renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}} + \renewcommand{\chaptermark}[1]{\markboth{\chaptername~\thechapter~--\ #1}{}} \fancyhead[LE,RO]{\small\thepage} \fancyhead[RO]{\small\rightmark} % \rightmark = section courante - \fancyhead[LE]{\small Partie~\thepart, \leftmark} % \leftmark = chapitre courant - \fancyfoot[C]{\thepage} % marque la page au centre + \fancyhead[LE]{\small\leftmark} % \leftmark = chapitre courant + \fancyfoot[C]{\thepage} % marque la page au centre } \appto\backmatter{\pagestyle{fancy} \renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}} \renewcommand{\chaptermark}[1]{\markboth{\chaptername~\thechapter~--\ #1}{}} \fancyhead[LE,RO]{\small\thepage} - \fancyhead[RO]{} % \rightmark = section courante - \fancyhead[LE]{} % \leftmark = chapitre courant - \fancyfoot[C]{\thepage} % marque la page au centre - + \fancyhead[RO]{} + \fancyhead[LE]{} + \fancyfoot[C]{\thepage} % marque la page au centre }