Fix headers
This commit is contained in:
15
thesis.cls
15
thesis.cls
@@ -471,17 +471,15 @@
|
||||
\newpage{\pagestyle{empty}\cleardoublepage}}
|
||||
%%%% .... et utiliser la commande \clearemptydoublepage juste avant le \chapter
|
||||
|
||||
|
||||
\fancyhf{} % on annule le fancy automatique
|
||||
|
||||
|
||||
%%%%%%%%%% Gerer les en tetes dans les frontmatter mainmatter et backmatter
|
||||
\RequirePackage{geometry}
|
||||
\RequirePackage{etoolbox}
|
||||
|
||||
\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[LE]{\small\leftmark} % \leftmark = chapitre courant
|
||||
@@ -489,11 +487,11 @@
|
||||
}
|
||||
|
||||
\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
|
||||
\fancyhead[LE]{\small\leftmark} % \leftmark = chapitre courant
|
||||
\fancyfoot[C]{\thepage} % marque la page au centre
|
||||
}
|
||||
|
||||
@@ -501,8 +499,7 @@
|
||||
\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
|
||||
\fancyhead[RO]{}
|
||||
\fancyhead[LE]{}
|
||||
\fancyfoot[C]{\thepage} % marque la page au centre
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user