I am using caption package and wanted to set the label of a caption (which is in a different line) to be aligned right, but the main text of the caption is aligned left, something like this:

enter image description here

How could it be done?

  • 2
    It depends on the document class and possibly the packages installed. Please provide a Minimal Working Example, something we can copy and run, which illustrates the problem. May 8, 2018 at 13:12

1 Answer 1


Since you are using the caption package you could define your own caption format, for example:

\DeclareCaptionFormat{myformat}{{\raggedleft #1\par}#3\par}

\caption{Title of the table}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .