Graphics, Figures & Tables ⇒ Prevent Floats on top of first Page
-
- Posts: 26
- Joined: Mon Mar 09, 2009 3:19 pm
Prevent Floats on top of first Page
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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Prevent Floats on top of first Page
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
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. […]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10