I need to have different caption format for figures and for tables. Captions for figures have to be centered and captions for tables - left aligned. How to define this?


2 Answers 2


Use the caption package and its justification=raggedright option. If desired, add singlelinecheck=false to make sure that single-line captions are also typeset raggedright.


% Optional: float content (apart from caption) centered



\caption{A figure}

(Tabular material)
\caption{A table}


The package caption allows exactly this.


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.