TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How to remove head- and footlines for pages between chapters?

With the code below you can clear the footer of blank pages.

\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else

Is there any package or other commands that decrease this code?

share|improve this question

marked as duplicate by egreg, Werner, Lev Bishop, doncherry, lockstep Oct 30 '11 at 10:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Is this a duplicate of tex.stackexchange.com/q/1681/627 . Does \usepackage{emptypage} not do what you want? – Lev Bishop Oct 7 '11 at 20:54
up vote 5 down vote accepted

There are some unnecessary spacing and boxing in the definition of \cleardoublepage. This is a tad shorter:

\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else

However, if you know the setup of your document, you can remove many of the conditional statements, since they add a majority of the code. The reason for this is because the command is made to accommodate general document setup rather than be specific to one instance. To that end, if you're typesetting a book that uses the twoside option, you could just as well use


And, if you don't enjoy the @ symbol (which brings with it \makeatletter and \makeatother), you could also use

share|improve this answer
All answers were good, but the smallest of them turned out to be Lev Bishop \usepackage{emptypage}. Thank you all for your help. – Regis da Silva Oct 8 '11 at 2:08

this code, from the ams document classes, works perfectly well there to overwrite a substandard version from an old version of latex:


of course, in a document preamble you'd need \makeatletter .... \makeatother.

share|improve this answer

I'm using:


arguably less involved than the \AtBeginDocument approach, but yet careful enough so as to save the previous definition :)

share|improve this answer

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