From 3ff0d75f4b96085f1521d78529e11dc8e31e2fd6 Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Wed, 3 Apr 2019 08:58:05 +0200 Subject: [PATCH] add global fancy header/ footer --- cours.cls | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cours.cls b/cours.cls index 6910ed0..ac035bf 100644 --- a/cours.cls +++ b/cours.cls @@ -46,7 +46,21 @@ \usetikzlibrary{positioning} \RequirePackage{schemabloc} +\RequirePackage{fancyhdr} +\pagestyle{fancy} + \fancyhf {} + \renewcommand{\chaptermark}[1]{\markboth{\bsc{\@chapapp~\thechapter{} :} #1}{}} + + \renewcommand{\sectionmark}[1]{\markright{\thesection.{} #1}} + \renewcommand{\headrulewidth}{1pt} %Epaisseur de la ligne. + \renewcommand{\footrulewidth}{1pt} %Epaisseur de la ligne. + \lhead[\textsl{\leftmark}]{{}} + \rhead[{}]{\textsl{\rightmark}} + \lfoot[\textit{\thepage}]{{}} +\rfoot[{}]{\textit{\thepage}} + \cfoot[{}]{{}} + \usepackage[european,cuteinductors,siunitx,straightvoltages]{circuitikz} \tikzset{every picture/.style={execute at begin picture={\shorthandoff{:;!?};}}} \usetikzlibrary{positioning, fit, calc}