subcaption package offers a convenient \phantomcaption
command to suppress the label generation on the subfloats.
\documentclass{article}
\usepackage{subcaption}
\usepackage{cleveref}
\usepackage{mwe} %<- For dummy images
\begin{document}
\begin{figure}
\centering
\begin{subfigure}[t]{0.47\textwidth} % contains the two plots in a single figure
\includegraphics[width=\textwidth]{example-image-a}
\phantomcaption
\label{fig:imga}
\end{subfigure}
\begin{subfigure}[t]{0\textwidth} % the hidden unwanted image
\includegraphics[width=\textwidth]{example-image-b}
\phantomcaption
\label{fig:imgb}
\end{subfigure}
\caption{Main caption here}
\label{fig:main}
\end{figure}
We can use \Cref{fig:imga} but we won't use \Cref{fig:imgb}
\end{document}
Then the result is as desired.
![enter image description here](https://i.stack.imgur.com/sv76U.png)
This is one of the problems of the obsolete package subfigure
. Switch to subfig
or subcaption
. Here's part of your code rewritten using subfig
's syntax (I made some changes; in particular, I suppressed the \centering
just before \cline
which was producing an error):
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subfig}
\usepackage{multirow}
\begin{document}
\begin{figure}[!t]
\centering
\subfloat[caption1\label{fig:relative_graph}]{%
\includegraphics[scale=0.15,clip=true,draft=false,]{title1.pdf}%
}\quad
\subfloat[Caption2\label{table:mambo}]{%
\begin{tabular}[b]{cc|c|c|}
\cline{2-3}
& \multicolumn{1}{ |c| }{column1} & \multicolumn{1}{ |c| }{column2} \\ \cline{1-3}
\multicolumn{1}{ |c| }{AA} & $65.16\%$ & $66.64\%$ \\ \cline{1-3}
\multicolumn{1}{ |c| }{BB} & $68.60\%$ & $65.56\%$ \\ \cline{1-3}
\multicolumn{1}{ |c| }{CC} & $\mathbf{52.24\%}$ & $65.00\%$ \\ \cline{1-3}
\end{tabular}%
}
\end{figure}
\begin{figure}[!t]
\centering
\begin{tabular}{ccc}
\subfloat[caption1\label{fig:img_pair_1}]{%
\includegraphics[scale=0.17]{img1.jpg}%
} &
\multirow{-4}[2.5]{*}{\subfloat[caption2\label{fig:img_complete_1}]{\includegraphics[scale=0.136]{img2.jpg}}} &
\multirow{-4}[2.5]{*}{\subfloat[caption3\label{fig:img_complete_2}]{\includegraphics[scale=0.136]{img3.jpg}}} \\
\subfloat[caption4\label{fig:img_pair_2}]{\includegraphics[scale=0.17]{img4.jpg}}\\
\end{tabular}
\caption[]{Comments}
\label{fig:affinity}
\end{figure}
\end{document}
![enter image description here](https://i.stack.imgur.com/QrMKm.png)
To customize caption settings, use the caption
package.
Notice that I used [b]
as the alignment option for the tabular
so the image and the table are properly aligned. I would also suggest you not to control the size of your images using scale
; usually a better control is achieved controlling the width and/or height.
Here's a variation of your code, with some improvements. booktabs was used to produce the table and \raisebox was used instead of \multirow to place the images.
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subfig}
\usepackage{booktabs}
\begin{document}
\begin{figure}
\centering
\subfloat[caption1\label{fig:relative_graph}]{%
\includegraphics[width=4cm]{title1.pdf}%
}\quad
\subfloat[Caption2\label{table:mambo}]{%
\begin{tabular}[b]{cccc}
\cmidrule[\heavyrulewidth]{2-3}
& column1 & column2 \\ \midrule
AA & $65.16\,\%$ & $66.64\,\%$ \\
BB & $68.60\,\%$ & $65.56\,\%$ \\
CC & $\mathbf{52.24\,\%}$ & $65.00\,\%$ \\ \bottomrule
\end{tabular}%
}
\end{figure}
\begin{figure}
\centering
\begin{tabular}{@{}ccc@{}}
\subfloat[caption1\label{fig:img_pair_1}]{%
\includegraphics[width=3cm]{img1.jpg}%
} &
\raisebox{-70pt}[0pt][0pt]{\subfloat[caption2\label{fig:img_complete_1}]{\includegraphics[width=3cm]{img2.jpg}}} &
\raisebox{-70pt}[0pt][0pt]{\subfloat[caption3\label{fig:img_complete_2}]{\includegraphics[width=3cm]{img3.jpg}}} \\
\subfloat[caption4\label{fig:img_pair_2}]{\includegraphics[width=3cm]{img4.jpg}} & & \\
\end{tabular}
\caption[]{Comments}
\label{fig:affinity}
\end{figure}
\end{document}
![enter image description here](https://i.stack.imgur.com/rJp9P.png)
The demo
option for graphicx
simply replaces actual figures with black rectangles; do not use that option in your actual document.
Best Answer
When compiling your document you should get the following error:
This is because the
caption
package isn't adapted to thesvjour3
document class. It detects unknown caption code and therefore switches itself into the "compatibility mode", trying to be as compatible as possible to thecaption
package v1.x from 1995.The
subcaption
package is relying on new features offered bycaption
v3.x, and therefore refuse to work in this environment.Possible solution: Try the
subfig
package instead which isn't relying oncaption
:An example document, derived from the template: