equal
deleted
inserted
replaced
|
1 %% --------------- Headings setup -------------------------------------- |
|
2 |
|
3 \RequirePackage{fancyhdr} |
|
4 \pagestyle{fancy} |
|
5 |
|
6 \@ifundefined{chapter}% |
|
7 {}% |
|
8 {\renewcommand{\chaptermark}[1]{% |
|
9 \ifthenelse{\value{chapter} < 1}% |
|
10 {\markboth{#1}{}}% |
|
11 {\markboth{\thechapter.\ #1}{}} |
|
12 }} |
|
13 |
|
14 \addtolength{\headheight}{\baselineskip} |
|
15 \renewcommand{\headrulewidth}{0pt} %% thin line under header |
|
16 %\renewcommand{\headrulewidth}{0.4pt} %% no line under header |
|
17 \renewcommand{\footrulewidth}{0pt} |
|
18 \fancyhf{} %% Clear all fields. |
|
19 %\fancyhead[LE,RO]{\sffamily\thepage} %{\bf \rightmark} |
|
20 %\fancyhead[LO,RE]{\sffamily\nouppercase{\leftmark}} %{\slshape \leftmark} |
|
21 \fancyhead[R]{\sffamily\thepage} %{\bf \rightmark} |
|
22 \fancyhead[L]{\sffamily\nouppercase{\leftmark}} %{\slshape \leftmark} |
|
23 |
|
24 \fancypagestyle{plain}{% |
|
25 \fancyhf{} % clear all header and footer fields |
|
26 \fancyfoot[C]{\sffamily\thepage} % except the center |
|
27 \renewcommand{\headrulewidth}{0pt} |
|
28 \renewcommand{\footrulewidth}{0pt} |
|
29 } |