Page LayoutOmit Page Number on Part Page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Stevenet
Posts: 13
Joined: Sun Oct 30, 2011 6:34 pm

Omit Page Number on Part Page

Post by Stevenet »

Hi,

I'm typesetting a book with 3 parts. At the part dedicated page, i need to omit the page number, only at this part title page. The

Code: Select all

\thispagestyle{empty}
seems to not clean the page number at footer.

Thank you for your time,

Steve,
Last edited by Stevenet on Mon Nov 07, 2011 9:35 pm, edited 1 time in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Omit Page Number on Part Page

Post by localghost »

Put this in the preamble of your document.

Code: Select all

\makeatletter
\renewcommand\part{%
  \if@openright
    \cleardoublepage
  \else
    \clearpage
  \fi
  \thispagestyle{empty}%   % default page style »plain«
  \if@twocolumn
    \onecolumn
    \@tempswatrue
  \else
    \@tempswafalse
  \fi
  \null\vfil
  \secdef\@part\@spart}
\makeatother

Thorsten
Stevenet
Posts: 13
Joined: Sun Oct 30, 2011 6:34 pm

Re: Omit Page Number on Part Page

Post by Stevenet »

Thank you! This is exactly what i need!

Best regards!

Steve,
Post Reply