everyone,
I'm using this particular type of header. I like it, except for the fact that it adds the expression 'Chapter #.', which is a nuisance. I don't want the expression because on the preface and acknowledgements of my thesis it says 'Chapter 0.' and in the conclusions it says 'Chapter 3.', though that section is not really a chapter. Do you have any ideas of how get ride of it?
\documentclass[12pt, letterpaper, twoside, openright]{book}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{fancyhdr}
\pagestyle{fancy}
\makeatletter
\DeclareRobustCommand{\format@sec@number}[2]{{\normalfont\upshape#1}#2}
\renewcommand{\chaptermark}[1]{%
\markboth{\format@sec@number{\ifnum\c@secnumdepth>\m@ne\@chapapp\ \thechapter. \fi}{#1}}{}}
\renewcommand{\sectionmark}[1]{%
\markright{\format@sec@number{\ifnum\c@secnumdepth>\z@\thesection. \fi}{#1}}}
\makeatother
\fancyhf{}
\fancyhead[RE]{\itshape\nouppercase{\leftmark}}
\fancyhead[LO]{\itshape\nouppercase{\rightmark}}
\fancyhead[LE,RO]{\thepage}
%\renewcommand{\headrulewidth}{1pt}
\begin{document}
\chapter{Introduction}
\blindtext
\blindtext
\blindtext
\section{subsection}
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext
\end{document}
Thanks!
fancyhdr
?\chapter*
. The*
form is conventionally used to suppress numbering of sectioning headers.