Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
How to influence the position of float environments like figure and table in LaTeX?
Keeping tables/figures close to where they are mentioned

I want to to show three plots in a page such that the first two plots are on one line and the third plot on the second. However, I am having some issues with the plot in latex. In my case, I am having the first two images in a row. Then I get the paragraph that was supposed to come after the three plots and then at the end the last plot. I thought it was because of the size of the plot. So, I tried to reduce the size to see if it makes a difference. But even if the size of the plots is so small that it can easily accommodate in the space occupied by the paragraph, it's still pushed down and comes after the paragraph. How can I fix this?



About the details...........

Now the issue is the I have the first two images side by side and then I was expecting the third images but instead of that I have the subsection Details and the third image follows it

share|improve this question

migrated from stackoverflow.com May 3 '12 at 13:05

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Martin Scharrer May 3 '12 at 13:23

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.

You'll have to include some source code for anyone to be able to help. –  sarnold May 3 '12 at 1:58
Have you tried something like: \includegraphics{1.jpg} \includegraphics{2.jpg}\\includegraphics{3.jpg} –  Shalmezad May 3 '12 at 2:05
The issue is that the text after i.e Details in my case is coming before the images. I want the three images to appear first and then only the Details subsection –  rajan sthapit May 3 '12 at 2:25
I fixed the issue. Use \begin{figure}[H] –  rajan sthapit May 3 '12 at 2:30
figure is a so called float and will not be positioned exactly where the code is located. This is on purpose. LaTeX is written for professional results and you won't find a book which has a figure just in between texts on a page. They are always either on top or bottom of a page or on a page of their own. See the above linked questions for further help and information. The [H] setting provided by the float package you mentioned is one way to do it. –  Martin Scharrer May 3 '12 at 13:26

1 Answer 1

I think that you will have better luck if you use subfloat (http://www.ctan.org/pkg/subfloat) or subfig (http://www.ctan.org/pkg/subfig)

share|improve this answer