I want three figure environments to be positioned side by side and I tried to add hbt! float to each figure environment to achieve this. However, only the first figure environment is positioned at the right place and the latter two are somehow positioned at next page, with a text of next section being inserted between the first environment and second environment. LaTeX seems to ignore hbt! for the latter two.
How can I three figure environments to be positioned side by side? As long as the three row comes side by side like a table, I don't care the way.
I'll show you a part of my LaTeX code:
my preample:
\documentclass{jsarticle}
\usepackage[dvipdfmx]{graphicx}
\usepackage{subcaption}
\usepackage{amsmath,amssymb,bm,braket,ascmac}
figure section:
\begin{figure}[hbt!]
\centering
\begin{subfigure}[b]{0.2\linewidth}
\includegraphics[width=\linewidth]{fig1.jpg}
\caption{fig1}
\end{subfigure}
\begin{subfigure}[b]{0.2\linewidth}
\includegraphics[width=\linewidth]{fig2.jpg}
\caption{fig2}
\end{subfigure}
\begin{subfigure}[b]{0.2\linewidth}
\includegraphics[width=\linewidth]{fig3.jpg}
\caption{fig3}
\end{subfigure}
\caption{figures}
\label{fig:first_environmet}
\end{figure}
\begin{figure}[hbt!]
\centering
\begin{subfigure}[b]{0.2\linewidth}
\includegraphics[width=\linewidth]{fig4.jpg}
\caption{fig4}
\end{subfigure}
\begin{subfigure}[b]{0.2\linewidth}
\includegraphics[width=\linewidth]{fig5.jpg}
\caption{fig5}
\end{subfigure}
\begin{subfigure}[b]{0.2\linewidth}
\includegraphics[width=\linewidth]{fig6.jpg}
\caption{fig6}
\end{subfigure}
\caption{figures}
\label{fig:second_environment}
\end{figure}
\begin{figure}[hbt!]
\centering
\begin{subfigure}[b]{0.2\linewidth}
\includegraphics[width=\linewidth]{fig7.jpg}
\caption{fig7}
\end{subfigure}
\begin{subfigure}[b]{0.2\linewidth}
\includegraphics[width=\linewidth]{fig8.jpg}
\caption{fig8}
\end{subfigure}
\begin{subfigure}[b]{0.2\linewidth}
\includegraphics[width=\linewidth]{fig9.jpg}
\caption{fig9}
\end{subfigure}
\caption{figures}
\label{fig:third_environment}
\end{figure}

figureis a floting environment, if you put your images there they will float. Please read https://tex.stackexchange.com/questions/39017/how-to-influence-the-position-of-float-environments-like-figure-and-table-in-lat – Rmano Mar 24 '21 at 11:33hin that list does not meanhere. It meanshere aboutwith some text above and below. If that is not possiblehwill be discared. Note that you should always includepin that list to ensure that the figure does not float too far away (like to the end of the chapter because not h, t or b worked for placement). – daleif Mar 24 '21 at 11:53on the figure below we see..... Always refer to figure number (using\labeland\ref) – daleif Mar 24 '21 at 11:54