General ⇒ Customizing \part
Customizing \part
I am trying to customize the format of the Part page. For each of my chapters I have:
\chapter{Chapter_Name}
\thispagestyle{empty}
\thispagestyle{fancy}
followed by my 'fancyheader' settings.
However regardless of me setting the \part{Part_Name} preamble to:
\part{Part_Name}
\thispagestyle{empty}
it always gives me the default 'plain' style with the numbers centred at the bottom of the page. Which looks nice, but unfortunately my guidelines state that each page must be numbered in the centre at the top of the page.
I'd be very grateful for any assistance!
Thanks!
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
Re: Customizing \part
Try the titlesec package, which lets you customise parts, chapters, etc. Btw, unless you have to do very special things with fancyheader, you should know that titlesec also has tools for customising headers and footers, and has a companion package called titletoc for customising table of contents, list of figures, .... Take a look at the doc.
Regards,
B.A.
Customizing \part
Code: Select all
\fancypagestyle{plain}{%
\fancyhf{} % clear all header and footer fields
\fancyhead[C]{\bfseries \thepage} % except the center
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
Of course, all the \thispagesyle commands after \chapter and \part become superfluous and should be removed.