The header will comprise the title of the report. On every odd page will appear the title of the report while on the even pages the title of the chapter will be mentioned. The first page of every chapter shall not carry the header.
I've been trying to do this but the only the title appears on all pages
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.
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.
I have tried your code and it runs perfectly but I actually want it in the report form.
How can I achieve the same header format with the following document class:
\documentclass[11pt,a4paper]{report}
This mimics the default behaviour of the »report« class.
The »report« class doesn't define the commands \frontmatter, \mainmatter and \backmatter. You would need to do this subsequently for a document with the »report« class. With the additional option as shown above the »book« class almost behaves like the »report« class. For a single-sided document add oneside to the option list.
Your demands say that you have to set up a document with double-sided page layout. Otherwise there would be no odd or even pages (it's not about the numbering). Or did I misunderstand something? So, remove the onesided option again (a silly suggestion of me).
Actually when I get the print of this document, the pages will not be in a book format. I would be using only one side of the paper for printing so I want my
Left margin = 1.5". This criteria does not hold for the book format.
komal wrote:[…] I would be using only one side of the paper for printing so I want my Left margin = 1.5". This criteria does not hold for the book format.
And how does the rest of the margins look like? And what is your paper format? A little bit more precision in your descriptions would be helpful. Take a look at the geometry package, which I already included in my sample code (but without options). It lets you specify a lot of parameters concerning page and paper dimensions.
I have set the margin using the command
\usepackage[top=1.5in, bottom=1in, left=1.5in, right=1in]{geometry}
in the previously posted code but it gives an error saying
Error: Option clash for package geometry.
komal wrote:Error: Option clash for package geometry.
it seems you're loading the geometry twice. Just check that and load it only once, with the desired settings. Options for geometry could also be set after loading by the command \geometry: