0

This question already has an answer here:

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.

marked as duplicate by Werner floats Nov 14 '16 at 5:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    here is an answer to your question: tex.stackexchange.com/questions/2275/… – tandem Nov 14 '16 at 2:57
  • I have tried all those combinations. Still the same result :( – Ptheguy Nov 14 '16 at 3:06
  • Have you also tried using a minipage? – tandem Nov 14 '16 at 3:29
  • Yes! The mind-boggling thing is that I have been writing with the same settings for so long, and never had this issue. I can't figure out why all of a sudden this one image (I have more that are in the right spot) isn't being located properly. – Ptheguy Nov 14 '16 at 3:32
  • Floats float. Don't put it in a figure environment. placeins with section will stop it floating into another section. It won't stop it floating within a section. A figure is 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 a figure. If you don't want one, just don't use one. – cfr Nov 14 '16 at 4:04
1

\usepackage{float} And then say \begin{figure}[H]

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