Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Latex: Page number suppressing when a figure covers the whole page [closed]

I want to suppress page number in a page where a figure covers the whole page.

\thispagestyle{empty}
\begin{figure}[H]
    \centering
    \fbox{\includegraphics[height=0.95\textheight]{853}}
    \caption{Whole Model Part 1}
    \label{fig:wholemodel}
\end{figure}

I use the command \thispagestyle{empty} as suggested. But this command doesn't work where a figure covers the whole page. Is there any alternative solution?

like image 440
Mert Nuhoglu Avatar asked Nov 04 '09 12:11

Mert Nuhoglu


People also ask

How do you fix page numbers in latex?

Book class: using two styles of page number The commands that control the page numbering are: \frontmatter : Pages after this command and before the command \mainmatter , will be numbered with lowercase Roman numerals.

How do I suppress page numbers in latex?

To suppress page numbers on a single page, use \thispagestyle{empty} somewhere within the text of the page. Note that, in the standard classes, \maketitle and \chapter use \thispagestyle internally, so your call must be after those commands.

What is Pagenumbering gobble in latex?

After YAML, my code starts with a latex script \pagenumbering{gobble} which removes all the page numbers unless stated otherwise. On the new page, the introduction page, I use \pagenumbering{arabic} to start the page numbering. Below is how the new title page and the new first page look like.

How do I force a figure to the top of a page in latex?

You can insert a pagebreak via \clearpage or \newpage , then use the t option on the figure environment: ... \clearpage \begin{figure}[t!]


1 Answers

I believe you need the floatpag package. In preamble put:

\usepackage{floatpag}
\floatpagestyle{empty}

\thisfloatpagestyle{} inside a figure/table environment will alter that floatpage's style. Hope that works!

PS: the help shown by "$ texdoc floatpag" appears to be in Polish. Look at the .sty file for usage in English. floatpag.sty on CTAN

like image 55
Rupert Nash Avatar answered Nov 11 '22 17:11

Rupert Nash