\section{section}
\subsection{subsection}
\subsubsection{subsubsection}
\paragraph{paragraph}
\subparagraph{subparagraph}
Outcome:
Why in table of content or text as
1.1.1.1.1 subparagraph
I am using document class:
\documentclass[12pt,oneside]{book}


tocdepthdetermines the level down to which sectioning depth entries are shown in the Table of Contents. Its defalt value is usually set by the document class. Do please tell us which document class you employ. – Mico Aug 18 '19 at 20:55\documentclass[12pt,oneside]{book}, let me know is this the document class you mean – aan Aug 18 '19 at 20:57\setcounter{tocdepth}{5}and\setcounter{secnumdepth}{5}. – aan Aug 18 '19 at 21:02