[Tex/LaTex] Centering figure captions in IEEEtran

captionsfloatshorizontal alignmentlyx

I am working on a paper using the IEEEtran template in LyX.

I have run into a problem: While the contents (in this case, a table) of the figure float are centered, the caption is aligned to the left (see screenshot below). How can I center the caption as well?

enter image description here

This is generated by the following LyX document:

enter image description here

What I've tried:

  1. Center the table (the table is centered)
  2. Center all the contents in the float (only the table is centered)
  3. Select the caption and center it (no effect)

Technical details:

  • LyX 2.0.5.1
  • Mac OS X 10.7.5 (Lion)
  • All centering was performed by Right Click>Paragraph Settings>Align: Center

Best Answer

Adding

\usepackage{caption}% http://ctan.org/pkg/caption

to your document preamble (using the menus Document > Settings... > LaTeX Preamble) centres the captions by default. Although this also changes the default formatting, it would be possible to adapt it to match that of the default IEEEtran document class.

If this is for a journal submission, it is advised to stick to their formatting.