I've been trying to figure out a way to easily reduce the space/gap from the top of the page to the table of contents title, as in to reduce the vertical space before the table of contents begins.

Below is my MWE:

\documentclass[final,a4paper,11pt]{report}

%%% Packages %%%
\usepackage[compact]{titlesec}  % titlesec for title section layout

% Format the title for chapters
\titleformat{\chapter}[hang]{\huge\bfseries}{\thechapter.}{1em}{}
\titlespacing*{\chapter}{0pt}{-3em}{1.1\parskip}

% Begin document
\begin{document}

\tableofcontents

\clearpage

\chapter{Introduction}
\section{Background}
Need to reduce the space before the Contents title, was able to reduce the space before chapter fine.
\end{document}


How does the report class handle the table of contents? It doesn't seem to be a chapter, else it would have moved up when I changed the chapter spacing?

-

\setlength{\cftbeforetoctitleskip}{-3em}

Which didn't work before since I forgot to change Z to toc: \cftbeforeZtitleskip to \cftbeforetoctitleskip