I am using IEEE Trans template. I have inserted figures using subfig and everything looks fine. However, after looking closely into the text I see output like Fig VI-B, Fig V-Bb which appears very strange. Infact, I cant imagine 'Figure 19' is labelled Fig VI, what could the problem be and how do I address this.
A few questions are similar to mine but they are quite different also: This question mentions about figures appearing in roman numeral using a thesis template. In the answer subfigure was recommended but IEEE uses subfig class.
I include a MWE from this question. Whenever I like to reference
\documentclass{IEEEtran}
\usepackage{lipsum}
\usepackage{graphicx}
\ifCLASSOPTIONcompsoc
\usepackage[caption=false, font=normalsize, labelfont=sf, textfont=sf] {subfig}
\else
\usepackage[caption=false, font=footnotesize]{subfig}
\fi
\begin{document}
\section{A}
\lipsum
\section{B}
\lipsum[1-3]
\begin{figure}
\label{fig1}
\centering
\subfloat[a]{%
\includegraphics[width=0.45\linewidth]{example-image}}
\label{1a}\hfill
\subfloat[b]{%
\includegraphics[width=0.45\linewidth]{example-image}}
\label{1b}\\
\subfloat[c]{%
\includegraphics[width=0.45\linewidth]{example-image}}
\label{1c}\hfill
\subfloat[d]{%
\includegraphics[width=0.45\linewidth]{example-image}}
\label{1d}
\caption{Whatever}
\end{figure}
\lipsum[1-5]
\end{document}
