1

I have two problems. 1.I would like to move the word Content on the top of the page. The word content is the table of content. 2. The second problem is regarding the space between each paragraph content. Now the number of subsection in the table of content sticks together with the title of the main section. How to separete them?enter image description here

\documentclass[10pt,a4paper,titlepage]{book} 
\usepackage[paperwidth=165mm, paperheight=238mm, left=2.5cm,right=2cm,top=2cm,bottom=2cm]{geometry}

\usepackage{tocloft}
\setlength{\cftbeforetoctitleskip}{5 pt}
\setlength{\cftaftertoctitleskip}{20 pt}
\renewcommand{\cfttoctitlefont}{\bfseries\Large} % Only large font
\setcounter{tocdepth}{3}

\renewcommand{\contentsname}{Table of contents}
\renewcommand{\cftsecfont}{\normalfont\bfseries}% titles in bold
\renewcommand{\cftsecpagefont}{\normalfont\bfseries}% page numbers in bold
\renewcommand{\cftdotsep}{1}
\renewcommand{\cftchapleader}{\bfseries\cftdotfill{\cftsecdotsep}}% dot leaders in bold

\begin{document}


\let\cleardoublepage\clearpage
\tableofcontents 

\newpage

\section{bla bla}
...
\subsection{bla bla}
\subsubsection{bla bla}

\section{bla bla}
\subsection{bla bla}
\subsubsection{bla bla}



\medskip


\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.