Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
3  
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 1

up vote 5 down vote accepted

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

share|improve this answer
    
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.