2

My thesis is sectioned in Parts -> Sections -> Subsections.

Currently I am printing the part name on the header of each page. However, I would like to remove the header completely on the first page of each part.

My LyX preamble header definition:

\let\Oldpart\part
\newcommand{\parttitle}{}
\renewcommand{\part}[1]{\Oldpart{#1}\renewcommand{\parttitle}{#1}}

\fancyhead[LO,RE]{\slshape \parttitle}
  • Possible duplicate? tex.stackexchange.com/questions/23766/… – user13907 Apr 27 '13 at 23:09
  • I don't think so. I only want to remove the header, not header and footer, and it's not for the first page of the document, but for the first page of every part. – liarspocker Apr 27 '13 at 23:35
  • @user29762 Which document class are you using? – e-birk Apr 27 '13 at 23:56
  • 1
    @e-birk article – liarspocker Apr 28 '13 at 0:22
2

try

\renewcommand\part[1]{%
  \thispagestyle{plain}%
  \Oldpart{#1}\renewcommand{\parttitle}{#1}}
| improve this answer | |
1

My first solution would be to switch the document class from article to report (or derivates thereof). For a thesis or a similar large document, the class report has a more appropriate formatting. Especially, it puts each part title on a separate blank page, i.e., more or less what you want.

My second solution would be to use

\renewcommand{\part}[1]{\Oldpart{#1}\renewcommand{\parttitle}{#1}\thispagestyle{plain}}

You might need to precede each part with a page break.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.