[Tex/LaTex] Change style of chapter headings in report class document

formattingnumberingreportsectioning

I'm using that kind of page numbering:

\documentclass[12pt,a4paper,twoside]{report}
\begin{document}
\part{Part name}
...
\chapter{Chapter name}
...
\section{Section name}
...
\subsection{Subsection name}
\end{document}

In chapter section it gives this result:

enter image description here

But I would like to achieve different chapter formatting, like this:

enter image description here

Is this is possible without changing the report class of the document?

Best Answer

-appearance titlesec

\documentclass{report}
\usepackage{titlesec}
  \titleformat{\chapter}[hang]
    {\normalfont\huge\bfseries}
    {\thechapter}{20pt}{\huge}

\begin{document}
\chapter{Chapter name}
...
\section{Section name}
...
\subsection{Subsection name}
\end{document}

output