# New Format list of figure

This is what I want :

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

-
it would be good if you would show a code example for starting, showing your effort and the class, packages and settings you are using, instead of "Please do all for me, and start from zero". –  Stefan Kottwitz Sep 10 '11 at 13:32
I create for toc, I'll show you ya, wait. –  Verly Sep 10 '11 at 13:47
I'm use report class, package = tocloft, I use lyx instead of texmaker.I have to crate the same format for lyx and texmaker in my highschool task. thanks for the advice sir –  Verly Sep 10 '11 at 14:39

## 1 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}


-
Why \vskip-2\baselineskip? –  lockstep Sep 10 '11 at 14:16
@lockstep: to reduce the default vertical skip between the line with the headings and the first entry, as in the OP's image. –  Gonzalo Medina Sep 10 '11 at 14:35
@Gonzalo: You can manage the skip after the heading by setting the length \cftafterloftitleskip to 2\baselineskip –  Werner Sep 10 '11 at 14:49
@Werner: yes, it's better to do so. I've updated my answer. –  Gonzalo Medina Sep 10 '11 at 14:54
@Gonzalo: Also, you need modify \phantom{PAG.} to \phantom{Hal} to get the appropriate centered spacing. You'll see that, at the moment, it is centered slightly to the right. –  Werner Sep 10 '11 at 14:59