4.37 How to place figures

Using \begin{figure} makes images float and so hard to control the location. Instead, can use just \includegraphics{name} but to get use caption, use this method by Gonzalo Medina

When this viewed in HTML, tex4ht puts one image below the other. It seems tex4ht does not support minipages.

To do the same for tex4ht try the following, using multicols new support added to tex4ht

\documentclass{article} 
\usepackage[demo]{graphicx} 
\usepackage{capt-of} 
\usepackage{lipsum}% 
 
\begin{document} 
\lipsum[1] 
\begin{center} 
  \includegraphics{foo} 
  \captionof{figure}{A non floating figure} 
  \label{fig:test} 
\end{center} 
 
\lipsum[2] 
\end{document}
 

PIC

Figure 4.1: result of the above

These are different examples of placing figures

\documentclass{article} 
\usepackage{subfigure} 
\usepackage{lipsum} 
\usepackage[demo]{graphicx} 
\usepackage[utf8]{inputenc} 
 
\begin{document} 
\lipsum[1] 
 
\begin{figure}[ht!] 
     \begin{center} 
% 
        \subfigure[Caption of First Figure]{% 
            \label{fig:first} 
            \includegraphics[width=0.4\textwidth]{FirstFigure} 
        }% 
        \subfigure[Caption of Second Figure]{% 
           \label{fig:second} 
           \includegraphics[width=0.4\textwidth]{SecondFigure} 
        }\\ %  ------- End of the first row ----------------------% 
        \subfigure[Caption of Third Figure]{% 
            \label{fig:third} 
            \includegraphics[width=0.4\textwidth]{ThirdFigure} 
        }% 
        \subfigure[Caption of Fourth Figure]{% 
            \label{fig:fourth} 
            \includegraphics[width=0.4\textwidth]{FourthFigure} 
        }% 
% 
    \end{center} 
    \caption{% 
        The l-o-n-g caption for all the subfigures 
        (FirstFigure through FourthFigure) goes here. 
     }% 
   \label{fig:subfigures} 
\end{figure} 
 
\lipsum[2-5] 
\end{document}
 

references:

  1. http://tex.stackexchange.com/questions/107363/putting-multiple- images-in-a-page