Graphics, Figures & TablesPrevent Floats on top of first Page

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jazzgossen
Posts: 26
Joined: Mon Mar 09, 2009 3:19 pm

Prevent Floats on top of first Page

Post by jazzgossen »

Is there a way to prevent floats at the top of the first page of a document (or the first page of a chapter), other than moving the float environment to later in the document, or giving it a [p] placement, etc?

Ideally, I'd like a way to specify in the document class not to have floats above the main heading.

I could use \afterpage{} on floats defined near the beginning of the document, but that doesn't seem to be a very elegant solution.

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
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Prevent Floats on top of first Page

Post by localghost »

Some how I can't comprehend the problem.

Code: Select all

\documentclass[11pt]{report}
\usepackage[T1]{fontenc}

\begin{document}
  \chapter{Foo}

    \begin{figure}[!ht]
      \centering
      \rule{3.2in}{1.8in}
      \caption{Dummy figure}\label{fig:dummy}
    \end{figure}
\end{document}
As always, you should clarify the issue by a minimal example.


Thorsten
jazzgossen
Posts: 26
Joined: Mon Mar 09, 2009 3:19 pm

Prevent Floats on top of first Page

Post by jazzgossen »

As always, you should clarify the issue by a minimal example.
Ah yes, good point... It appears that the problem has to do with the way \maketitle is defined in my documentclass.

Sorry for the noise.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Prevent Floats on top of first Page

Post by localghost »

jazzgossen wrote:[…] It appears that the problem has to do with the way \maketitle is defined in my documentclass. […]
Does the discussion end here or can we expect a minimal example with the class file attached?
Post Reply