\documentclass[a4paper,12pt]{book} \usepackage[dvipsnames]{xcolor} \usepackage{tabularx} \usepackage[linkcolor=Aquamarine, linktoc=all, colorlinks=true]{hyperref} % https://tex.stackexchange.com/questions/13622/chapter-ref-with-latex \usepackage{tikz} \usetikzlibrary{fit} \usetikzlibrary{calc} %\usepackage{showframe} % Good for debugging, uncomment to see the bounding boxes for the various sections of a page. \NewDocumentCommand{\quotes}{m}{``#1''} \begin{document} \title{Unnamed Machine} \author{An attempt to understand the makings of a computer arch} \maketitle { % Prevent the table of contents from being colored % https://tex.stackexchange.com/questions/88400/hyperref-changing-the-linkcolor-locally-in-the-toc \hypersetup{linkcolor=black} \tableofcontents } \include{chapter 1} \include{chapter 2} \include{chapter 3} \end{document} % Note: For any language listing this might be useful: % https://www.overleaf.com/learn/latex/Code_listing