TransWikia.com

How to insert a linebreak in table caption?

TeX - LaTeX Asked on December 16, 2020

I want my table caption to look something like this

enter image description here

I tried newline and , but they did not work!

Is it possible to display the caption like above?

Thank you

2 Answers

With the help of the caption package:

enter image description here

documentclass{article}
usepackage{caption}
captionsetup[table]{labelfont=bf,
                     labelsep=newline,
                     singlelinecheck=false}
begin{document}

begin{table}
  caption{this is my caption text}
end{table}

begin{table}
  caption{this is my caption text this is my caption text this is my caption text this is my caption text this is my caption text}
end{table}

end{document}

Correct answer by leandriis on December 16, 2020

Load caption and use in the preamble

captionsetup{singlelinecheck=off, labelfont=bf, labelsep=newline}

Answered by Bernard on December 16, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP