-
Notifications
You must be signed in to change notification settings - Fork 7
/
main.tex
210 lines (172 loc) · 3.86 KB
/
main.tex
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
\documentclass[11pt,a4paper]{book}
% Essential
\usepackage[USenglish,american]{babel}
\usepackage{titling}
% Optional
\usepackage[hidelinks]{hyperref}
\usepackage{amsmath,amsthm,amsfonts,amssymb}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{tikz}
\usepackage{multicol}
\usepackage{float}
\usepackage[official]{eurosym}
\usepackage{xcolor}
\usepackage{subfiles}
\usepackage{framed}
\usepackage[strict]{changepage}
\usepackage{tabularx}
\usepackage{mdframed}
\usepackage{makeidx}
\usepackage[totoc]{idxlayout}
\usepackage{mfirstuc}
\usepackage[margin=3cm,a4paper]{geometry}
\usepackage{titling}
%\usepackage[printwatermark]{xwatermark}
%\newwatermark[allpages,color=gray!50,angle=45,scale=3,xpos=0,ypos=0]{DRAFT}
% Titleplage
\newcommand{\theauthors}{Dieter Castel \\ Jonas Devlieghere}
\newcommand{\thecontributors}{Wout Scheepers \\ Stefan Pante \\ Jo Van Bulck}
\newcommand{\theprofs}{Marc Lobelle}
\title{Software for Real-time \& Embedded \\ Systems (B-KUL-H04L2A)}
\date{\today}
\author{\theauthors}
% Listings
\lstset{
basicstyle=\scriptsize,
breaklines=true,
captionpos=b,
extendedchars=true,
frame=lines,
numbers=left,
numberstyle=\tiny,
keywordstyle=\bfseries,
showstringspaces=false,
tabsize=2,
title=\lstname
}
\lstdefinestyle{cstyle}{
language=C
}
% Personal Preferences
\setlength\parindent{0pt}
% Figure Path
\graphicspath{{figures/}{../figures/}}
% Ensures an index is made.
\makeindex
% Regular Index Entry
\makeatletter
\newcommand*\define[1]{%
#1%
\index{#1@\protect\capitalisewords{#1}}%
}
\makeatother
% Bold Index Entry
\makeatletter
\newcommand*\definebf[1]{%
\textbf{#1}%
\index{#1@\protect\capitalisewords{#1}}%
}
\makeatother
% Bold Abreviation Index Entry
\makeatletter
\newcommand*\defineabrv[2]{
\textbf{#1} (#2)
\index{#2 | see {\protect\capitalisewords{#1}} }%
\index{#1@\protect\capitalisewords{#1}}%
}
\makeatother
% Theorem Styles
\theoremstyle{definition}
\newtheorem{asmdefn}{Definition}[section]
\newtheorem{asmexmp}{Example}[section]
%Listing with file as first argument and options as second.
\newcommand\includelisting[2]{
\IfFileExists{code/#1}{
\lstinputlisting[ #2 ]{code/#1}
}{
\lstinputlisting[ #2 ]{../code/#1}
}
}
% Boxed Theorems
\newenvironment{exmp}
{\begin{mdframed}\begin{asmexmp}}
{\end{asmexmp}\end{mdframed}}
\newenvironment{defn}
{\begin{mdframed}\begin{asmdefn}}
{\end{asmdefn}\end{mdframed}}
% Blockquote
\newenvironment{blockquote}{%
\def\FrameCommand{%
\hspace{1pt}%
{\color{black}\vrule width 4pt}%
{\color{lightgray}\vrule width 4pt}%
\colorbox{lightgray}%
}%
\MakeFramed{\advance\hsize-\width\FrameRestore}%
\noindent\hspace{-4.55pt}% disable indenting first paragraph
\begin{adjustwidth}{}{7pt}%
\vspace{2pt}\vspace{2pt}%
}
{%
\vspace{2pt}\end{adjustwidth}\endMakeFramed%
}
\begin{document}
\frontmatter
% Title Page
\begin{titlepage}
\thispagestyle{empty}
\begin{minipage}{\textwidth}
\includegraphics[width=60mm]{logokuleng.pdf}
\end{minipage}
\vspace{40mm}
\begin{minipage}{\textwidth}
\Huge
\sffamily
\thetitle
\end{minipage}
\vspace{50mm}
\hfill
\begin{minipage}[t]{0.5\textwidth}
\Large
\sffamily
\textbf{Professor(s)} \\
\theprofs
\end{minipage}%
\begin{minipage}[t]{0.5\textwidth}
\begin{flushright}
\Large
\sffamily
\textbf{Authors} \\
\theauthor
\vspace{10mm} \\
\textbf{Contributors} \\
\thecontributors
\end{flushright}
\end{minipage}
\vfill
\end{titlepage}
% Table of Contents Page
\tableofcontents
\newpage
\subfile{preface}
\mainmatter
\part{Real-Time Systems}
\subfile{chapters/chapter1}
\subfile{chapters/chapter2}
\subfile{chapters/chapter3}
\subfile{chapters/chapter4}
\subfile{chapters/chapter5}
\part{Asynchronous State Graphs}
\subfile{chapters/chapter6}
\subfile{chapters/chapter7}
% Appendix
\appendix
\backmatter
% Index
\printindex
% References
\bibliographystyle{plain}
\bibliography{main}
\nocite{*}
\end{document}