[Tex/LaTex] Formatting captions in longtable tables

captionsformattinglongtable

I'm typesetting my dissertation using Springer's svmono class. The class defines its own formatting of table and figure captions. I have a couple of multipage tables which I typesetted using longtable package, which has its own \caption command which is different than the one imposed by the class (longtable uses default formatting of the article class). I'm trying to make the caption formatting consistent, without success so far.

I had a look at LaTeX Companion, but the only information I found there states that

[with the caption package] it is easy to customize longtable and table
captions, keeping the style of captions consistent between those two
environments.

I don't find it easy.

Here is a toy example of what I'm looking for.

Link to the class svmonomb

\documentclass{svmonomb}
\usepackage{longtable}

\begin{document}

I would like to have the longtable version \ref{longtable} look like 
the ``normal'' version \ref{table}.

\bigskip

\begin{table}
    \centering
    \begin{tabular}{rrrrrrrrr}
        1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\ 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1
    \end{tabular}
    \caption{Caption of the normal \texttt{table} environment.}
    \label{table}
\end{table}

\begin{longtable}{rrrrrrrrr}
    1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\ 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
    \caption{Caption of the \texttt{longtable} environment.}
    \label{longtable}
\end{longtable}

\end{document}

Best Answer

One possibility would be using the caption package:

\documentclass{svmonomb}
\usepackage{longtable}
\usepackage[small,bf,singlelinecheck=off]{caption}

\begin{document}

I would like to have the longtable version \ref{longtable} look like 
the ``normal'' version \ref{table}.

\bigskip

\begin{table}
    \centering
    \begin{tabular}{rrrrrrrrr}
        1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
        1 & 1 & 1 & 1 & 1 & 1 & 1 & 1
    \end{tabular}
    \caption{Caption of the normal \texttt{table} environment.}
    \label{table}
\end{table}

\begin{longtable}{rrrrrrrrr}
    1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
    1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
    \caption{Caption of the \texttt{longtable} environment.}
    \label{longtable}
\end{longtable}

\end{document}

A different option would be redefining \LT@caption similar to the code of \@makecaption (which can be found inside svmonomb.cls).