In fact, I have a problem in the headers. In chapter 1 and 2 there are no problems everything is fine but in the table of contents, list of figures and list of tables there are no headers and in the introduction part it's displayed chapter 0. List of figures which doesn't make sense. Here is the code:
\immediate\write18{makeindex \jobname.nlo -s nomencl.ist -o \jobname.nls}
\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{lineno}
\usepackage{array}
\newcolumntype{L}{>{$}l<{$}}
\newcolumntype{m}{>{\displaystyle}l}
\usepackage{cclicenses}
\usepackage{makecell}
\usepackage{setspace}
\usepackage{titlesec}
\usepackage{lipsum}
\usepackage{nomencl}
\makenomenclature
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
\usepackage[justification=centering]{caption}
\usepackage{etoolbox}
\usepackage{titleps}
\newpagestyle{mystyle}{%
\headrule\sethead{\textsc \chaptername\ \thechapter. \textsc \chaptertitle}
{}{}
\setfoot{}{\thepage}{}\footrule}
\pagestyle{mystyle}
\usepackage[a4paper,right=20mm,left=25mm,top=20mm, bottom=20mm]{geometry}
\makeatletter
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titlespacing*{\chapter}{0pt}{0pt}{20pt}
\makeatother
\title {Tile of the report }
\titleformat{\paragraph}
{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titlespacing*{\paragraph}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\begin{document}
\renewcommand\arraystretch{1.3}
\doublespacing
\maketitle
\tableofcontents
\chapter*{Publications}
\chapter*{acknowledegement}
I want...
\chapter*{table list}
\listoffigures
\renewcommand{\nomname}{abbreviation list}
\printnomenclature
\chapter*{Introduction }
\lipsum
\chapter{state of art}
\lipsum
\chapter{theory}
\lipsum
\end{document}
\chaptername\ \thechapter. \textsc \chaptertitleshould probably beleftmark? – Johannes_B Mar 18 '18 at 11:36\leftmark. I didn't test your example, it is huge and does unnecessary stuff that has nothing to do with the problem. – Johannes_B Mar 18 '18 at 11:41\is missing there). UseAinstead ofB(A and B being the highlithed things). – Johannes_B Mar 18 '18 at 11:46titlesec/titlepsis precisely to avoid the hassle of the marks system. – Bernard Mar 18 '18 at 11:53\sethead{\leftmark}removes the head from the introduction page. Why? It is a starred chapter. The artifact you are seeing is gone. I cannot reproduce what you are describing. – Johannes_B Mar 18 '18 at 11:53plain). You would need to renew this pagestyle. – Johannes_B Mar 18 '18 at 12:37titleps? Or would an alternative package do? Personally i like scrlayer-scrpage. I cannot give a solution fortitleps, you would have to ask @Bernard about it. – Johannes_B Mar 18 '18 at 13:53