I need to get Figure 1.1 (a) when i put \Cref{fig:NiceImage1}
.
I have to use \Cref{fig:NiceImage}\subref{fig:NiceImage1}
for getting same result.
\documentclass{scrbook}
\usepackage[demo]{graphicx}
\usepackage{subcaption}
\captionsetup{subrefformat=parens}
\usepackage{cleveref}
\setcounter{chapter}{1}
\begin{document}
\begin{figure}
\centering
\begin{subfigure}{0.31\textwidth}
\includegraphics[width=\textwidth]{image1}
\caption{Nice image1}
\label{fig:NiceImage1}
\end{subfigure}
\begin{subfigure}{0.31\textwidth}
\includegraphics[width=\textwidth]{image1}
\caption{Nice image 2}
\label{fig:NiceImage2}
\end{subfigure}
\begin{subfigure}{0.31\textwidth}
\includegraphics[width=\textwidth]{image1}
\caption{Nice image 3}
\label{fig:NiceImage3}
\end{subfigure}
\caption{
\label{fig:NiceImage}
Three images}
\end{figure}
Figure \ref{fig:NiceImage}
Figure \ref{fig:NiceImage} \subref{fig:NiceImage1}
\Cref{fig:NiceImage}
\Cref{fig:NiceImage1}
\end{document}
wpconf
class, it seems to be necessary also in the subfigures to put the labels within the captions. You seem only to have to put the label of the caption of the "common" caption of the figure.