summaryrefslogtreecommitdiff
path: root/style
diff options
context:
space:
mode:
Diffstat (limited to 'style')
-rw-r--r--style/first-page.tex5
-rw-r--r--style/style.tex50
-rw-r--r--style/toc.tex17
3 files changed, 56 insertions, 16 deletions
diff --git a/style/first-page.tex b/style/first-page.tex
index 57ee6fd..b2f2ebb 100644
--- a/style/first-page.tex
+++ b/style/first-page.tex
@@ -35,12 +35,15 @@
\vspace*{1.8cm}
\emph{A thesis submitted in fulfillment of the requirements\\ for
- the VU Bachelor of Science degree in Computer Science}
+ the VU Bachelor of Science degree in Computer Science.}
\vspace*{1cm}
\today\\[4cm]
+ % Restoring to normal numbers takes place in toc.tex.
+ \pagenumbering{Roman}
+
\end{center}
\newpage
diff --git a/style/style.tex b/style/style.tex
index 2cbd0f2..7675240 100644
--- a/style/style.tex
+++ b/style/style.tex
@@ -4,17 +4,39 @@
\usepackage[many]{tcolorbox}
\tcbuselibrary{skins, breakable}
\usetikzlibrary{calc}
+% Specified separately in case margins need to be changed.
+\usepackage{geometry}
-\usepackage{xspace,hyperref, lipsum, booktabs, caption, fancyhdr, footmisc, nomencl, rotating, setspace, subfigure,tocbibind, vmargin, watermark, graphicx, pifont, float, array, ipsum, circledsteps, inconsolata, listings}
+% For a nice table of contents.
+\usepackage{tocloft}
+% For the font.
+\usepackage{fouriernc}
-\hypersetup {
- hidelinks=false,
- colorlinks=true,
- citecolor=Red,
- linkcolor=Red,
-}
+% fdsymbol can be loaded together with pifont
+\usepackage{fdsymbol}
+% For beautiful appendices
+\usepackage[page,toc,titletoc,title]{appendix}
+
+% This removes the self-reference to toc, lof, lot in the toc.
+\usepackage[nottoc,notlof,notlot]{tocbibind}
+
+\usepackage{xspace, lipsum, booktabs, caption, setspace, vmargin, graphicx, pifont, twemojis, float, array, ipsum, circledsteps, inconsolata, listings}
+
+% Must be separately in case hidelinks=true option is needed.
+\usepackage{hyperref}
+
+% Makes the TOC title font and number in a bold font.
+\renewcommand\cftchapfont{\bfseries}
+\renewcommand\cftchappagefont{\bfseries}
+% Makes the chapter spacing in the TOC less.
+\setlength{\cftbeforechapskip}{4pt}
+
+% Specifies the spacing between the lines.
+\renewcommand\baselinestretch{1.1}
% Glossaries loads amsmath
\usepackage[acronym, toc]{glossaries}
+
+% For better references. Must be loaded the last.
\usepackage{cleveref}
\textwidth 15cm
\textheight 22cm
@@ -23,6 +45,12 @@
\oddsidemargin 2.5cm
\evensidemargin 2.5cm
+\hypersetup{
+ colorlinks=true,
+ citecolor=Green!90!white,
+ linkcolor=Blue!90!white
+}
+
\newcommand{\ie}{\emph{i.e.,}\xspace}
\newcommand{\eg}{\emph{e.g.,}\xspace}
\newcommand{\etc}{\emph{etc.}\xspace}
@@ -64,13 +92,6 @@
\lstset{style=mystyle}
-
-
-\definecolor{ChapterBackground}{HTML}{101010}
-\definecolor{ChapterForeground}{HTML}{e93820}
-\definecolor{CoverForeground}{HTML}{ee0000}
-
-%borderline west = {0.5cm}{0pt}{yellow!50!black},
\newtcolorbox{mynote}{%
enhanced,
breakable,
@@ -92,4 +113,3 @@
},
}
-\renewcommand\baselinestretch{1.2}
diff --git a/style/toc.tex b/style/toc.tex
new file mode 100644
index 0000000..9920293
--- /dev/null
+++ b/style/toc.tex
@@ -0,0 +1,17 @@
+\setcounter{secnumdepth}{3}
+% Set to 1, suggested by Alexandru
+\setcounter{tocdepth}{1}
+% This is so that we can fit the entire TOC on one page
+\newgeometry{height=22cm, a4paper, hmargin={2in, 0.25in}, vmargin={1in, 1.65cm}}
+% Curcial for the bottom margin to remain 1.65 cm
+\thispagestyle{empty}
+{\small\tableofcontents}
+\restoregeometry
+\clearpage
+\listoffigures
+\clearpage
+\listoftables
+\newpage
+
+% Restores to normal numbers.
+\pagenumbering{arabic}