Graphics, Figures & Tables ⇒ IEEEtran — Centered figure caption wanted
IEEEtran — Centered figure caption wanted
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
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
IEEEtran — Centered figure caption wanted
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10