I have a little problem. I am trying to arrange to subfigures side by side (i.e. a graph and its legend) using the IEEE article format and I cannot remove the subcaption.
I was using package subfigure at first but I don't want to have the subcaption underneath the figures (i.e. (a), (b) ).
By searching on the internet, I've found out that package caption could do the job, but seems to have some compatibility issues with the IEEE class file.
Therefore I had to create a table and put the figures in the table. However, now the legend is not centered. Here's the code:
\begin{figure}[!h]
\centering
\begin{tabular}{cc}
\includegraphics[scale=0.135]{fig_graph} & \includegraphics[scale=0.115]{Legend} \\
\end{tabular}
\caption{Caption text.}
\label{fig_graph}
\end{figure}
Question:
How is possible to put two figures side by side with no subcaption and without using the caption package (and no graphical editors if possible)?
Using subcaption didn't helped. I forgot to mention that I am using IEEEConf not IEEEtran.
I modified the code as follows:
\begin{figure}[!h]
\centering
\begin{subfigure}
\includegraphics[scale=0.135]{fig_graph}
\phantomcaption{}
\end{subfigure}
\hfill
\begin{subfigure}
\includegraphics[scale=0.115]{Legend}
\phantomcaption{}
\end{subfigure}
\caption{Caption text.}
\label{fig_graph
\end{figure}
And now MikTex 2.9 complains that subcaption and subfigure cannot be used together.
If I remove subfigure, the compiler gets VERY angry on another subfigure I have
Missing number, treated as zero.\letl.214 \label{fig_matrices}}). and a lot more complaining about missing numbers and illegal units like pt (I guess beacuse subfigure is needed)
The packages I am importing are:
\documentclass[letterpaper, 10 pt, conference]{ieeeconf}
\IEEEoverridecommandlockouts
\overrideIEEEmargins
\usepackage{url}
%\usepackage[caption=false]{subfig}
\usepackage[pdftex]{graphicx}
\usepackage{subfigure}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{amsmath}
\usepackage{array}
%\usepackage{subcaption}
\usepackage{cite}
The error I get if I use caption is:
Command \c@subfigure already defined.
If I use caption by giving:
\usepackage[caption=false]
I get many errors:
Argument of \@fileswith@pti@ns has an extra }.
Paragraph ended before \@fileswith@pti@ns was complete.
Paragraph ended before \reserved@b was complete.
Undefined control sequence. \@fileswith@pti@ns ...served@b \reserved@a ,\@nil,}\fi \[email protected] \usepackage[pdftex]{graphicx}
And a lot more most of them about not finding things or finding things and think that are undefined.
I was kind of aware that people may get just a warning for caption, but what's wrong with this?
Thank you all for your help!
subfigure
package is old and obsolete. You should never use it for anyway.