Graphics, Figures & Tablespicture and text order mixing

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
skrat
Posts: 11
Joined: Fri Sep 05, 2014 5:22 pm

picture and text order mixing

Post by skrat »

Hi there,
I am completely fresh with LaTeX and I have a lot of questions. Luckily, google answers most of them but I have one that just.... -.-

LaTeX is mixing the order of text and implemented picture, and I have no idea why. The code is:

Code: Select all

texttexttexttexttexttext
\begin{figure}[ht]
	\centering
		\includegraphics{C:/Users/Mitja/Desktop/skica2.png}
	\caption{Skica poskusa z radijem elektrod}
	\label{fig:skica2}
\end{figure}\\
texttexttexttexttexttexttexttexttexttexttexttexttexttext
But what comes out is:
texttexttexttext
texttexttexttext
picture.

Loosing my mind here... -.-

Please help!

Recommended reading 2024:

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

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

picture and text order mixing

Post by Johannes_B »

This is a FAQ often coming from former W0rd users. If you are using a floating environment (figure) LaTeX puts the picture and it's caption on place where it best fits. This is the top or the bottom of a page by default. This is the standard in typesetting, as you would generate large holes in your text and it would look like something chopped the thing up in pieces.
Having said that, if you want to have your document look like that, do not use the floating environment. You can get a caption using package capt-of.

Please read some introductory material.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply