diff options
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.html | 76 |
1 files changed, 0 insertions, 76 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 deleted file mode 100644 index c74b86a241e..00000000000 --- a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-nopageno.html +++ /dev/null @@ -1,76 +0,0 @@ -<head> -<title>UK TeX FAQ -- question label nopageno</title> -</head><body> -<h3>How to get rid of page numbers</h3> -<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 -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’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 “grubby little patch”, on -<i>comp.text.tex</i>: -<blockquote> -<pre> -\makeatletter -\let\sv@endpart\@endpart -\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 “special” 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’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), 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> -which will also suppress the printing of the page number. -<p/>Neither of these “suppress the page number” techniques touches the -page style in use; in practice this means they don’t make sense unless -you are using <code>\</code><code>pagestyle{plain}</code> -<dl> -<dt><tt><i>fancyhdr.sty</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/contrib/fancyhdr.zip">macros/latex/contrib/fancyhdr</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/fancyhdr/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/fancyhdr.html">catalogue entry</a> -<dt><tt><i>KOMA script bundle</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/contrib/koma-script.zip">macros/latex/contrib/koma-script</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/koma-script/">browse the directory</a>) -<dt><tt><i>memoir.cls</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/contrib/memoir.zip">macros/latex/contrib/memoir</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/memoir/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/memoir.html">catalogue entry</a> -<dt><tt><i>nopageno.sty</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/contrib/nopageno.zip">macros/latex/contrib/nopageno</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/nopageno/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/nopageno.html">catalogue entry</a> -<dt><tt><i>scrpage2.sty</i></tt><dd>Distributed as part of <a href="http://mirror.ctan.org/macros/latex/contrib/koma-script.zip">macros/latex/contrib/koma-script</a> (or <a href="http://mirror.ctan.org/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> |