blob: eaf948013a45772ee6273e9a980926c1b9d3f95b (
plain)
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
54
55
56
57
58
59
60
61
|
<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>:
<blockquote>
<pre>
\let\origdoublepage\cleardoublepage
\newcommand{\clearemptydoublepage}{%
\clearpage
{\pagestyle{empty}\origdoublepage}%
}
</pre>
</blockquote><p>
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):
<blockquote>
<pre>
\let\cleardoublepage\clearemptydoublepage
</pre>
</blockquote><p>
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.).
<p>The <i>memoir</i> class (and the <i>nextpage</i> package)
provide 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>. The
commands will also serve if you want the surreal effect of “This page
intentionally left blank” in the centre of an otherwise empty page.
<dl>
<dt><tt><i>fancyhdr</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/fancyhdr.zip">macros/latex/contrib/fancyhdr</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/fancyhdr.tar.gz">gzipped tar</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.zip">macros/latex/contrib/memoir</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/memoir.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/memoir/">browse</a>)
<dt><tt><i>nextpage.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/misc/nextpage.sty">macros/latex/contrib/misc/nextpage.sty</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.zip">macros/latex/contrib/koma-script</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/koma-script.tar.gz">gzipped tar</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>
|