Skip to content
Snippets Groups Projects
Commit 2dfee685 authored by Alice Brenon's avatar Alice Brenon
Browse files

Customize headers and footers

parent 22e02aec
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,8 @@
source ./chapter.sh "Introduction"
echo -e "\pagestyle{regularchapter}\n"
cat Introduction/Cadre.md
cat Introduction/Enjeu.md
cat Introduction/Plan.md
......
......@@ -6,15 +6,36 @@ cat <<EOF
\newgeometry{top=2.5cm,bottom=2.5cm,right=2.5cm,left=2.5cm}
\setlength{\headheight}{0pt}
\fancypagestyle{specialchapter}{
\fancyhf{}
\fancyhf[ROH]{\textsc{\leftmark}}
\fancyhf[ROF]{\thepage}
\fancyhf[LEH]{\textsc{\leftmark}}
\fancyhf[LEF]{\thepage}
}
\fancypagestyle{regularchapter}{
\fancyhf{}
\fancyhf[ROH]{\textsc{Chapitre} \thechapter: \textsc{\leftmark}}
\fancyhf[ROF]{\thepage}
\fancyhf[LEH]{\textsc{Chapitre} \thechapter: \textsc{\leftmark}}
\fancyhf[LEF]{\thepage}
}
\fancypagestyle{plain}{%
\fancyhf{}%
\fancyhf[ROF]{\thepage}%
\renewcommand{\headrulewidth}{0pt}% Line at the header invisible
}
\input{template/ED.tex}
\pagestyle{specialchapter}
\normalsize
\normalfont
\rmfamily
\tableofcontents
\newpage
\clearpage
EOF
Introduction/text.sh
......@@ -26,6 +47,9 @@ Conclusion/text.sh
cat <<EOF
\clearpage
\pagestyle{specialchapter}
\listoffigures
\listoftables
......
......@@ -27,6 +27,7 @@ header-includes:
- \usepackage{caption}
- \usepackage{colortbl}
- \usepackage{etoc}
- \usepackage{fancyhdr}
- \usepackage[paper=a4paper,margin=2.5cm]{geometry}
- \usepackage{graphicx}
- \usepackage[colorlinks=false]{hyperref}
......@@ -49,4 +50,5 @@ header-includes:
- \renewcommand\maketitle{\input{template/garde.tex}}
- \renewcommand{\frenchtablename}{Tableau}
- \renewcommand{\lstlistingname}{Code source}
- \renewcommand{\chaptermark}[1]{\markboth{#1}{}}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment