1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
<head>
<title>UK TeX FAQ -- question label reallyblank</title>
</head><body>
<h3>Really blank pages between chapters</h3>
<p><i>Book</i> (by default) and <i>report</i> (with <code>openright</code> class
option) ensure that each chapter starts on a right-hand (recto) page;
they do this by inserting a <code>\</code><code>cleardoublepage</code> command between
chapters (rather than a mere <code>\</code><code>clearpage</code>). The empty page thus
created gets to have a normal running header, which some people don't
like.
<p>The (excellent) <i>fancyhdr</i> manual covers this issue, basically
advising the creation of a command <code>\</code><code>clearemptydoublepage</code>:
<pre>
\let\origdoublepage\cleardoublepage
\newcommand{\clearemptydoublepage}{%
\clearpage
{\pagestyle{empty}\origdoublepage}%
}
</pre>
The "obvious" thing is then to use this command to replace
<code>\</code><code>cleardoublepage</code> in a patched version of the <code>\</code><code>chapter</code> command.
(Make a package of your own containing a copy
of the command out of the class.) This isn't particularly difficult,
but you can instead simply subvert <code>\</code><code>cleardoublepage</code> (which isn't
often used elsewhere):
<pre>
\let\cleardoublepage\clearemptydoublepage
</pre>
Note: this command works because <code>\</code><code>clearemptydoublepage</code> uses a copy
of <code>\</code><code>cleardoublepage</code>: instructions on macro programming
<a href="FAQ-patch.html">patching techniques</a> explain the problem and
why this is a solution.
<p>Note that the <em>KOMA-Script</em> replacements for the
<i>book</i> amd <i>report</i> classes (<i>scrbook</i> and
<i>scrreprt</i> offers class options <code>cleardoubleempty</code>,
<code>cleardoubleplain</code> and <code>cleardoublestandard</code>
(using the running page style, as normal) that control the appearance
of these empty pages. The classes also offer do-it-yourself commands
<code>\</code><code>cleardoubleempty</code> (etc.). The <i>memoir</i> class
provides commands <code>\</code><code>cleartooddpage</code> and <code>\</code><code>cleartoevenpage</code>,
which both take an optional argument (the first, with no argument,
being an equivalent of <code>\</code><code>cleardoublepage</code>). One can achieve
'special' effects by putting commands in the optional argument: the
<code>\</code><code>clearemptydoublepage</code> we're after would be achieved by
<code>\</code><code>cleartooddpage[</code><code>\</code><code>thispagestyle{empty}</code><code>]</code>.
<dl>
<dt><tt><i>fancyhdr</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/fancyhdr.tar.gz">macros/latex/contrib/fancyhdr</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/fancyhdr.zip">zip</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/fancyhdr/">browse</a>)
<dt><tt><i>memoir.cls</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/memoir.tar.gz">macros/latex/contrib/memoir</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/memoir.zip">zip</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/memoir/">browse</a>)
<dt><tt><i>scrbook.cls, scrrept.cls</i></tt><dd>Part of <a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/koma-script.tar.gz">macros/latex/contrib/koma-script</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/koma-script.zip">zip</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/koma-script/">browse</a>)
</dl>
<p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=reallyblank">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=reallyblank</a>
</body>
|