General ⇒ [SOLVED] Help on figure environment.
[SOLVED] Help on figure environment.
I have a document written as follow:
...
some text..
figure...
some text2..
figure2...
When i compile the document, i get:
some text..
some text2..
figure...
figure2...
i know that i got this because the space after my text can't hold the figure, but i dont want it to be filled with the other text, i just need it blank!
i messed up with the [htp] options, but il doesn't really help. The order in my document is really important, i want figure1 to figure directly after the text1.
How can i force LaTeX to really use the [h] option?
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
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
[SOLVED] Help on figure environment.
you could use the float package:
Code: Select all
\usepackage{float}
\begin{figure}[H]
...
\end{figure}
Code: Select all
\usepackage[labelfont=bf]{caption}
...
\begin{center}
\includegraphics{...}% whatever ...
\captionof{figure}{description}\label{fig:test}
\end{center}
Similare questions were posted to this forum before, the forum search function would lead you to more examples.
Stefan