Code: Select all
\chapter*{Foreword}
Code: Select all
\addcontentsline{toc}{chapter}{Foreword}
Code: Select all
\renewcommand{\chaptermark}[1]{\markright{\MakeUppercase{#1}}}
\newcommand{\headerfmt}[1]{\textsl{\textsf{#1}}}
\newcommand{\headerfmtpage}[1]{\textsf{#1}}
\fancyhf{}
\fancyhead[L,R]{\headerfmtpage{\thepage}}
\fancyhead[L]{\headerfmt{\rightmark}}
\fancyhead[R]{\headerfmtpage{\thepage}}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\fancypagestyle{plain}{
\fancyhf{}
\fancyhead[L,R]{\headerfmtpage{\thepage}}
\fancyhead[L]{\headerfmt{\rightmark}}
\fancyhead[R]{\headerfmtpage{\thepage}}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}}