Graphics, Figures & Tables ⇒ text coming before tables and images
-
- Posts: 1
- Joined: Wed Sep 16, 2009 1:59 am
text coming before tables and images
here's where I write a paragraph of text #1
here's a table
here's paragraph of text #2
when I typeset that, it comes up:
paragraph #1
paragraph #2
table
does anyone know how I can fix this? thank you.
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
text coming before tables and images
There's really nothing to fix; I mean, that behaviour is not really a problem; it's one of the useful characteristics of (La)TeX. Some objects float.skibbereen wrote:...does anyone know how I can fix this? thank you.
Here you can read a brief description:
TeX FAQ - Moving tables and figures in LaTeX.
In that page you will find a link that explains how to prevent figures and tables from floating.
Here you can also find some useful advise:
Prevent floating of figures or tables - TeXblog
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
text coming before tables and images
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{blindtext}
\begin{document}
\blindtext
\begin{figure}%[!ht] % <--- try these options by uncommenting them
\centering
\rule{6.4cm}{3.6cm}
\caption{Dummy figure}\label{fig:dummy}
\end{figure}
\blindtext
\end{document}
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10