{
\setlength{\parskip}{3pt plus 3pt minus 3pt} % compact table of contents

\tableofcontents

\listoffigures
%\addcontentsline{toc}{chapter}{List of Figures}

{
% format sections to chapters for this scope
\titleformat{\section}{\bf\huge}{\thesection\quad}{0em}{}
\titlespacing*{\section}{0em}{-2em}{1.5em}
\def\chapter*#1{\section*{#1}}

%\vspace*{20mm}
%\listoftables
%%\addcontentsline{toc}{chapter}{List of Tables}
%
%\vspace*{20mm}
%\lstlistoflistings
%%\addcontentsline{toc}{chapter}{List of Listings}

}
}

