Here is my code:
\documentclass{article}
\usepackage{tikz}
\usepackage{hyperref}
\begin{document}
\section{Hello}
\subsection{Hello World}
\begin{figure}
\centering
\begin{tikzpicture}
\node[circle,draw=black,minimum size=5cm]{};
\end{tikzpicture}
\caption{Circle}
\label{fig}
\end{figure}
\pagebreak
\subsection{Hello Human}
Figure \ref{fig} demonstrates a large circle.
\end{document}
Here is how the first page of the output looks like:
The figure has floated to the top. Is there a way I can ensure that the figure remains below section 1.1 while still be able to generate captions with figure numbers automatically and use them for cross-referencing?
\begin{figure}[htb]... should help. – Zarko Nov 14 '17 at 09:53