[texhax] Suppressing page numbering on a page
Morten Høgholm
moho01ab at student.cbs.dk
Mon Jul 5 12:10:03 CEST 2004
On Mon, 05 Jul 2004 19:16:06 +1000, Ian Watson <i.watson at econ.usyd.edu.au>
wrote:
> Dear Tex List,
>
> I have tried the \thispagestyle{empty} in a Latex document (article
> class) in order to prevent the page number overtyping a largish
> table on that page.
>
> Unfortunately, it has not worked. Is this because I am using a table
> environment (with tabularx inside)? Are there other ways to suppress
> page numbering just for a particular page?
>
> Any advice would be most appreciated.
The fancyhdr package provides tools for solving this problem and the
documentation comes with many examples. Below is a short demonstration:
\documentclass{article}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand\headrulewidth{0pt}
\cfoot{\iffloatpage{}{\thepage}}
\begin{document}
Here's a little text before we get to the table. The table is
forced on a page of its own with the \texttt{p} specifier.
\begin{table}[p]
\centering
\rule{5cm}{10cm}
\caption{Rules rule!}
\end{table}
\end{document}
--
Morten Høgholm
More information about the texhax
mailing list