(Complete source code below.)
(Note: Not sure if I am using LaTeX or just TeX. I am editing with TeXworks, as TeXStudio was not rendering what I typed without +20 seconds of lag.)
I apologize if this question has already been asked. I searched tex.stackexchange.com, the internet, and the fancyhdr documentation, but could not find the solution.
Simply put, I used fancyhdr to setup headers, however the chapter pages are not displaying correctly, despite using fancyhdr to redefine the plain style.
The best clue I could get from the fancyhdr documentation was the following:
Another problem with the marks in the standard LATEX classes is that the higher level sectioning commands (e.g. \chapter) call \markboth with an empty right argument. This means that on the first page of a chapter (or a section in article style) the \rightmark will be empty. If this is a problem you must manually insert extra \markright commands or redefine the \chaptermark (\sectionmark) commands to issue a \markboth command with two decent parameters.
I am not clear how to implement this solution, despite many attempts.
In detail, this is what I am trying to do (the bold items are causing problems):
- Left Header: [Author's Name]
- Right Header: [Book Author's Name]>["Chapter"+Chapter#]>[Subsection Name]
- The same Header must show on all pages, including the chapter pages, and excluding the Table of Contents. [For solution, see egreg's response.]
- Subsections must not be automatically numbered, i.e., they must be "* commands".
- Subsections must appear in Table of Contents, despite being "* commands".
P.S. [Solved, see solution below:] Is there a way (1) to not have the subsections automatically numbered and (2) included in the Table of Contents, yet not have to input each subsection title three times? Just curious. See below:
\subsection*{Title of Subsection 3\markright{Title of Subsection 3}{}}
\addcontentsline{toc}{subsection}{Title of Subsection 3}
Solution #1 (Simplest):
In preamble, write \setcounter{secnumdepth}{1}.
Solution#2: In preamble, create a new command by writing:
\newcommand{\newsubsection}[1]{\subsection*{#1\markright{#1}}%
\addcontentsline{toc}{subsection}{#1}}
To save everyone some time compiling, on the left is the chapter page, and on the right shows what the chapter page header should look like this:

\documentclass{report}
% PACKAGES
\usepackage{fancyhdr}
\usepackage{lastpage} % Allows referencing of the last page to allow footer to read: "Page [Current page] of [Total number of pages]."
\usepackage{comment} % Allows comments of the type: \begin{comment}This text is commented out.\end{comment}
%\usepackage[colorlinks=true]{hyperref} % Turns table of contents and labels into clickable links. Commented out to speed up compiling.
\usepackage[T1]{fontenc} % Allows use of ">" symbol.
\usepackage{lmodern} %Not really sure what this is for.
% FORMATTING
% Header and Footer
\pagestyle{fancy}
% Allows calling chapter and section names in headers and footers.
\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter}{}}
\renewcommand{\subsectionmark}[1]{\markright{#1}{}}
% General Header and Footer
\lhead{\DocumentAuthor}
\chead{}
\rhead{\BookAuthor>\leftmark>\rightmark}
\lfoot{}
\cfoot{}
\rfoot{Page \thepage\ of \pageref{LastPage}}
% Chapter Header and Footer
\fancypagestyle{plain}{%
\lhead{\DocumentAuthor}
\chead{}
\rhead{\BookAuthor>\leftmark>\rightmark}
\lfoot{}
\cfoot{}
\rfoot{Page \thepage\ of \pageref{LastPage}}}
% Header/Footer Separation-line Width
\renewcommand\headrulewidth{0.5pt}
\renewcommand\footrulewidth{0.5pt}
\setlength\parindent{0pt} % Remove paragraph indentation.
% NAME AND CLASS SECTION
\newcommand{\DocumentAuthor}{Author Name}
\newcommand{\BookAuthor}{Book Author}
%DOCUMENT
\begin{document}
\tableofcontents{}
\thispagestyle{empty}
\chapter{Title of Chapter 1}
\section{Sample Problems}
\subsection*{Title of Subsection 1\markright{Title of Subsection 1}{}}
\addcontentsline{toc}{subsection}{Title of Subsection 1}
\pagebreak{}
\subsection*{Title of Subsection 2\markright{Title of Subsection 2}{}}
\addcontentsline{toc}{subsection}{Title of Subsection 2}
\subsection*{Title of Subsection 3\markright{Title of Subsection 3}{}}
\addcontentsline{toc}{subsection}{Title of Subsection 3}
\pagebreak{}
\subsection*{Title of Subsection 4\markright{Title of Subsection 4}{}}
\addcontentsline{toc}{subsection}{Title of Subsection 4}
\end{document}
\newcommand{\mysubsection}[1]{\subsection*{#1\markright{#1}{}}% \addcontentsline{toc}{subsection}{#1}}to your preamble and use\mysubsection{foo}as your only subsection command. For more information on this technique, you could start with section 6.1.1 of The Not So Short Introduction to LaTeX2ε, or look at the synopsis at section 13.1 of the unofficial LaTeX reference manual. – doncherry Oct 30 '12 at 06:05lmodernis a good choice for a font package. It loads the Latin Modern fonts, which are extremely similar to the Original Computer Modern fonts, but more extensive and technically superior. See http://tex.stackexchange.com/questions/1390/latin-modern-vs-cm-super (even thoughcm-superisn't the original CM fonts). – doncherry Oct 30 '12 at 06:07