[Tex/LaTex] how to number the images using letters and numbers

floatsnumbering

I have 3 images and i want to number the images as follows: 1.a, 1.b, 1.c
to solve this problem i referred to this question but it is not exactly what i want, the link shows how to number the images as follows: A.1, A.2, A.3 while i want it other way around something like 1.a, 1.b,1.c

please let me know how to do it

Best Answer

You can use the subfigure environment from subcaption, and redefine \thesubcaption:

\documentclass{article}
\usepackage{subcaption}
\usepackage{graphicx}
\renewcommand\thesubfigure{\thefigure.\alph{subfigure}}
\DeclareCaptionLabelFormat{plain}{#2}
\captionsetup[subfigure]{labelformat = plain}

\begin{document}

\begin{figure}[htb]
\centering
    \begin{subfigure}{0.3\textwidth}
        \centering
        \includegraphics[width=0.9\textwidth]{AliceSteadman}
        \caption{\label{fig:Alice1}}
    \end{subfigure}
\hfill
    \begin{subfigure}{0.3\textwidth}
        \centering
        \includegraphics[width=0.9\textwidth]{AliceSteadman}
        \caption{\label{fig:Alice2}}
    \end{subfigure}
\hfill
    \begin{subfigure}{0.3\textwidth}
        \centering
        \includegraphics[width=0.9\textwidth]{AliceSteadman}
        \caption{\label{fig:Alice3}}
    \end{subfigure}
    \caption{}
    \label{fig:Alice}
\end{figure}

\end{document} 

enter image description here