0

I am writing my thesis and on the abstract page, a header "CONTENT" is coming. I want to remove the header from that particular page.

1

If you want no header or footer use \pagestyle{empty}. After that page set it back to \pagestyle{fancy} or whatever you would like to have.

EDIT: better: If you want no header or footer on just one page use \thispagestyle{empty}. It is reset automatically after that page.

If you want to remove the header but keep a footer you can define a custom pagestyle:

\usepackage{fancyhdr}

% ----- header & footer -----
\newcommand{\header}{
    \renewcommand{\headrulewidth}{.4pt}%
    \fancyhead{}
    \fancyhead[c]{CONTENT}
}
\newcommand{\footer}{
    \renewcommand{\footrulewidth}{.4pt}%
    \fancyfoot{}
    \fancyfoot[r]{page~\thepage}
}

\newcommand{\noheader}{
    \renewcommand{\headrulewidth}{0pt}%
    \fancyhead{}
}
\newcommand{\nofooter}{
    \renewcommand{\footrulewidth}{0pt}%
    \fancyfoot{}
}


% ----- pagestyles -----
% pagestyle fancy
\header
\footer

% custom pagestyle
\fancypagestyle{abstract}{%
    \noheader%
    \footer%
}

% ----- set default pagestyle -----
\pagestyle{fancy}

Use the custom pagestyle with \thispagestyle{abstract}.

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.