Discussion:
Suppressing page numbers on float pages
Andrew Clegg
2008-01-29 15:16:41 UTC
Permalink
Hi folks,

I hope this isn't a silly question, but I couldn't find an answer in
any of the usual sources, even though it must be quite common.

Is there a trick to suppressing the page number on a float page? I
can't make it work.

I have two large figures that LaTeX has put on a single page each,
consecutively -- call them pages 104 and 105. I need to get rid of the
page number on 104, because the figure's caption has nowhere else to
go but down there, but no matter where I put my \thispagestyle{empty},
it never affects either of the floats.

If I put it before, inside (!) or shortly after the definition of the
figure that's on 104, the page number on page 103 disappears instead,
and 104 stays. If I then gradually move it down the document, at a
certain point the gap 'jumps' and the number disappears from p. 106
instead. At no intermediate point does it affect 104 or 105. Is that
making sense?

I assume it's processing the thispagestyle before it moves the figures
around, and so generates new pages for them after that command has
taken effect in the wrong place. Any suggestions would be gratefully
received.

Cheers,

Andrew.
Lars Madsen
2008-01-29 16:07:34 UTC
Permalink
Post by Andrew Clegg
Hi folks,
I hope this isn't a silly question, but I couldn't find an answer in
any of the usual sources, even though it must be quite common.
Is there a trick to suppressing the page number on a float page? I
can't make it work.
I have two large figures that LaTeX has put on a single page each,
consecutively -- call them pages 104 and 105. I need to get rid of the
page number on 104, because the figure's caption has nowhere else to
go but down there, but no matter where I put my \thispagestyle{empty},
it never affects either of the floats.
If I put it before, inside (!) or shortly after the definition of the
figure that's on 104, the page number on page 103 disappears instead,
and 104 stays. If I then gradually move it down the document, at a
certain point the gap 'jumps' and the number disappears from p. 106
instead. At no intermediate point does it affect 104 or 105. Is that
making sense?
I assume it's processing the thispagestyle before it moves the figures
around, and so generates new pages for them after that command has
taken effect in the wrong place. Any suggestions would be gratefully
received.
which document class?

the memoir class has buildin features for specifying the pagestyle on
floatpages, but the standard classes does not.


/daleif
Andrew Clegg
2008-01-29 17:34:34 UTC
Permalink
Post by Lars Madsen
which document class?
the memoir class has buildin features for specifying the pagestyle on
floatpages, but the standard classes does not.
Ah, no, it's just a report. I'll have a look at that, thanks.

If it turns out that turning it into a memoir would mess lots of other
things up, do you think there's a way to hack around it somehow? PhD
deadline in a month, don't want to lose all my formatting now or
something.

Cheers,

Andrew.
debian
2008-01-29 20:50:31 UTC
Permalink
Post by Andrew Clegg
Ah, no, it's just a report. I'll have a look at that, thanks.
presumably \thispagestyle{empty} is no good to you ?

Joe.
Andrew Clegg
2008-01-30 11:05:03 UTC
Permalink
Post by debian
Post by Andrew Clegg
Ah, no, it's just a report. I'll have a look at that, thanks.
presumably \thispagestyle{empty} is no good to you ?
No, it's not, which I think was fairly clear from my original mail. It
doesn't work on float pages, at least not as standard in a report. The
number gets removed from the page before or after the float.

Thankfully several people have made some suggestions which I'll try
out and report back to the list for posterity.

Andrew.
Axel E. Retif
2008-01-30 06:30:49 UTC
Permalink
Post by Andrew Clegg
[...]
Is there a trick to suppressing the page number on a float page?
[...]
Post by Andrew Clegg
I assume it's processing the thispagestyle before it moves the figures
around, and so generates new pages for them after that command has
taken effect in the wrong place.
That's what I think.
Post by Andrew Clegg
Any suggestions would be gratefully
I use the package floatpag, like this in the preamble:

\usepackage{floatpag}
\floatpagestyle{empty}

You can even change individual pages with \thisfloatpagestyle{...}.

floatpag.sty has a brief introduction to its usage.


Best,

Axel
Donald Arseneau
2008-01-31 02:17:03 UTC
Permalink
Post by Axel E. Retif
Post by Andrew Clegg
Is there a trick to suppressing the page number on a float page?
Use one of the packages mentioned, or a document class (like memoir)
that supports it. This used to be quite frequently asked, so searching
"google groups" will give answers too.
Post by Axel E. Retif
\usepackage{floatpag}
\floatpagestyle{empty}
Good way.


There was some confusion about how to use \thispagestyle for
this purpose. Here's how; it is ad-hoc and meant for final
fix-ups before you submit. Don't worry about the appearance
while you are writing.

Where you declare the float (or in the text just before where the
float eventually gets placed) declare

\pagestyle{empty}
\thispagestyle{plain}% or "headings"... your regular page style

Then in the text on the page after the float placement, declare

\pagestyle{plain}
--
Donald Arseneau ***@triumf.ca
Andrew Clegg
2008-02-02 18:05:35 UTC
Permalink
Post by Axel E. Retif
\usepackage{floatpag}
\floatpagestyle{empty}
You can even change individual pages with \thisfloatpagestyle{...}.
This is just what I was after! Thanks.

I found this worked well in the preamble:

\usepackage{floatpag}
\floatpagestyle{plain}

So by default they had the same style as the other pages. Then I can
just turn off the ones that are too large.

Cheers,

Andrew.

Continue reading on narkive:
Loading...