Page Layout ⇒ Remove page number from Part (book class)
-
- Posts: 2
- Joined: Sat Mar 21, 2009 7:45 pm
Remove page number from Part (book class)
I am using the book class, and I'm quite pleased with the standard headers using the myheadings style and markboth before each chapter. My book is coming along well, but I have one issue.
How do I remove the page number from the bottom of each Part section? I've tried the thispagestyle{empty} code, which works on other pages but not before Part. I know there's a command to turn them off in KOMA-script, but I'm on a roll with the book class and don't wish to change anything else.
Thanks for your time.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Remove page number from Part (book class)
this would be a straightforward way:
Code: Select all
\makeatletter
\renewcommand\part{%
\if@openright
\cleardoublepage
\else
\clearpage
\fi
\thispagestyle{empty}%
\if@twocolumn
\onecolumn
\@tempswatrue
\else
\@tempswafalse
\fi
\null\vfil
\secdef\@part\@spart}
\makeatother
-
- Posts: 2
- Joined: Sat Mar 21, 2009 7:45 pm
Re: Remove page number from Part (book class)
Yes! It worked! Thank you so much.
