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

I got a problem in my LaTeX document. I used the codes below:


I was doing flushleft since I have stuffs in the right and I want it aligned with this image. How should I do it?

share|improve this question
the error was that there's a label always going out not just the jpg file plus I cant align the jpg file with some words. how to do? – Keneth Adrian May 24 '12 at 11:53
Don't put environments around figure. Use commands like \centering or \raggedright inside figure. Also don't use figure at all if you want the image to stay. figure is a float and should always be the outer most environment. And don't use \centering if you don't want to center. – Ulrike Fischer May 24 '12 at 12:07
You want text on the left and an image on the right? Sounds like a job for wrapfig! – Martin Scharrer May 24 '12 at 12:32
It would be good if you tell use your requirements more precisely. A minimal working example which shows what you are trying to do is always helpful. Are you having normal text on the left which expands further down or is it just something else (table, some small text, etc.)? Do you want the figure/image at a specific position or should it float? – Martin Scharrer May 24 '12 at 12:39
up vote 2 down vote accepted

Assuming you mean an image in the left of the page with text flowing around it:

\usepackage{mwe} % for blindtext and example-image-a in example

\caption{A caption}


enter image description here

Obviously, replace the \blindtext and example-image-a with your own content.

share|improve this answer
Note that mwe does not exist in MikTeX. – kiss my armpit May 24 '12 at 12:52
@Forgiver: mwe does exist in miktex. Synchronize the repository if you doesn't see it in the package manager. – Ulrike Fischer May 24 '12 at 13:23

Your Answer


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

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