I am using overleaf.
In the following code when I tried to write text , it appeared in frist page , while I want the text to be in 5th page or 6th page.
I tried commands as \pagebreak or \newpage but it didn't work.
\documentclass{article}
\usepackage{graphicx} % Required for inserting images
\usepackage{amsmath,amssymb,amsthm}
\newtheorem{theorem}{Theorem}
\theoremstyle{definition}
\newtheorem{definition}{Definition}
\newtheorem{question}{Question}
\title{Project 02}
\author{Mahmoud}
\date{\today}
\begin{document}
\maketitle
\begin{question}
Sketch the directed and undirected power graphs of finite group $G$ where $G=\mathbf{Z}{6}$, $Q{8}$.\
\begin{figure}[h]
\centering
\includegraphics[scale=.3]{example-image}
\caption{Undirected power graph of $\mathbf{Z}_{6}$}
\label{fig:my_label}
\end{figure}
\end{question}
\begin{figure}[h]
\centering
\includegraphics[scale=.35]{example-image}
\caption{Directed power graph of $\mathbf{Z}_{6}$}
\label{fig:my_label}
\end{figure}
\begin{figure}[h]
\centering
\includegraphics[scale=.50]{example-image}
\caption{Undirected power graph of $Q_{8}$}
\label{fig:my_label}
\end{figure}
\begin{figure}[h]
\centering
\includegraphics[scale=.50]{example-image}
\caption{Directed power graph of $Q_{8}$}
\label{fig:my_label}
\end{figure}
\begin{question}
Sketch the undirected power graph of finite group $G$ where \
$G=\mathbf{Z}{8},\mathbf{Z}{9},\mathbf{Z}{10},$ and The Klein $4-$ group $V{4}$.
\end{question}
\begin{figure}[h]
\centering
\includegraphics[scale=.25]{example-image}
\caption{Undirected power graph of $\mathbf{Z}_{8}$}
\label{fig:my_label}
\end{figure}
\begin{figure}[h]
\centering
\includegraphics[scale=.25]{example-image}
\caption{Directed power graph of $\mathbf{Z}_{8}$}
\label{fig:my_label}
\end{figure}
\begin{figure}[h]
\centering
\includegraphics[scale=.25]{example-image}
\caption{Undirected power graph of $\mathbf{Z}_{9}$}
\label{fig:my_label}
\end{figure}
\begin{figure}[h]
\centering
\includegraphics[scale=.25]{example-image}
\caption{Directed power graph of $\mathbf{Z}_{9}$}
\label{fig:my_label}
\end{figure}
\begin{figure}[h]
\centering
\includegraphics[scale=.30]{example-image}
\caption{Undirected power graph of $\mathbf{Z}_{10}$}
\label{fig:my_label}
\end{figure}
\begin{figure}[h]
\centering
\includegraphics[scale=.30]{example-image}
\caption{Directed power graph of $\mathbf{Z}_{10}$}
\label{fig:my_label}
\end{figure}
\begin{figure}[h]
\centering
\includegraphics[scale=.30]{example-image}
\caption{Undirected power graph of $V_{4}$}
\label{fig:my_label}
\end{figure}
\begin{figure}[h!]
\centering
\includegraphics[scale=.30]{example-image}
\caption{Directed power graph of $V_{4}$}
\label{fig:my_label}
\end{figure}
%Here I want add text, my file is five pages , but it adds the text at first page after second question
\end{document}
figureenvironments, but\captionofof packagecaptionorfigureextension of packagefloat. – cabohah Mar 27 '23 at 16:07h-floats, because thehdoes not mean: “place the float here and nowhere else”, it just means: “place the float here, if here would be suitable, depending on all the float parameters”. → https://tex.stackexchange.com/questions/39017/ and https://tex.stackexchange.com/questions/8625 – cabohah Mar 27 '23 at 16:34example-imageso people can use your example. As it is it is hard to guess your problem. which text appears on page 1 that you expect on page 5? – David Carlisle Mar 27 '23 at 16:42example-imageinstead of the.pngfiles, and include the phrase "this should be on page 5". That way we can paste what you've typed and see the output. As things are, you're describing a problem with code you haven't shown us, which makes it hard to debug. – Teepeemm Mar 27 '23 at 16:57{figure}[h]still allows the figure to move around to where LaTeX thinks best. Both of the linked questions have answers along the lines of "if you don't want the image to float, then don't use{figure}." You can also use Thomkrates' suggestion of adding\clearpage, which will force the figures to appear, and then your text. – Teepeemm Mar 27 '23 at 17:16