[Tex/LaTex] How to make table caption appear after TABLE I. in IEEE latex format

captionsieeetrantables

I am using the IEEE conference format for my paper. The captions of the tables should be like

TABLE I. Caption

but they appear like

TABLE I

Caption

I have tried

\usepackage{caption}% http://ctan.org/pkg/caption
\captionsetup[table]{labelsep=period}%

but it changes the whole style of the caption.

Is there another way of doing this without changing the style?

Thanks.

Best Answer

You can patch \@makecaption. But be aware that such journal styles are like the journal wants them and you normally shouldn't change the style.

\documentclass[conference]{ieeetran}
\usepackage{xpatch}
\makeatletter
\patchcmd\@makecaption{\\}{.~}{}{\fail}
\makeatletter
\begin{document}

\begin{table}
\caption{blub}
a table
\end{table}

\end{document}