Latex keeps putting the image below the text, even though the text is below the image in my source code. How can I resolve this?
Here is my source code:
\documentclass[11pt]{article}
\usepackage{indentfirst}
\usepackage{graphicx}
\usepackage[margin=1in]{geometry}
\setlength{\parindent}{0pt}
\setlength{\parskip}{1.25ex}
...
\section{Component II: Shifters}
For this component, we used some sub-circuits, and we shall explain those first.
\subsection{Diagram & Description}
\begin{figure}[htp]
\centering
\includegraphics[scale=.56]{ob.png}
\end{figure}

figureenvironment is to specify that its content can be taken out of the document flow and inserted elsewhere to help with page breaking (known as a float) so what you describe is the expected behaviour. – David Carlisle Feb 20 '22 at 00:13hoption can not be used so it used thetoption, placing it at the top of the next page. This would appear to be a good outcome. – David Carlisle Feb 20 '22 at 00:15