Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer 1

up vote 11 down vote accepted

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}
share|improve this answer
    
perfect. I tried these two commands only separately before, but the combination works perfectly. Thank you! –  Dan Soap Oct 8 '11 at 21:23
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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