Graphics, Figures & TablesIEEEtran — Centered figure caption wanted

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
dbarkai
Posts: 4
Joined: Thu Feb 26, 2009 2:18 am

IEEEtran — Centered figure caption wanted

Post by dbarkai »

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
Last edited by dbarkai on Wed Sep 29, 2010 1:19 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

IEEEtran — Centered figure caption wanted

Post by localghost »

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
Post Reply