# Table Numbering And Caption in Same location

My table and caption are located on the same line and this started happening after I used a different class file for the conference I am applying towards.

Here is a picture of what I mean: (Normally the words "Table 1" go above the caption, not on the same line)

I was wondering what could be some reason for this? What should I look for in the class file to see if this was on purpose or my mistake?

The old document class differs from the new document class in how it defined \@makecaption - the macro responsible for setting the caption of floats. Here's the difference:

### Old document class:

\long\def\@makecaption#1#2{%
% test if is a for a figure or table
\ifx\@captype\@IEEEtablestring%
% if a table, do table caption
\footnotesize\bgroup\par
\centering\@IEEEtabletopskipstrut{\normalfont\footnotesize #1}\\
\@IEEEtablecaptionsepspace
% if not a table, format it as a figure
\else
%...
\fi}


### New document class:

\long\def\@makecaption#1#2{%
% test if is a for a figure or table
\ifx\@captype\@IEEEtablestring%
% if a table, do table caption
\@IEEEtablecaptionsepspace
% if not a table, format it as a figure
\else
%...
\fi}


It's obvious that the older class inserts a line break \\ while the newer uses .\qquad to separate the caption type and text. It suffices to use etoolbox to patch \@makecaption to insert a \par (paragraph break) instead of using .\qquad:

\documentclass{IEEEtran}
\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
\makeatletter
\patchcmd{\@makecaption}% <cmd>

\patchcmd{<cmd>}{<search>}{<replace>}{<success>}{<failure>} searches for <search> in <cmd> and replaces it with <replace>. If this search-and-replace is successful, <success> is executed, otherwise <failure> is.