In a lot of journals it is common to have single digit figure numbers and denote parts in the figures as (a), (b), and so on. I wanted to use a similar style. After reading the documentation to the caption
package and the cleveref
package I did not find anything similar.
I do not want to break up the picture in two parts and use subfigure
with two captions but keep it all in one.
Is there an easy way to realize this? My example looks as follows without the correct references:
\documentclass{scrbook}
\usepackage{caption}
\usepackage{cleveref}
\begin{document}
\begin{figure}
\centering
a \rule{10pt}{10pt} \hspace{1cm} b \rule{15pt}{15pt}
\caption{Common text here. \label{part_a}\textbf{(a)} Description of a. \label{part_b}\textbf{(b)} Description of b. }
\end{figure}
This should read fig. 0.1a and fig. 0.1b but it is only \cref{part_a} and \cref{part_b}.
\end{document}
This gives this output:
Best Answer
A small addition to Mico's answer with
\phantomcaption
option: