0

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?

1
  • 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

0

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

\documentclass{article}
\usepackage{caption}
\DeclareCaptionFormat{myformat}{{\raggedleft #1\par}#3\par}
\captionsetup{format=myformat,singlelinecheck=off,textfont=bf}

\begin{document}
\begin{figure}
\caption{Title of the table}
\end{figure}
\end{document}
0

You must log in to answer this question.

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