[Tex/LaTex] New Format list of figure

table of contents

This is what I want :
enter image description here

I'm really being crazy with latex.

this is my code for toc :

\renewcommand\tableofcontents{%
\if@twocolumn
  \@restonecoltrue\onecolumn
\else
  \@restonecolfalse
\fi

\chapter*{\contentsname
    \@mkboth{%
       \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
{\raggedleft\normalfont Hal \par}%
      \@starttoc{toc}%
 \linespread{1}
 \if@restonecol\twocolumn\fi
}

Hal is page number.

could anyone help me please ?
Many thanks in advance

Best Answer

Here's a solution using the tocloft package:

\documentclass{book}
\usepackage[indonesian]{babel}
\usepackage{tocloft}
\usepackage{lipsum}

\addto\captionsindonesian{\renewcommand\listfigurename{Daftar Tabel}}

\renewcommand{\cftloftitlefont}{\hfill\large\bfseries\MakeUppercase} 
\renewcommand{\cftafterloftitle}{%
  \hfill\null\\[2\baselineskip]\bfseries No.\hfill\phantom{Hal}Judul\phantom{No.}\hfill Hal}
\renewcommand\cftafterloftitleskip{1\baselineskip}
\renewcommand\cftfigindent{0pt}

\begin{document}

\listoffigures

\begin{figure}[!hb]A\caption{test one}\end{figure}
\begin{figure}[!hb]A\caption{test two}\end{figure}

\end{document}

enter image description here

Related Question