Graphics, Figures & TablesLatex picture

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
ipmax
Posts: 5
Joined: Tue Feb 01, 2011 4:33 pm

Latex picture

Post by ipmax »

I used the following code to put a picture to my document

Code: Select all

\begin{figure}[htb]
   \centering
   \includegraphics[scale = 0.5]{documentation/meanstd_3.5_experiment.eps}
   \caption{Mean and Standard Deviation method with 3.5$\sigma$}
\end{figure}
However, this code puts the picture in random place. I want it exactly below my paragraph so that I can read the paragraph and see the picture. Now I have to scroll 5 pages down to see the picture though the text is at its place.

Could anyone help me?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

torbjorn t.
Posts: 162
Joined: Wed Jun 17, 2009 10:18 pm

Latex picture

Post by torbjorn t. »

Add

Code: Select all

\usepackage{float}
to your preamble, and use H as a float parameter, e.g.

Code: Select all

\begin{figure}[H]
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Latex picture

Post by localghost »

Before you try to solve the issue using the sledgehammer method with float, you should use other placement options for your floating objects (note the exclamation mark).

Code: Select all

\begin{figure}[!htb]
% float content
\end{figure}

Best regards and welcome to the board
Thorsten
Post Reply