1

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

Elpharaoh
  • 271

1 Answers1

2

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

Bernard
  • 271,350
  • i tried ur answer but i getting this error: ! Package subcaption Error: This package can't be used in cooperation – Elpharaoh Oct 30 '16 at 16:05
  • In cooperation with what? You're probably loding the obsolete package subfigure, or subfig? – Bernard Oct 30 '16 at 16:14
  • i am using \usepackage{subfig} and i need it because i have the following :\begin{figure} [H] \centering
    \subfloat[Without EKF]{{\includegraphics[width=6cm]{4_no_EKF_marked} }}%
    \qquad
    \subfloat[With EKF]{{\includegraphics[width=6cm]{4_EKF_marked} }}%
    
    \caption{Comparison between the vehicle position derived from the GNSS sensor and the vehicle position derived from EKF filter}%
    \label{fig:Accuracy of Positioning}
    

    \end{figure}

    – Elpharaoh Oct 30 '16 at 16:34
  • But you also can do that with the subfigure environment. – Bernard Oct 30 '16 at 16:36