Partial solution: turns out centering of the caption works fine when using the 'conference' class option (but not for 'journal' or 'technote'). And, of course, I lose options from formatting options in 'journal' that I'd like to use. So, it is not satisfactory.
The following text centers the figure (from the "include") but not the caption. Is this the /label that gets in the way?
\documentclass[onecolumn,11pt,journal,compsoc]{IEEEtran}
\usepackage{graphicx}
\usepackage[dvips]{color}
\usepackage[cp1250]{inputenc}
\begin{document}
\begin{figure}[h]
\centering
\vspace{1cm}
\includegraphics[scale=0.2]{myfile.eps}
\vspace{-1.5cm}
\caption{A simple 3D stencil}
\label{fig:2}
\end{figure}
Thanks for your help.
dbarkai
Graphics, Figures & Tables ⇒ IEEEtran — Centered figure caption wanted
IEEEtran — Centered figure caption wanted
Last edited by dbarkai on Wed Sep 29, 2010 1:19 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
IEEEtran — Centered figure caption wanted
This seems to be the default behaviour of the IEEEtran class. I suggest to consult the class manual or the forum search for possible solutions.
Thorsten
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10