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?
Best Answer
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:
New document class:
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 useetoolbox
to patch\@makecaption
to insert a\par
(paragraph break) instead of using.\qquad
:\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.