author | Mathias Lehnfeld <s1210629013@students.fh-hagenberg.at> |
Wed, 12 Mar 2014 17:43:22 +0100 | |
changeset 55404 | ab97437e021a |
permissions | -rw-r--r-- |
s1210629013@55404 | 1 |
%% --------------- Headings setup -------------------------------------- |
s1210629013@55404 | 2 |
|
s1210629013@55404 | 3 |
\RequirePackage{fancyhdr} |
s1210629013@55404 | 4 |
\pagestyle{fancy} |
s1210629013@55404 | 5 |
|
s1210629013@55404 | 6 |
\@ifundefined{chapter}% |
s1210629013@55404 | 7 |
{}% |
s1210629013@55404 | 8 |
{\renewcommand{\chaptermark}[1]{% |
s1210629013@55404 | 9 |
\ifthenelse{\value{chapter} < 1}% |
s1210629013@55404 | 10 |
{\markboth{#1}{}}% |
s1210629013@55404 | 11 |
{\markboth{\thechapter.\ #1}{}} |
s1210629013@55404 | 12 |
}} |
s1210629013@55404 | 13 |
|
s1210629013@55404 | 14 |
\addtolength{\headheight}{\baselineskip} |
s1210629013@55404 | 15 |
\renewcommand{\headrulewidth}{0pt} %% thin line under header |
s1210629013@55404 | 16 |
%\renewcommand{\headrulewidth}{0.4pt} %% no line under header |
s1210629013@55404 | 17 |
\renewcommand{\footrulewidth}{0pt} |
s1210629013@55404 | 18 |
\fancyhf{} %% Clear all fields. |
s1210629013@55404 | 19 |
%\fancyhead[LE,RO]{\sffamily\thepage} %{\bf \rightmark} |
s1210629013@55404 | 20 |
%\fancyhead[LO,RE]{\sffamily\nouppercase{\leftmark}} %{\slshape \leftmark} |
s1210629013@55404 | 21 |
\fancyhead[R]{\sffamily\thepage} %{\bf \rightmark} |
s1210629013@55404 | 22 |
\fancyhead[L]{\sffamily\nouppercase{\leftmark}} %{\slshape \leftmark} |
s1210629013@55404 | 23 |
|
s1210629013@55404 | 24 |
\fancypagestyle{plain}{% |
s1210629013@55404 | 25 |
\fancyhf{} % clear all header and footer fields |
s1210629013@55404 | 26 |
\fancyfoot[C]{\sffamily\thepage} % except the center |
s1210629013@55404 | 27 |
\renewcommand{\headrulewidth}{0pt} |
s1210629013@55404 | 28 |
\renewcommand{\footrulewidth}{0pt} |
s1210629013@55404 | 29 |
} |