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?
This is generated by the following LyX document:
What I've tried:
- Center the table (the table is centered)
- Center all the contents in the float (only the table is centered)
- 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
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.