Rich Shepard wrote:
On Tue, 29 Jun 2004, Juergen Spitzmueller wrote:
I just played around a bit. As \frontmatter sets the pagestyle accordingly, the following should work (i.e. works for me):
<title line>
\thispagestyle{empty} % needed for page 1
\pagestyle{empty}
<pretext>
\frontmatter
Juergen,
Yes, ... as long as I change to \pagestyle{headings} before the ToC.
The Layout->Document->Page style was "default", but that didn't tell me what default was. As soon as I put \pagestyle{empty} after the title _all_ pagination was removed. I took a guess and changed the layout page style to 'headings' and that restored the page numbers and headings as they were before.
Why does the explicit \pagestyle{empty} fix the problem when \thispagestyle{empty} was not sufficient by itself?
\thispagestyle sets the style for this page only, it might not do anything for the next page. Its intended use is when you occationally need a single page with a different style.
\pagestyle sets the style to be used for pages from now on and until the next style command.
Note that several other commands affect the pagestyle. For any book-like document, expect any chapter start (including special chapters like preface and TOC) to use some special "first page of chapter" style on the first page, and then reset the pagestyle to "normal" after the initial page. This is why preface and TOC brought the numbering back.
You can deal with this in several ways: * redefine the normal pagestyle to something not include numbers * repeat styling commands after each "chapter" start. * \thispagestyle on _every_ page
Helge Hafting
