At the moment, I have the following code in the preamble:
\usepackage[justification=justified,singlelinecheck=false]{caption}
\captionsetup{format=hang, labelsep=quad}
This creates a nice space between the table caption and the caption text. However, I would also like to add a colon after the table number, and at the same time have the separation between the colon and the caption text. As far as I know, \captionsetup
only allows one attribute for labelsep. Is there an easy way to accomplish this?
Best Answer
Yes, there is. The
caption
package provides the command\DeclareCaptionLabelSeparator
to define your own caption label separator.So, declaring
and using
you can obtain what you want.
MWE: