1 |
47 |
JonasDC |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
2 |
|
|
% This syntax file is intended for students of the %
|
3 |
|
|
% KaHo St. Lieven writing their master thesis. %
|
4 |
|
|
% We hope they can use it as a helping hand in writing %
|
5 |
|
|
% their thesis. %
|
6 |
|
|
% %
|
7 |
|
|
% This package will take care of the formatting of the %
|
8 |
|
|
% document. When all student used this syntax (or %
|
9 |
|
|
% another), we can come to an universal thesis format %
|
10 |
|
|
% which adds to the professionalism of our university %
|
11 |
|
|
% documents %
|
12 |
|
|
% %
|
13 |
|
|
% Syntax originally written by Filip Van Rysselberghe %
|
14 |
|
|
% Adapted for KaHo St. Lieven by Bart Blanckaert %
|
15 |
|
|
% minor correction: "Katholieke Hogeschool Sint-Lieven" %
|
16 |
|
|
% instead of "KaHo Sint-Lieven Hogeschool" necessary %
|
17 |
|
|
% for official publication, by Karel Van den Steen %
|
18 |
|
|
% %
|
19 |
|
|
% Modified by Koen Vangheluwe based on PhD stylefile of RUG %
|
20 |
|
|
% minor corrections by Jannes Verstichel and Tom Hamelinckx %
|
21 |
|
|
% Last modified: 17/05/2011 v0.92 %
|
22 |
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
23 |
|
|
\makeatletter
|
24 |
|
|
|
25 |
|
|
% fancyheadings
|
26 |
|
|
\usepackage{fancyhdr}
|
27 |
|
|
\pagestyle{fancy}
|
28 |
|
|
\renewcommand{\chaptermark}[1]{\markboth{\thechapter\ #1}{}}
|
29 |
|
|
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
|
30 |
|
|
\fancyhf{}
|
31 |
|
|
%\fancyhead[RE,LO]{\scriptsize\bfseries\sffamily\rightmark}
|
32 |
|
|
\fancyhead[LO,RE]{\scriptsize\bfseries\sffamily\leftmark} % hoofdstuk titel
|
33 |
|
|
\fancyhead[RO,LE]{\scriptsize\bfseries\sffamily\thetitle\space-- \version} % document naam
|
34 |
|
|
\fancyfoot[RO,LE]{\scriptsize\bfseries\sffamily\thepage} % pagina nummer
|
35 |
|
|
\fancyfoot[LO,RE]{\scriptsize\bfseries\sffamily\dramco} % dramco, kaho, kul
|
36 |
|
|
%\fancyfoot[C]{\scriptsize\bfseries\sffamily\thetitle -- \version}
|
37 |
|
|
\renewcommand{\headrulewidth}{.8pt}
|
38 |
|
|
\renewcommand{\footrulewidth}{.8pt}
|
39 |
|
|
\fancypagestyle{plain}{
|
40 |
|
|
\fancyhf{}
|
41 |
|
|
\fancyfoot[RO,LE]{\scriptsize\bfseries\sffamily\thepage}
|
42 |
|
|
\fancyfoot[LO,RE]{\scriptsize\bfseries\sffamily\dramco}
|
43 |
|
|
\renewcommand{\headrulewidth}{0pt}
|
44 |
|
|
\renewcommand{\footrulewidth}{.8pt}
|
45 |
|
|
}
|
46 |
|
|
|
47 |
|
|
% Koen Vangheluwe 29/05/2009: toegevoegd om "\headheight is too small" warning te voorkomen
|
48 |
|
|
\setlength{\headheight}{14pt}
|
49 |
|
|
|
50 |
|
|
% Koen Vangheluwe 16/03/2010: toegevoegd wegens voor witte pagina's met empty style bij het gebruik van twoside en report
|
51 |
|
|
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
|
52 |
|
|
\hbox{}
|
53 |
|
|
\thispagestyle{empty}
|
54 |
|
|
\newpage
|
55 |
|
|
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
59 |
|
|
% We'll head off with the definitions of the new commands %
|
60 |
|
|
% as promotor, copromotor, etc %
|
61 |
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
62 |
|
|
\def\promotorA[#1]#2{\gdef\@promotorAtype{#1}\gdef\@promotorAname{#2}}
|
63 |
|
|
\def\authorEmail#1{\gdef\@authorEmail{#1}}
|
64 |
|
|
\def\hwDesigner#1{\gdef\@hwDesigner{#1}}
|
65 |
|
|
\def\hwCoDesigner#1{\gdef\@hwCoDesigner{#1}}
|
66 |
|
|
\def\company#1{\gdef\@company{#1}}
|
67 |
|
|
|
68 |
|
|
\newcommand{\footstar}[1]{$^*$ \footnotetext{$^*$#1}}
|
69 |
|
|
|
70 |
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
71 |
|
|
% Secondly we declare and fill in the newly created variables %
|
72 |
|
|
% Sometimes we use standard definitions as is the case for %
|
73 |
|
|
% the titles. %
|
74 |
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
75 |
|
|
\def\@title{}
|
76 |
|
|
\def\@author{}
|
77 |
|
|
\def\@authorEmail{}
|
78 |
|
|
|
79 |
|
|
\def\@hwDesigner{}
|
80 |
|
|
\def\@hwCoDesigner{}
|
81 |
|
|
\def\@company{}
|
82 |
|
|
|
83 |
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
84 |
|
|
% This function formats the titlepage using the %
|
85 |
|
|
% variables set before. %
|
86 |
|
|
% Variables used: %
|
87 |
|
|
% - dept %
|
88 |
|
|
% - title %
|
89 |
|
|
% - author %
|
90 |
|
|
% - degree %
|
91 |
|
|
% %
|
92 |
|
|
% When one of those wasn't specified in the tex-file %
|
93 |
|
|
% you will end up with an incomplete and non uniform %
|
94 |
|
|
% titlepage %
|
95 |
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
96 |
|
|
\def\titlep{%
|
97 |
|
|
\thispagestyle{empty}
|
98 |
|
|
\includegraphics[width=8cm]{pictures/opencores.jpg}
|
99 |
|
|
\hfill
|
100 |
|
|
\vspace{7cm}
|
101 |
|
|
\begin{center}
|
102 |
|
|
\bf{\Huge\textsf{\@title}}
|
103 |
|
|
\end{center}
|
104 |
|
|
\vfill
|
105 |
|
|
\vspace{7cm}
|
106 |
|
|
\includegraphics[width=\textwidth]{pictures/logos.jpg}
|
107 |
|
|
\cleardoublepage
|
108 |
|
|
}
|
109 |
|
|
|
110 |
|
|
% Indentation
|
111 |
|
|
\setlength{\parindent}{0pt}
|
112 |
|
|
%\setlength{\parskip}{1ex plus 0.5ex minus 0.25ex}
|
113 |
|
|
\setlength{\abovedisplayskip}{12pt plus 3pt}
|
114 |
|
|
\setlength{\belowdisplayskip}{12pt plus 3pt}
|
115 |
|
|
\setlength{\abovedisplayshortskip}{12pt plus 3pt}
|
116 |
|
|
\setlength{\belowdisplayshortskip}{12pt plus 3pt}
|
117 |
|
|
|
118 |
|
|
%\parskip 1mm
|
119 |
|
|
|
120 |
|
|
%%%%%%%%%%%%%%%%%%%%%%%%&&&&&&&&&&&%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
121 |
|
|
% BeforePreface adds the titlepage and when you %
|
122 |
|
|
% turned on the acknowledgements page, it will be generated too %
|
123 |
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
124 |
|
|
\def\preface{
|
125 |
|
|
|
126 |
|
|
|
127 |
|
|
\pagenumbering{roman}
|
128 |
|
|
\titlep
|
129 |
|
|
|
130 |
|
|
\input{acknowl}
|
131 |
|
|
\tableofcontents
|
132 |
|
|
|
133 |
|
|
\cleardoublepage
|
134 |
|
|
\pagenumbering{arabic}
|
135 |
|
|
}
|
136 |
|
|
|
137 |
|
|
% Start with pagestyle{headings} in case front matter isn't processed
|
138 |
|
|
\pagenumbering{arabic}
|
139 |
|
|
\makeatother
|