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.
Graphics, Figures & Tables ⇒ Prevent Floats on top of first Page
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Prevent Floats on top of first Page
Some how I can't comprehend the problem.
As always, you should clarify the issue by a minimal example.
Thorsten
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}
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 26
- Joined: Mon Mar 09, 2009 3:19 pm
Prevent Floats on top of first Page
Ah yes, good point... It appears that the problem has to do with the way \maketitle is defined in my documentclass.As always, you should clarify the issue by a minimal example.
Sorry for the noise.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Prevent Floats on top of first Page
Does the discussion end here or can we expect a minimal example with the class file attached?jazzgossen wrote:[…] It appears that the problem has to do with the way \maketitle is defined in my documentclass. […]
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10