Currently my list of figures looks like this
List of Figures
Figures 1 ........................x
Figures 2.........................x
How to make like this?
List of Figures
Figures 1 ........................x
Figures 2.........................x
Thank you
My code is:
\documentclass[a4paper,12pt,openleft]{book}
\begin{document}
\tableofcontents
\listoffigures
\chapter{chapter 1}
\begin{figure}[h]
\centering
\includegraphics{images.png}
\caption[Figure~\ref{fig:fig1}]{caption}
\label{fig1}
\end{figure}
\chapter{chapter 2}
\begin{figure}[h]
\centering
\includegraphics{images2.png}
\caption[Figure~\ref{fig:fig2}]{caption2}
\label{fig2}
\end{figure}
\end{document}

\usepackage{graphicx}in order to use\includegraphics. I don't know what is not working for you, see my detailed answer below. – bmv Jan 13 '18 at 16:17