summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-nopageno.html
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-10-09 22:55:11 +0000
committerKarl Berry <karl@freefriends.org>2009-10-09 22:55:11 +0000
commit4be9896a3192173699de340a9f0475654efedb3a (patch)
treeda0e954012cd781f875c761c42f6a76e50e2f272 /Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-nopageno.html
parentbd1227ad4919d2fbe17d63213bf48542f9c36f38 (diff)
faq 3.19a update (9oct09)
git-svn-id: svn://tug.org/texlive/trunk@15725 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-nopageno.html')
-rw-r--r--Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-nopageno.html73
1 files changed, 49 insertions, 24 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-nopageno.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-nopageno.html
index 91dfc3e326e..c5abfd37492 100644
--- a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-nopageno.html
+++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-nopageno.html
@@ -2,49 +2,74 @@
<title>UK TeX FAQ -- question label nopageno</title>
</head><body>
<h3>How to get rid of page numbers</h3>
-<p/>The package <i>nopageno</i> will suppress page numbers in a whole
-document.
-<p/>To suppress page numbers from a single page, use
-<code>\</code><code>thispagestyle{empty}</code> somewhere within the text of the
-page. (Note that <code>\</code><code>maketitle</code> and <code>\</code><code>chapter</code> both use
-<code>\</code><code>thispagestyle</code> internally, so you need to call it after you&rsquo;ve
-called them.)
+<p/><p/>Very occasionally, one wants a document with no page numbers. For
+such occasions, the package <i>nopageno</i> will make
+<code>\</code><code>pagestyle{plain}</code> have the same effect as
+<code>\</code><code>pagestyle{empty}</code>; in simple documents, this will suppress
+all page numbering (it will not work, of course, if the document uses
+some other pagestyle than <code>plain</code>).
<p/>To suppress page numbers from a sequence of pages, you may use
<code>\</code><code>pagestyle{empty}</code> at the start of the sequence, and restore
the original page style at the end. Unfortunately, you still have to
-use <code>\</code><code>thispagestyle</code> after any <code>\</code><code>maketitle</code> or <code>\</code><code>chapter</code>
-command.
-<p/>In the <i>memoir</i> class, the troublesome commands (<code>\</code><code>maketitle</code>,
-<code>\</code><code>chapter</code>, etc.) invoke their own page style
-(<code>title</code>, <code>chapter</code>, etc.), which you may
-redefine using the class&rsquo;s own techniques to be equivalent to
-&ldquo;<code>empty</code>&rdquo;. The <i>KOMA-script</i> classes have
-commands that contain the page style to be used, so one might say:
+deal with the page numbers on pages containing a <code>\</code><code>maketitle</code>,
+<code>\</code><code>part</code> or <code>\</code><code>chapter</code> command, since the standard classes; deal
+with those separately, as described below.
+<p/>To suppress page numbers on a single page, use
+<code>\</code><code>thispagestyle{empty}</code> somewhere within the text of the
+page. Note that, in the standard classes, <code>\</code><code>maketitle</code> and
+<code>\</code><code>chapter</code> use <code>\</code><code>thispagestyle</code> internally, so your call
+must be <em>after</em> those commands.
+<p/>Unfortunately, <code>\</code><code>thispagestyle</code> doesn&rsquo;t work for <i>book</i> or
+<i>report</i> <code>\</code><code>part</code> commands: they set the page style (as do
+<code>\</code><code>chapter</code> commands), but then they advance to the next page so
+that you have no opportunity to change the style using
+<code>\</code><code>thispagestyle</code>. The present author has proposed solving the
+problem with the following &ldquo;grubby little patch&rdquo;, on
+<i>comp.text.tex</i>:
+<blockquote>
+<pre>
+\makeatletter
+\def\@endpart{\thispagestyle{empty}\sv@endpart}
+\makeatother
+</pre>
+</blockquote><p>
+<p/>Both the <i>KOMA-script</i> classes and <i>memoir</i> have separate
+page styles for the styles of various &ldquo;special&rdquo; pages, so, in a
+<i>KOMA</i> class document one might say:
<blockquote>
<pre>
\renewcommand*{\titlepagestyle}{empty}
</pre>
</blockquote><p>
+while <i>memoir</i> will do the job with
+<blockquote>
+ <code>\</code><code>aliaspagestyle{title}{empty}</code>
+</blockquote><p>
<p/>An alternative (in all classes) is to use the rather delightful
<code>\</code><code>pagenumbering{gobble}</code>; this has the simple effect that any
attempt to print a page number produces nothing, so there&rsquo;s no issue
about preventing any part of LaTeX from printing the number.
However, the <code>\</code><code>pagenumbering</code> command does have the side effect that
-it resets the page number (to 1), which may be undesirable.
-<p/>The <i>scrpage2</i> package separates out the representation from
-the resetting; so one can say
+it resets the page number (to 1), so it is unlikely to be helpful
+other than at the beginning of a document.
+<p/>The <i>scrpage2</i> package separates out the representation of the
+page number (it typesets the number using the <code>\</code><code>pagemark</code> command) from
+the construction of the page header and footer; so one can say
<blockquote>
<pre>
\renewcommand*{\pagemark}{}
</pre>
</blockquote><p>
-to have the same effect as the <code>gobble</code> trick, without
-resetting the page number.
+which will also suppress the printing of the page number.
+<p/>Neither of these &ldquo;suppress the page number&rdquo; techniques touches the
+page style in use; in practice this means they don&rsquo;t make sense unless
+you are using <code>\</code><code>pagestyle{plain}</code>
<dl>
-<dt><tt><i>nopageno</i></tt><dd><a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archivemacros/latex/contrib/carlisle/nopageno.sty">macros/latex/contrib/carlisle/nopageno.sty</a>
-<dt><tt><i>KOMA script bundle</i></tt><dd><a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/koma-script.zip">macros/latex/contrib/koma-script</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/koma-script/">browse the directory</a>)
-<dt><tt><i>memoir.cls</i></tt><dd><a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/memoir.zip">macros/latex/contrib/memoir</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/memoir/">browse the directory</a>)
-<dt><tt><i>scrpage2.sty</i></tt><dd>Distributed as part of <a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/koma-script.zip">macros/latex/contrib/koma-script</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/koma-script/">browse the directory</a>)
+<dt><tt><i>fancyhdr.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/fancyhdr.zip">macros/latex/contrib/fancyhdr</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/fancyhdr/">browse the directory</a>)
+<dt><tt><i>KOMA script bundle</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/koma-script.zip">macros/latex/contrib/koma-script</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/koma-script/">browse the directory</a>)
+<dt><tt><i>memoir.cls</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/memoir.zip">macros/latex/contrib/memoir</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/memoir/">browse the directory</a>)
+<dt><tt><i>nopageno.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/carlisle/nopageno.sty">macros/latex/contrib/carlisle/nopageno.sty</a>
+<dt><tt><i>scrpage2.sty</i></tt><dd>Distributed as part of <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/koma-script.zip">macros/latex/contrib/koma-script</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/koma-script/">browse the directory</a>)
</dl>
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=nopageno">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=nopageno</a>
</body>