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.

I want put figure below the paragraph in Latex (one page) i use winshell but always it's apply the figure above the paragraph

note: there is enough space to put figure I want to put figure below the paragraph in one page both figure and paragraph should be in one page but always figure go above how solve this

\begin{figure} 

\centering

\includegraphics[width=4in]{image}

\caption[my image ]

{Imy image}

\end{figure}
share|improve this question

migrated from stackoverflow.com Sep 3 '12 at 22:21

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

    
Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. –  Werner Sep 4 '12 at 5:07
add comment

1 Answer

up vote 3 down vote accepted

The figure environment is used to create floating figures -- LaTeX feels free to move them around to the best-looking place. As an optional argument to the figure environment, you can tell LaTeX where to put the figure. (By default, it goes to the top of a page.)

To have it show up where you've put it in your code, invoke it like this:

\begin{figure}[h]

The h stands for "here." You could also specify the bottom of the page by saying [b]. You can list more than one preference -- [hb] means "put it here, but if there isn't room, put it at the bottom of a page.

share|improve this answer
    
It should be noted that even with h, LaTeX can float the figure elsewhere. There are packages on CTAN that actually do give the option to "unfloat" a float, e.g. the package here. I do not know what the currently best option is, though. –  Svante Sep 2 '12 at 20:28
1  
If you want it to not float, just place the image (either on its own, or in something like a minipage and use caption's \captionof{figure}{<caption>} to place the caption) and not in a floating environment. The float package provides a H float placement specifier. –  Werner Sep 3 '12 at 0:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.