1

despit i specified that the image must be place inline "among the text" using [h] command, at run time, the image is place at the end of the section how to set it right?

latex:

\subsection{item1 Vs item2}
in this comparison......
......
......
......
\begin{figure}[h]
\centering
\includegraphics[width=100mm,scale=0.7]{osm_vs_wikipedia_2}
\caption{caption}
\end{figure}

the rest of the text goes here..
...
2

Not mentioned in the above-mentioned link: a plain TeX macro package, insbox.tex, which defines an \InsertBoxC command. This command is to be used inside a paragraph, lets the current line terminate, then inserts its argument, andafterwards continues the text of the paragraph.

Demo:

\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{xcolor}
\usepackage{cleveref, todonotes}
\input{insbox}

\begin{document}

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec varius dapibus metus eget ultrices. Nulla sagittis mauris rutrum, blandit augue eget, laoreet augue. Phasellus enim odio, sagittis in mi sed, fringilla mollis odio. Phasellus quis purus ultricies, tempor purus at, tempus quam. Donec ultricies, ligula ac pretium porttitor, nibh nunc \todo[color=white, linecolor=red]{\color{red}Insertion point}%
%%%
\InsertBoxC{\begin{minipage}{\linewidth}\centering\bigskip\includegraphics[scale=0.75]{AliceSteadman.png}\\ \captionof{figure}{Any description}\label{WhiteRabbit}\end{minipage}}%
%%%
Integer eros nibh, cursus at est sed, volutpat tristique justo. Donec ornare facilisis lorem, id feugiat elit pellentesque at. Nulla odio mauris, luctus sed faucibus id, dignissim dictum velit. Morbi vehicula velit at massa tristique rhoncus. Cf. \color{red}{\cref{WhiteRabbit}}.

\end{document}

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.