blob: b55a3fc561df8e5dc74d270ca50b0f2f106dc09e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
%% hgbheadings.sty
%% Headings setup
%% This file is part of the Hagenberg Thesis package for creating bachelors's and masters's theses
%% Author: Wilhelm Burger (wilhelm.burger@fh-hagenberg.at)
%% GitHub: https://github.com/Digital-Media/HagenbergThesis
%% File encoding: ASCII
\ProvidesPackage{hgbheadings}[2017/10/28]
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\RequirePackage[sf,raggedright]{titlesec} % use sans serif for chapter/section headings
\@ifundefined{chapter}%
{}%
{\renewcommand{\chaptermark}[1]{%
\ifthenelse{\value{chapter} < 1}%
{\markboth{#1}{}}%
{\markboth{\thechapter.\ #1}{}}
}}
\addtolength{\headheight}{\baselineskip}
\renewcommand{\headrulewidth}{0pt} % thin line under header
\renewcommand{\footrulewidth}{0pt}
\fancyhf{} % clear all fields.
\fancyhead[R]{\sffamily\thepage} %{\bf \rightmark}
\fancyhead[L]{\sffamily\nouppercase{\leftmark}} %{\slshape \leftmark}
\fancypagestyle{plain}{%
\fancyhf{} % clear all header and footer fields
\fancyfoot[C]{\sffamily\thepage} % except the center
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
%% Setup for headings (title, toc, abstract) for hgb* classes only ------------
\makeatletter%
\@ifclassloaded{hgbthesis}{%
\RequirePackage[titles]{tocloft}%
\renewcommand{\cftchapfont}{\bfseries\sffamily}
}{}%
\@ifclassloaded{hgbreport}{%
\RequirePackage{titling}
\renewcommand{\maketitlehooka}{\sffamily}
\RequirePackage[titles]{tocloft}%
\renewcommand{\cftchapfont}{\bfseries\sffamily}
\RequirePackage{abstract}%
\renewcommand{\abstractnamefont}{\sffamily\small\bfseries}
}{}%
\@ifclassloaded{hgbarticle}{%
\RequirePackage{titling}
\renewcommand{\maketitlehooka}{\sffamily}
\if@twocolumn%
\else%
\RequirePackage{abstract}
\renewcommand{\abstractnamefont}{\sffamily\small\bfseries}
\fi%
}{}%
\makeatother%
|