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 want to put the caption of my figure in the center but I can't do that. when I put my figure in the center the caption is also in the center but when the caption is too long and there is a return to a newline it is not in the center

share|improve this question
Do you use the package caption? Do you use a KOMA-class? Do you use memoir? But the important question is: Did you read: How to Ask-page – Marco Daniel May 5 '12 at 12:12
Can you give us a minimal working example so we can see what's going on? – qubyte May 5 '12 at 12:12
up vote 25 down vote accepted

Use the caption package and its justification=centering option.




\caption{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut
    purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.
    Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget,
    consectetuer id, vulputate a, magna. Donec vehicula augue eu neque.}


enter image description here

share|improve this answer
@ lockstep: thank you your answer is so useful I resolved my problem. Really I don't know the package caption so thank you very much for your answer – boutheina May 5 '12 at 12:20

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.