Please get used to
always building a
minimal example that is compilable for everybody as provided. Otherwise it becomes difficult to give specific help. Especially when a problem is more complicated.
The code below merges the demands from another topic you initiated [1]. So it should cover all things that you requested. In case that you use another document class, please tell us. The same applies to modifications of the page styles.
Code: Select all
\documentclass[11pt,a4paper,english]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{geometry}
\usepackage[pagestyles,raggedright]{titlesec}
\usepackage{blindtext}
\author{Komal}
\title{The Title of the Document}
\makeatletter
\let\Title\@title
\let\Author\@author
\makeatother
\newpagestyle{front}{%
\sethead[\thepage][][\chaptertitle]{\Title}{}{\thepage}
\headrule
}
\newpagestyle{main}{%
\sethead[\thepage][][\thechapter\enspace\chaptertitle]{\Title}{}{\thepage}
\headrule
}
\newpagestyle{back}{%
\sethead[\thepage][][\chaptertitle]{\Title}{}{\thepage}
\headrule
}
\assignpagestyle{\chapter}{empty}
\begin{document}
\maketitle
\frontmatter
\pagestyle{front}
\tableofcontents
\listoffigures
\listoftables
\mainmatter
\pagestyle{main}
\blinddocument
\appendix
\blinddocument
\backmatter
\pagestyle{back}
\begin{thebibliography}{9}
\bibitem{key} Bibliography Item
\end{thebibliography}
\end{document}
For details study the manuals of the involved packages, especially that of the
titlesec package, which here is responsible for the different page styles. As always, the
blindtext package is only for creating dummy text, thus not part of the solution.
[1] View topic:
customized page numbers
Thorsten