The chapter and section numbers are missing when I generate the output pdf. The problem goes away if I comment out the \usepackage{titlesec} line. However, I need the package for my document and cannot remove it.
I would like to have the chapter and section numbers in the document, and would appreciate it if someone could help me figure this out.
The basic code and output are below:
\documentclass[12pt]{report}
\usepackage{titlesec}
\begin{document}
\chapter{Chapter}
\section{Section}
\subsection{SubSection}
\section{Another Section}
\end{document}

\setcounter{tocdepth}(5)either at the end of the preamble or just before\tableofcontents. – barbara beeton Jun 17 '19 at 18:04pdflatex teston the commandline to generate the pdf file. Is there some issue with doing this? – Abhilash Jun 17 '19 at 18:15tlmgr info koma-scriptbut it just throws an error. I am still unable to generate the chapter and section numbers. – Abhilash Jun 17 '19 at 23:51titlesecis up to date. – Johannes_B Jun 18 '19 at 04:42titlesecpackage. I have updated my question to make the problem clear. I am usingtitlesec v2.10.1, which as far as I can tell, is a very recent version. – Abhilash Jun 18 '19 at 16:19