I've included the subfig package in my latex document. The word "figure" is appearing below the main caption in each figure (even those not using subfloats). Has anyone had the same problem?
\documentclass[
final,
reprint,
notitlepage,
narroweqnarray,
inline,
twoside
]{ieee}
\newcommand{\latexiie}{\LaTeX2{\Large$_\varepsilon$}}
\usepackage{epstopdf}
\usepackage{subfig}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\subfloat[one]{\label{fig:one}\includegraphics[width=.4\textwidth]{figures/one.png}}
\qquad
\subfloat[two]{\label{fig:two}\includegraphics[width=.4\textwidth]{figures/two.png}}
\caption{some text}
\end{figure}
\end{document}
In the output document:
Fig 1. Some text
figure
I want to get rid of that last "figure"
UPDATE:
\begin{table}[!t]
\renewcommand{\arraystretch}{1.3}
\caption{a caption not displaying OK}
\begin{tabular}{|c|p{2.5cm}|p{2.5cm}|}
\hline
&Average distance (km) & Total distance (km)\\ \hline
set 1&5.137&102.749\\
set 2&1.602&32.058\\
\hline
\end{tabular}
\label{distances}
\end{table}
Best Answer
The captions are already defined by the
ieee.cls
. Hence the captions can not be defined by thesubfig
package. You should usecaption=false
as the option forsubfig
package.Edit: The
ieee.cls
provides a length\captionwidth
. You can define it to be column width like\setlength{\captionwidth}{\columnwidth}
so that table captions are fixed. I have modified the above code accordingly.