In my thesis, I have defined some backmatter. When, I do this, the backmatter (e.g. summary) takes the chapter number from previous chapter. I do not want any chapter number in the header. But I want to leave the name of the backmatter, i.e. summary in the header as it is defined now.

The code is provided below - I did not include the details of individual chapter.

\usepackage[total={13cm,19.5cm},top=2.5cm,bottom=2.0cm,left=2.0cm,right=2.0cm, includefoot]{geometry} 
\usepackage{microtype}          % removes extra spacing between text
\pagenumbering{gobble}          % Remove page numbers in a section. The counting starts from Introduction
\usepackage{fancyhdr}           % fancy heading style in headers and footers
\usepackage{footnote}           % use with savenotes to show footnotes % footnotemark can be used when you have to use the same footnote twice (to avoid repetition)
\usepackage{graphicx}           % include graphs/ figures  in the file
\usepackage{setspace}           % to set the line spacing in the document
\usepackage{lscape}             % to write pages in landscape environment
\usepackage{threeparttable}     % to add footnotes to the tables
\usepackage{caption}    % to create some space between table caption and table, otherwise there was no space
\usepackage[normalem]{ulem}     % to underline the text
\usepackage{grffile}            % to avoid printing the figure name (or otherwise, give figure names without spaces)
\usepackage{float}              % figures as 6 (a), 6 (b) etc.
\setlength{\bibsep}{3.05pt}     % spacing between different references
\def\bibfont{\scriptsize}       % fontsize of the references

%---------------------To create fancy chapter title---------------%
  {\bfseries\Large}     % here change huge or large to get small or large fonts in chaptertitle
  {\filright\MakeUppercase{\chaptertitlename} \Large\thechapter}

%---------------------Document starts here---------------%
\begin{document}            % the document starts here!

%---------------------Table of contents---------------%
\begin{onehalfspacing}          % here doublespacing can be used. Adjust the margins of the page!
\setcounter{tocdepth}{0}        % to display a detailed table of contents with each subsection
%---------------------Adding space in the whole thesis---------------%
%\sectionfont{\noindent\fbox}  % makes a box around the section title.

%---------------------Headers, Footers and Page numbers---------------%
\renewcommand{\chaptermark}[1]{ \markboth{#1}{} }
\renewcommand{\headrulewidth}{0.4pt} %      % to add the top border
\fancyhead[LE]{Chapter \thechapter}


%---------------------Chapters in the thesis---------------%


%---------------------Chapters in the thesis---------------%


  • Thanks for "not including the individual chapters"; in the future, add the lipsum package and use \chapter{name}\lipsum[1-50] to generate some dummy text for a number of chapters. Alternatively, use the blindtext package together with \blinddocument. – Werner Mar 8 '15 at 14:38

Since you already define the \chaptermark to condition on whether or not you're in the main matter (leaving out the prefix Chapter \thechapter conditionally), it seems sufficient to use


which clears the Left header on Even page from the phrase Chapter \thechapter.

  • I edited my question and the code. For some reason, the solution you provided, changed the header of the whole thesis and not only the backmatter. – abhishek Mar 8 '15 at 14:59
  • @abhishek: I suggested you place the \fancyhead update after \backmatter. It will only affect the output from then onward. Your code edit removed \sectionmark and \chaptermark entirely... I don't understand why you did that? My mention of "seems sufficient to use" implied that you use my suggestion in addition to your existing \chaptermark. – Werner Mar 8 '15 at 15:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.