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.
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
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- 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.
