Here is a complete example document with the desired formatting for the headings and a header added. The commented lines are only suggestions for other heading levels. The
setspace package provides appropriate line spacing.
Code: Select all
\documentclass[12pt,a4paper,twoside,english]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{geometry}
\usepackage[pagestyles]{titlesec}
\usepackage{blindtext}
\usepackage[onehalfspacing]{setspace}
\titleformat{\chapter}{\filcenter\normalfont\large\bfseries\MakeUppercase}{\thechapter.}{1em}{\large}
\titleformat{\section}{\filright\normalfont\normalsize\bfseries\MakeUppercase}{\thesection.}{1em}{\normalsize}
\titleformat{\subsection}{\filright\normalfont\normalsize}{\thesubsection.}{1em}{\normalsize}
%\titleformat{\subsubsection}{\filright\normalfont\normalsize}{\thesubsubsection.}{1em}{\normalsize}
%\titleformat{\paragraph}[runin]{\filright\normalfont\normalsize\slshape}{\theparagraph.}{1em}{\normalsize}
%\titleformat{\subparagraph}[runin]{\filright\normalfont\normalsize}{\thesubparagraph.}{1em}{\normalsize}
\titlespacing*{\chapter}{0pt}{50pt}{20pt}
\newpagestyle{main}{%
\headrule
\sethead[\thepage][][\thechapter.\quad\chaptertitle]{\thesection.\quad\sectiontitle}{}{\thepage}
}
\pagestyle{main}
\begin{document}
\blinddocument
\end{document}
As always, the packages
babel (with its global language option) and
blindtext are not part of the solution. They have only been used to create dummy text.