How to center a figure caption that's too long for a single line? Or at least, make the text in other lines line-up with text after "Slika 1:". It currently looks like this alt text


Use the caption package.


\usepackage[justification=centering]{caption}% or e.g. [format=hang]


\caption{This caption is very long---in fact, it is so long that it doesn't fit on one line}

  • This doesn't work in beamer, any suggestions?
    – adrin
    May 26 '14 at 18:33
  • 1
    I don't know about beamer, but I had a strange document class that also refused to give the correct output with \usepackage[justification=centering]{caption} and I simply used \\\centering in the caption text to get the desired output.
    – apriori
    Jul 15 '19 at 12:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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