I have read many threads regarding misplaced floats in LaTex, however, I haven't found a satisfactory answer yet. As shown by the code segment, Fig 1 is supposed to be after the "In order to test ..." paragraph and before the "Using the digital ..." paragraph. However, when it is placed in some random location in between the text of the paragraphs. Any help is appreciated.
\documentclass[aps,reprint,nofootinbib]{revtex4-1}
\usepackage{graphicx}
\usepackage{gensymb}
\usepackage[section]{placeins}
.
.
.
In order to test...
\begin{figure}[h]
\includegraphics[scale=0.65]{1}
\caption{Circuit used to test Kirchhoff's laws.}
\end{figure}
Using the digital...
EDIT: I just noticed that the location at which the figure is supposed to be is too small. However, shouldn't the placeins package take care of this issue? Essentially what LaTex is doing is filling that otherwise empty space with the text of the next paragraph, the one which is supposed to come after the figure.
figureenvironment.placeinswithsectionwill stop it floating into another section. It won't stop it floating within a section. Afigureis designed to float. That is what it does. It is its raison d'être, its essential being, its purpose in life. You don't have to use afigure. If you don't want one, just don't use one. – cfr Nov 14 '16 at 04:04\captionoffromcaptionorcapt-ofif you need a caption. – cfr Nov 14 '16 at 04:05placeinsthat work within a section? – Ptheguy Nov 14 '16 at 04:07