7

For my thesis, I need to include a chapter which can "stand alone", meaning it must be formatted in a way that allows the pages to be exported and be published separately.

This means, I need to get rid of the header and footer on these pages. I tried using

\thispagestyle{empty}

and it works as expected, but I don't want to set it manually for each page in my chapter.

Is there a way to extend this command to spread to all pages in the current section or is there another way to achieve my goal?

11

Use \pagestyle{empty} at the chapter start and switch back to \pagestyle{<normalstyle>} at the start of the next chapter. (<normalstyle> stands, e.g., for headings in the book class or for fancy if you use the fancyhdr package.)

In addition, it is necessary to set \thispagestyle{empty} at the chapter start in order to override the starting page's internal plain style.

\documentclass{book}

\usepackage{lipsum}

\begin{document}

\chapter{bla}

\lipsum[1-12]

\chapter{blubb}
\thispagestyle{empty}
\pagestyle{empty}

\lipsum[1-12]

\chapter{foo}
\pagestyle{headings}

\lipsum[1-12]

\end{document}
  • perfect. I tried these two commands only separately before, but the combination works perfectly. Thank you! – Dan Soap Oct 8 '11 at 21:23

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.