i want to center the table captions.

enter image description here

enter image description here

2 Answers 2


I recommend to use the caption package. It provides features for justification, also for centering, such as


It offers many features, just have a look at its comprehensive documentation.

  • Kottwit, for my long table captions, i'm using \newline to make some comments about the tables. But i want these start from left is that possible? this is caption \newline this is more explanation (should be left aligned.) is there a way to do it?
    – berkay
    Apr 19, 2011 at 7:31
  • 1
    @berkay: Using \newline inside a paragraph which will be typeset centered is usually a bad idea. Better use \\ instead which should work under such conditions, too.
    – user2574
    Apr 21, 2011 at 5:26
  • 1
    I use justification but not solved. paste.ubuntu.com/p/YGNgtbKNBH ibb.co/fKDX18
    – alhelal
    Jul 29, 2018 at 17:05
  • Package caption Warning: Unsupported document class (or package) detected, usage of the caption package is not recommended. See the caption package documentation for explanation. (I use OverLeaf with XeLaTex Compiler)
    – Cohensius
    Oct 27, 2019 at 13:59

Note: If you do not want to change the justification for the whole document you can use \captionsetup{} within a particular figure and it will only change the captions within that environment. Other than centering you may also want to try centerlast.

   \caption{. . . }

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.