I have 2 large table which the page number appears in the last row of them. So I decide to hide the page number while keeping heading.
I have tried \thispagestyle{empty} which also hide header as well. So How to hide specific page number?
Here is the code
\documentclass[MScThesis,twoside]{thesis}
\PrepareForMainContent
\pagestyle{ThesisPagestyle}
\begin{document}
\begin{table}[tbp]
\caption{action list}
\label{tbl:analysis1}
\centering
\scriptsize
\begin{tabular}{C{5cm}C{2cm}C{2cm}C{2cm}}
\toprule
%\hline \rowcolor[gray]{.7}
A & B& C \\
\midrule
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
\bottomrule
\end{tabular}
\end{table}
\begin{table}[tbp]
\caption{action list 2}
\label{tbl:analysis2}
\centering
\scriptsize
\begin{tabular}{C{5cm}C{2cm}C{2cm}C{2cm}}
\toprule
%\hline \rowcolor[gray]{.7}
A & B& C \\
\midrule
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
\bottomrule
\end{tabular}
\end{table}
\end{document}
Here are some commands from thesis.cls
\newcommand{\PrepareForMainContent}{\cleardoubleemptypage\pagestyle{ThesisPagestyle}\mainmatter%
\if@twoside%
\newpairofpagestyles{ThesisPagestyle}{
\lehead{\leftmark}\rohead{\rightmark}
\cefoot*{\pagemark}\cofoot*{\pagemark}
}\else%
\newpairofpagestyles{ThesisPagestyle}{
\lohead{\leftmark}\rohead{\rightmark}
\cofoot*{\pagemark}
}\fi
\enlargethispage{<len>}(specify a suitable<len>) for that page so it would shift the page number down into view? – Werner Feb 07 '18 at 16:31fancyhdrit is easy to define a page style that still keeps the header but drops the footer (i.e. the page number, in most cases) – Feb 07 '18 at 16:35\enlargethispage{2\baselineskip}. It depends on how much space you need. – Werner Feb 07 '18 at 19:20\afterpage{ \enlargethispage{-5\baselineskip} \begin{table}[tbp] ... \end{table }but the refrence to table is not compile correctly. – user3806649 Feb 07 '18 at 19:43thesis.cls. See How to set the page style on the page a particular float ends up on? – Werner Feb 07 '18 at 20:00thesis.cls... really? Which one of the 10000000 billion classes namedthesisis it? – Feb 07 '18 at 21:51