I want to enumerate the manually added items in the table of contents. Also the items are not a section or a subsection or a chapter, they are like definition or a example which I added in the toc and want them to enumerated. For manual addition, I followed the answer. But the problem is that the items are not enumerated.
Is it possible to enumerate without adding them as a section or chapter or like that in the document ? Thank you.
Edit This is the MWE, I am using :
\documentclass{book}
\newtheorem{defn}{Definition}
\newtheorem{Example}{Example}
\begin{document}
\tableofcontents
\chapter{}
\section{section 1}
\Example this is the example.
\addcontentsline{toc}{chapter}{Example}
\chapter{}
\section{section 1}
\defn this is a definition.
\addcontentsline{toc}{chapter}{Definition}
\section{section 2}
\Example this is another example.
\addcontentsline{toc}{section}{Example}
\end{document}
I want the Example in the toc to be enumerated and the Example under 2nd chapter and 2nd section to be the same. Also for the Definition.

\setcounter{tocdepth}{3}. You can create fake subsubsections etc. using\addcontenetsline. – John Kormylo Jul 09 '18 at 00:49