0

I am transferring my data on IEEE access latex format. It is a two-column format and I have to put 6 subfigures (two in a row). For importing these sub-figures, I made a page in a single column by using figure float option (figure*). But the caption is not coming in a centre of subfigure and also subfigures are not coming at the right place of the page. Please see the code and image for further details:

\documentclass{ieeeaccess}
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithm}
%\usepackage{algorithmic}

\usepackage{algpseudocode}
\usepackage{multirow}
\usepackage{graphicx}
%\usepackage{subfigure} 
\usepackage[caption=false]{subfig}
\usepackage{caption,setspace}
\captionsetup{font={sf,small,stretch=0.80},labelfont={bf,color=accessblue}}
\usepackage{textcomp}
%\usepackage{subfig}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
    T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\begin{document}
\begin{figure*}[t!]
\centering
\subfloat[]
{ 
\centering
\includegraphics[width=0.6\textwidth]{RHKNN.eps}
\label{fig:a1}
}
\centering
\subfloat[]{ 
\includegraphics[width=0.6\textwidth]{LHKNN.eps}
\label{fig:b1}

}



\caption[A set of six sub figures.]{The impact of xyz  on ABC at:
\textbf{\subref{fig:a1}} A by using ABC;
\textbf{\subref{fig:b1}} B position  by using DEF;

}
\label{fig 4:gr2}
\end{figure*}
\EOD
\end{document}

Please help me out to this problem, specifically, how captions would come at center? secondly, how to both subfigures comes in the middle of page (look decent)?enter image description here

  • 1
    As far as I can see, you should not use \begin{figure} in the class, but only the \Figure command, which doesn't accept subfloats. – egreg Jan 6 at 11:59
  • @egreg I have tried \Figure but could not successfull to import subfigures so I tried subfloat with figure – Nafees Ahmed Jan 6 at 12:25
  • 1
    If you use the subfig package, you probably shouldn't use the caption package. Conversely, if you wish to use the caption package, you should be loading the subcaption package instead of the subfig package. – Mico Jan 6 at 13:59
  • @Mico yes your comment worked. Thank you so much for the help. – Nafees Ahmed Jan 7 at 8:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.