GeneralCan't suppress page number on certain page

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Winter Light
Posts: 6
Joined: Tue Aug 12, 2008 6:11 pm

Can't suppress page number on certain page

Post by Winter Light »

I'm a LaTeX newbie, so please be gentle.

I recently made some changes to my title page and can't seem to suppress the page number.

Code: Select all

\pagesyle{empty}
works fine but affects the rest of the document.

Code: Select all

\thispagestyle{empty}
doesn't do a thing, despite working every other time I've needed it.

What am I missing?

I'd appreciate any help.

Thanks.
title-page.tex
(628 Bytes) Downloaded 225 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Can't suppress page number on certain page

Post by Stefan Kottwitz »

Hi Winter Light,

welcome to the board!
The title page could be too high, depending on your other settings. Check if you get a warning Overfull \vbox. With the default settings of the report class for example it would be sufficient to remove the line 8:

Code: Select all

%\vspace*{\baselineskip}
After the height is corrected \thispagestyle{empty} should work like desired.

Stefan
LaTeX.org admin
Winter Light
Posts: 6
Joined: Tue Aug 12, 2008 6:11 pm

Can't suppress page number on certain page

Post by Winter Light »

Stefan_K wrote:Hi Winter Light,

welcome to the board!
The title page could be too high, depending on your other settings. Check if you get a warning Overfull \vbox. With the default settings of the report class for example it would be sufficient to remove the line 8:

Code: Select all

%\vspace*{\baselineskip}
After the height is corrected \thispagestyle{empty} should work like desired.

Stefan
Thanks for the welcome and the tip! That solved my problem exactly.
User avatar
T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

Re: Can't suppress page number on certain page

Post by T3. »

I was just going to suggest the same as Stefan. Let me just add that in the future you should provide a complete minimal example (with all the necessary packages in the preamble and so on) and not just a fragment of your document, because the problem might be actually in some other part of your document (like misconfigured package). It's also less tedious to compile your example if it doesn't require to write some boiler-plate code.

Cheers,

Tomek
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Can't suppress page number on certain page

Post by gmedina »

As a supplement to Tomek's suggestion, here you can find information about building a minimal working example.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Can't suppress page number on certain page

Post by Stefan Kottwitz »

Hi,

I agree with Tomek, I just want to give you a link to a website that explains some reasons and provides helpful information about how to create a minimal working example: What are these minimal working examples. It may help if you should encounter new problems, with an MWE we could provide advice more efficiently.
edit: gmedina wrote faster, but I think I'll keep my posting this time.

Stefan
LaTeX.org admin
Winter Light
Posts: 6
Joined: Tue Aug 12, 2008 6:11 pm

Can't suppress page number on certain page

Post by Winter Light »

gmedina wrote:As a supplement to Tomek's suggestion, here you can find information about building a minimal working example.
I see your point and apologize for the error.

I'm a writer learning LaTeX to get a job done, rather than someone who is learning LaTeX because it's their job. I am particularly prone to mistakes at the moment. Sorry.
User avatar
T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

Can't suppress page number on certain page

Post by T3. »

Winter Light wrote:I see your point and apologize for the error.
There's no need to apologize. Just keep it in mind for the future.

Cheers,

Tomek
Post Reply