From b6202a785ce486531826d23999971712c512c785 Mon Sep 17 00:00:00 2001
From: mjkwiatkowski <mati.rewa@gmail.com>
Date: Fri, 10 Jul 2026 21:41:05 +0200
Subject: feat: changed the TOC and added the preamble

---
 style/style.tex | 42 +++++++++++++++++++++++++++---------------
 1 file changed, 27 insertions(+), 15 deletions(-)

(limited to 'style/style.tex')

diff --git a/style/style.tex b/style/style.tex
index a2184ad..a95f558 100644
--- a/style/style.tex
+++ b/style/style.tex
@@ -4,17 +4,37 @@
 \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,
-}
+% For beautiful appendices
+\usepackage[page,toc,titletoc,title]{appendix}
+
+% This removes the self-reference to toc in the toc.
+\usepackage[nottoc]{tocbibind}
+
+\usepackage{xspace, lipsum, booktabs, caption, setspace, vmargin, graphicx, pifont, float, array, ipsum, circledsteps, inconsolata, listings}
+
+% Must be separately in case hidelinks=true option is needed.
+\usepackage[hidelinks]{hyperref}
+
+% Makes the TOC title font and number in a sans serif font.
+\renewcommand\cftchapfont{\bfseries\sffamily}
+\renewcommand\cftchappagefont{\bfseries\sffamily}
+% Makes the chapter spacing in the TOC less.
+\setlength{\cftbeforechapskip}{5pt}
+
+% 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
@@ -64,13 +84,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 +105,3 @@
 		},
 }
 
-\renewcommand\baselinestretch{1.1}
-- 
cgit v1.2.3

