[Tex/LaTex] Changing style of table caption

captionsformattinghorizontal alignment

I'm using the \caption command inside \begin{table} command and in the output I'm getting:

Table 4.1 - Caption
    Table Content

Is it possible to change that style to something like this?

                    *Table 4.1*
    **Caption**
   Table Content 

The word "Table" and its number should be at the right side of page and in italic, the caption should be centered and bold.

PS

\usepackage{caption}
\DeclareCaptionFormat{hfillstart}{\hfill#1#2#3\par}
\captionsetup[table]{format=hfillstart,labelsep=newline,justification=centering}

\usepackage{floatrow}
\floatsetup[table]{capposition=top}

I have used this code from link below. How to change it to make Table italic, and caption bold?

Best Answer

You're almost there:

\usepackage{caption}
\DeclareCaptionFormat{hfillstart}{\hfill#1#2#3\par}
\DeclareCaptionFont{mdit}{\mdseries\itshape}
\captionsetup[table]{
  format=hfillstart,
  labelsep=newline,
  justification=centering,
  font=bf,
  labelfont=mdit,
}
\usepackage{floatrow}
\floatsetup[table]{capposition=top}

I'm not too much convinced about boldface captions, though.

Related Question