diff options
| author | mjkwiatkowski <mati.rewa@gmail.com> | 2026-07-10 21:41:05 +0200 |
|---|---|---|
| committer | mjkwiatkowski <mati.rewa@gmail.com> | 2026-07-10 21:41:05 +0200 |
| commit | b6202a785ce486531826d23999971712c512c785 (patch) | |
| tree | 346cc89f739dfa13e16a45bb2ec040512a36a4a4 /style | |
| parent | efed2f678137467b6d317c61b88494979ed49109 (diff) | |
feat: changed the TOC and added the preamble
Diffstat (limited to 'style')
| -rw-r--r-- | style/first-page.tex | 5 | ||||
| -rw-r--r-- | style/style.tex | 42 | ||||
| -rw-r--r-- | style/toc.tex | 14 |
3 files changed, 45 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 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} diff --git a/style/toc.tex b/style/toc.tex new file mode 100644 index 0000000..956a8f4 --- /dev/null +++ b/style/toc.tex @@ -0,0 +1,14 @@ +\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 +%\listoffigures +%\listoftables + +% Restores to normal numbers. +\pagenumbering{arabic} |
