Possible Duplicate:
How to influence the position of float environments like figure and table in LaTeX?
How does one manipulate the placement of figures within text? I can't seem to control which text appears before the diagram and which comes after.
Here is the sample code for my figure:
\begin{figure}
\begin{tikzpicture}
\matrix (m) [matrix of math nodes,row sep=0.5em,column sep=0.5em,minimum width=0.5em]
{
D1 & & F1 & & D2 \\
& \alpha & & \beta & \\
F2 & & & & F2 \\
& -\beta & & -\alpha & \\
D2 & & F2 & & D1 \\
};
\path[-] (m-1-1) edge [] node [] {} (m-5-5);
\path[-] (m-1-3) edge [] node [] {} (m-5-3);
\path[-] (m-3-1) edge [] node [] {} (m-3-5);
\path[-] (m-1-5) edge [] node [] {} (m-5-1);
\end{tikzpicture}
\end{figure}
Anyways I just need to learn how to control the placement insofar as before or after certain paragraphs, I don't care about any kind of strict control.
Is this something that is simple?
figureenvironment, your TikZ drawing is considered as a float and positioned according to the general rules for floats (see this post). In your case, your matrix should probably not be treated as a float. You could simply remove the\begin{figure}\end{figure}to make sure your picture appears at the same position as in the source. – Corentin Dec 01 '12 at 23:21