I am trying to align 6 figures in a 2 by 3 organization over a two column text, but all my tries are in vain, the figures end up vertical. I've also tried minipages but no luck.
the tex:
\documentclass[10pt, conference, compsocconf]{IEEEtran}
\usepackage[utf8]{inputenc}
\usepackage{array}
\usepackage{mdwmath}
\usepackage{mdwtab}
\usepackage{subfig}
\usepackage{graphicx}
\usepackage{epsfig}
%%%%%%%%%%
%%%%%%%%%%
\begin{figure*}[t]
\centering
\subfloat[A]{
\label{ex0}
\epsfig{figure=qa.eps,width=0.3\textwidth}
}
\qquad
\subfloat[B]{
\label{ex1}
\epsfig{figure=qb.eps,width=0.3\textwidth}
}
\qquad
\subfloat[C]{
\label{ex3}
\epsfig{figure=qc.eps,width=0.3\textwidth}
}
\newline
%a row similar to the above
\end{figure*}
Thanks for any comments.
Best Answer
Do not leave blank lines between the subfigures. You can try something like this:
I used
\includegraphics
form thegraphicx
package instead of\epsfig
from the obsoleteepsfig
package. Instead of forcing a\quad
space between the figures, you can use\hfill
which will distribute the spacing evenly.I used the
demo
option for thegraphicx
package to make my example compilable for everyone. Do not use that option in your actual code.If you don't mind using the
subcaption
package (this package behaves better thansubfig
, See subcaption vs. subfig: Best package for referencing a subfigure), you could use something like this: