TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How to influence the position of float environments like figure and table in LaTeX?

I've created a PNG image with Microsoft Visio and I want to put it in a document I'm making with LaTeX.

The problem is that the image automatically goes to the next page whenever I try to insert it, when there is a lot of space under the paragraph above it.

I already try trimming and clipping it to see if maybe the figure simply had lots of blank space above it, but it doesn't, annd it goes to the next page for no reason.

I tried the following:

    \caption{insert caption}
    \label{fig: figure}

The problem is that it doesn't work. Does anyone know where the problem is?

share|improve this question

marked as duplicate by egreg, David Carlisle, Kurt, lockstep, Werner Dec 7 '12 at 17:29

This question was marked as an exact duplicate of an existing question.

up vote 0 down vote accepted

Found the problem.

Just needed to use:

share|improve this answer
well, "needed" isn't quite the word to use, H is a sledgehammer to use as a last resort when trying to crack an egg. – David Carlisle Dec 7 '12 at 16:52
@DavidCarlisle OK. Didin't know that ... do you know any other way to do it? I've been using latex for only 1 day and I'm rather lost – morcillo Dec 7 '12 at 17:31
@Kurt Why doesn't it provide an answer to my question? Maybe I phrased it wrong? And about the rest of your comment: I shouldn't have answered my own question? Sorry if I misunderstood, but I couldn't understand the sentence ... I use English every single day, but it isn't my first language – morcillo Dec 7 '12 at 17:34
@Kurt It's not a good answer measured with the standards of "good LaTeXing", but it most certainly is an answer, and complete enough to act upon it. The fact that it may not be considered the best solution doesn't influence its validity as an answer. Imho morcillo didn't do anything wrong, except perhaps not finding other questions about the same issue; there should be plenty of duplicates around pointing to our canonical question. (Not answering a question that's suspected to be a dupe is not official policy, even though it may be considered good style.) – doncherry Dec 7 '12 at 18:24
@Kurt OK. I'll try to do that, but the thing is that, at this time I'm not able to difference a good solution from a bad solution, since I'm new to latex. Thank you. – morcillo Dec 8 '12 at 18:29

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