> >>>>> "Bruce" == Bruce Momjian <[EMAIL PROTECTED]> writes:
>
> Bruce> Is there a way to not print a page number on the first page
> Bruce> without having to use \thispagestyle{empty} _after_ the call to
> Bruce> \maketitle?
>
> Bruce> I ask this because I use LyX, and if I can get some code I can
> Bruce> put it in the default preamble, and not have to put it after
> Bruce> every title in every document.
>
> Maybe something like
> \AtBeginDocument{\thispagestyle{empty}}
>
> I'm not at all sure it works...
Sorry, doesn't work. I read the LaTeX FAQ(item attached), and it said
that \maketitle resets the \thispagestyle, even if the value of
\thispagestyle is {empty}.
I write lots of 1-2 page documents, so having a page number 1 looks kind
of strange. troff supressed it, and I had hoped LaTex would do the
same.
I fact, in native LaTeX, the additional reset of the \thispagestyle is
just another line of LaTex, while in LyX, the red code looks kind of
strange.
Suppose I will keep the \usepackage{nopageno}. Looks like a bad LaTeX
design decision.
---------------------------------------------------------------------------
31) In LaTeX, I used \pagestyle{empty}, but the first page is still
numbered. What do I do?
If you see this, you are using the \maketitle command too. This is
not a bug but a feature! The standard LaTeX styles are written so
that initial pages (pages containing a \maketitle, \part, or \chapter)
have a different page style than the rest of the document. Hence, the
above commands internally issue a \thispagestyle{plain}. This is
usually not acceptable behavior if the page style is `empty'.
Possible workarounds include:
- Put \thispagestyle{empty} immediately after the \maketitle command,
with no blank line between them.
- Use fancyheadings.sty, available from any CTAN (see question 22).
In this style, the style for initial pages can be customized as well.
--
Bruce Momjian | http://www.op.net/~candle
[EMAIL PROTECTED] | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026