Graphics, Figures & TablesHow to get rid of page numbers in a sidewaystable?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Pawel
Posts: 9
Joined: Fri Jul 25, 2008 9:51 am

How to get rid of page numbers in a sidewaystable?

Post by Pawel »

Hi All

I have a large sidewaystable in my document, which takes up the whole page:

Code: Select all

\begin{sidewaystable}
\hspace*{-3.3cm}\includegraphics[width=1.35\textheight,height=0.8\textwidth]{SSMomFit}
\caption{Big Table} 
\end{sidewaystable}
I would like to get rid of the page number on that page only...

I've tried:

Code: Select all

\pagestyle{empty}
\thispagestyle{empty}
\pagenumbering{gobble}
but these don't seem to do the trick... (I can get rid of page numbers in the entire document using them, but that's not what I'm trying to do).

I think I could probably get rid of it using the fancyhdr package and the:

Code: Select all

\iffloatpage{value for float page}{value for other pages} 
(I haven't tried this but I'm afraid it would get rid of numbers from all my 'float' pages, which I don't want...). The other alternative I'm looking at is using Acrobat or photoshop to manually delete the number (yes I'm desperate ;-)).

There must be an easier way, right?

Thanks in advance
Pawel

Recommended reading 2024:

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

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

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

How to get rid of page numbers in a sidewaystable?

Post by gmedina »

Hi,

add \clearpage commands right before and after the sidewaystable:

Code: Select all

\documentclass{book}
\usepackage{rotating}
\usepackage{lipsum}% just to generate text automatically

\begin{document}

\lipsum[1-4]
\clearpage
\thispagestyle{empty}
\begin{sidewaystable}
  \centering
  \rule{6cm}{5cm}% to simulate an actual table
  \caption{Big Table}
\end{sidewaystable}
\clearpage
\lipsum[1-4]

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Pawel
Posts: 9
Joined: Fri Jul 25, 2008 9:51 am

Re: How to get rid of page numbers in a sidewaystable?

Post by Pawel »

Works like magic!!!

Thank you very much for your help.

Pawel
Post Reply