Page LayoutRemove header only on a certain page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
ougka
Posts: 43
Joined: Wed Jan 19, 2011 5:02 pm

Remove header only on a certain page

Post by ougka »

Hello,

I have a certain formatting style for my thesis.

However, in my Abstract Section i want NOT to have a header and a page number at all (but I want to have it as an entry in my TOC). Therefore, I have done the following :

Code: Select all

\newpage
\thispagestyle{empty}
\addcontentsline{toc}{chapter}{\numberline{}Abstract}
\begin{center}
   \textbf{\huge Abstract}
\end{center}
The \thispagestyle{empty} clears the header and page number (which is in the header) but does it only for the first page of the abstract. How can I enforce this on the second page as well?

Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Remove header only on a certain page

Post by Stefan Kottwitz »

Use (also) \pagestyle{empty} before the abstract, afterwards you can call \pagtestyle{...} again for your standard document body page style.

Stefan
LaTeX.org admin
ougka
Posts: 43
Joined: Wed Jan 19, 2011 5:02 pm

Re: Remove header only on a certain page

Post by ougka »

Thanks for your answer Stafan.

This won't do the trick because I want to have no page style in a couple of sections which are not consequitive (e.g. abstract, declaration, references etc) and my original \pagestyle{fancy} format redeclares quite a few things (chaptermarks, sectionmrks, lhead, chead and many more). So it's troublesome to reset and set the pagestyle in a lot of places.

Isn't there a way to push the \thispagestyle{empty} for another page or a section?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Remove header only on a certain page

Post by Stefan Kottwitz »

ougka wrote:So it's troublesome to reset and set the pagestyle in a lot of places.
Why? Just write \pagestyle{fancy} at such places. The style is just once defined in the preamble, and can be activated later this way. You can easily switch between empty and fancy.

Stefan
LaTeX.org admin
ougka
Posts: 43
Joined: Wed Jan 19, 2011 5:02 pm

Re: Remove header only on a certain page

Post by ougka »

oooooh, yeah, I didn't know I could do that!

Thanks :D
Post Reply