Hm, no, unfortunately it didn't work.
I changed all "[h]s" to "[htbp]s" yet still the title of my second section is displayed on the bottom of my 1st page.
As for floating, I figured I had to use it, otherwise there were no spaces between the diagrams and it just looked ugly. The commands for breaking lines or creating blank vertical spaces ("\\", "\newline", "vspace{12pt}", etc.) didn't want to work and I accidentally noticed that using figures seem to fix it.
But this impression lasted only till I tried to include section in my document.
What's curious, the example from the popular TikZ and PGF Manual by Till Tantau doesn't work inside inside the figure environment either (at least not within my document, if I put it only this piece of code into a new document without other graphics it's OK).
Here's the code:
Code: Select all
\section{Parallel lines and angles}
\begin{figure}[htbp]
\begin{tikzpicture}
\draw[fill=yellow] (0,0) -- (60:.75cm) arc (60:180:.75cm);
\draw(120:0.4cm) node {$\alpha$};
\draw[fill=green!30] (0,0) -- (right:.75cm) arc (0:60:.75cm);
\draw(30:0.5cm) node {$\beta$};
\begin{scope}[shift={(60:2cm)}]
\draw[fill=green!30] (0,0) -- (180:.75cm) arc (180:240:.75cm);
\draw (30:-0.5cm) node {$\gamma$};
\draw[fill=yellow] (0,0) -- (240:.75cm) arc (240:360:.75cm);
\draw (-60:0.4cm) node {$\delta$};
\end{scope}
\begin{scope}[thick]
\draw (60:-1cm) node[fill=white] {$E$} -- (60:3cm) node[fill=white] {$F$};
\draw[red] (-2,0) node[left] {$A$} -- (3,0)
node[right]{$B$};
\draw[blue,shift={(60:2cm)}] (-3,0) node[left] {$C$} -- (2,0)
node[right]{$D$};
\draw[shift={(60:1cm)},xshift=4cm]
node [right,text width=6cm,rounded corners,fill=red!20,inner sep=1ex]
{
When we assume that $\color{red}AB$ and $\color{blue}CD$ are
parallel, i.\,e., ${\color{red}AB} \mathbin{\|} \color{blue}CD$,
then $\alpha = \delta$ and $\beta = \gamma$.
};
\end{scope}
\end{tikzpicture}
\end{figure}
However, my intention is to include such graphs into my fairly long article with lots of other diagrams. I don't want them to overlap or be too close to each other and I do want them to be separated by sections depending on their theme.