Page LayoutSuppress Page Number on certain Page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Suppress Page Number on certain Page

Post by localghost »

cgnieder wrote:Here is an idea that works: use the floatpag package and its macro \thisfloatpagestyle inside the sidewaystable:[…]
Smashing! This is the stuff I've been desperately searching for. I wasn't aware of floatpag. My approaches by fancyhdr (\iffloatpage) and titleps (psfloats option and \setfloatfoot) miserably failed.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Suppress Page Number on certain Page

Post by cgnieder »

localghost wrote:I wasn't aware of floatpag.
I only know it by chance and not for long, yet. I have put it on my “who knows when or if I might want to use it but it sounds interesting” list of packages :)
site moderator & package author
lynnlee
Posts: 50
Joined: Fri Jan 04, 2013 10:15 am

Re: Suppress Page Number on certain Page

Post by lynnlee »

Thanks a lot, cgnieder.

There is additional problem I find when I apply the code you suggested. Since the table I use is overfull, it occupies the full page and even bigger when use fancyhdr package,the header and footnotes of the table disappear. Any code can shrink the appearance size of the table, so that the header and the footnotes are preserved on the page? Any suggestion is appreciated.

Lynn
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Suppress Page Number on certain Page

Post by cgnieder »

lynnlee wrote:Any code can shrink the appearance size of the table
Well, you could put the table in a box (in the TeX sense) and scale that box down, but I don't think it will look good:

Code: Select all

\documentclass[a4paper,11pt]{article}
\usepackage{blindtext}
\usepackage{fancyhdr}

\usepackage{pdflscape}
\usepackage{rotating}
\usepackage{floatpag}

\usepackage{graphicx}

\begin{document}
\blindtext
\blindtext
\blindtext

\begin{sidewaystable}
\thisfloatpagestyle{empty}%

\scalebox{.7}{\begin{tabular}{|l|l|l|l|l|}\hline  
 & rep78 2  & rep78 3  & rep78 4  & rep78 5  \\ \hline  
headroom & 259.99458 & -366.52775 & -1375.5277 & 64.358897 \\ \hline 
trunk & -1301.6058 & 53.217457 & 107.68253 & 319.25439 \\ \hline 
weight & 14.888719 & 5.4869986 & 1.3003615 & 1.1344623 \\ \hline 
length & 288.29056 & -80.263554 & 64.18982 & 129.15974 \\ \hline 
turn & -1289.3648 & -21.576337 & -453.0486 & -85.001797 \\ \hline 
cons & -27358.645 & 5133.0408 & 10552.075 & -19494.267 \\ \hline 
\end{tabular}}

\end{sidewaystable}

\blindtext
\blindtext

\end{document}
Regards
site moderator & package author
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Suppress Page Number on certain Page

Post by localghost »

lynnlee wrote:[…] Any code can shrink the appearance size of the table, so that the header and the footnotes are preserved on the page? […]
There are some more set screws to reduce the size of the table.
  • Decrease of the font size.
  • Reduction of the separating space between columns by modification of the length \tabcolsep (default value 6pt).
  • Rearrangement of certain cell contents.
Specific help in this regard would require that you provide the code of the concerned table.
lynnlee
Posts: 50
Joined: Fri Jan 04, 2013 10:15 am

Re: Suppress Page Number on certain Page

Post by lynnlee »

Thank you, cgnieder and Thorsten. Your suggested codes work perfectly.

Lynn
Post Reply