The problem is that by adding the titlesec and tocloft commands, the first intro text has a garbled title, and the ToC is put on the same page, while it should stay on the next page.
The code below (with titlesec and tocloft turned OFF) gives a perfect display. Turning ON the commands gives the issues. How to fix these ?
Code: Select all
\documentclass[11pt,twoside]{book}
\usepackage[total={6.25in,10in},left=1.25in,top=0.5in,includehead,includefoot]{geometry}
%\usepackage[pagestyles,medium]{titlesec}
%\titleformat*{\subsubsection}{\bfseries\sffamily}
%\usepackage{tocloft}
%\renewcommand{\cftsubsubsecfont}{\normalfont\sffamily\footnotesize}
\usepackage{hyperref}
\begin{document}
\frontmatter
\begin{titlepage}
\centering
\vfill {\Huge Some big title !} \vfill
\vfill Version 1.0
\end{titlepage}
\thispagestyle{empty}
{\centering\subsubsection*{Title of this small part}}
\noindent
Some simple text about the title page.
\pagestyle{plain}
\setcounter{tocdepth}{3}
\tableofcontents
\mainmatter
\chapter{Chapter title}
\section{Section title}
\subsection{Notion de variable}
Blabla
\subsection{Subsection title}
Blablabla
\subsubsection{Subsubsection title}
Blablabla
\subsection{Subsection title}
Blablabla
\subsubsection{Subsubsection title}
Blablabla
\subsubsection{Subsubsection title}
Blablabla
\subsection{Subsection Title}
Blablabla
\subsubsection{Subsubsection title}
Blablabla
\subsubsection{Subsubsection title}
Blablabla
\subsubsection{Subsubsection title}
Blablabla
\subsection{Subsection Title}
Blablabla
\subsection{Subsection Title}
Blablabla
\end{document}