1. The TOC lines are not properly numbered.
2. The TOT lines don't show on the TOT.

Any idea how to fix that ?

%!TEX TS-program = pdflatex
\documentclass[10pt,a4paper]{book}
\usepackage{array}
%------------
\newcommand{\SampleTable}{
\begin{table}
\caption{Title of Sample Table}
\begin{tabular}{ l c r }
1 & 2 & 3 \\
\end{tabular}
\end{table}
}
%------------
\begin{document}
\frontmatter
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\tableofcontents
\newpage

\section{section one}
\subsection{subsection one}

\setcounter{subsubsection}{0}

\SampleTable
\backmatter
\listoftables

\end{document}

-
While the \tableofcontents uses toc for an abbreviation, \listoftables uses lot (not tot). Also, what numbers do you want to add to the ToC/LoT? \addcontentsline only adds what you supply, and you didn't supply any number. –  Werner Mar 8 '13 at 20:37
it's "list of tables" (lot, accessed by \listoftables), not "table of tables". –  barbara beeton Mar 8 '13 at 20:40
I would just like to get to usual latex numbering: 0.1.1.1 for the first line added, 0.1.1.2 for the second line added, 0.1.1.3 for the following subsubsection. ... and thanks for LOT ! –  SDrolet Mar 8 '13 at 20:45
But why are you using \addcontentsline manually you should almost never need to do that \caption should add the entries automatically to the lot and \(sub)section should automatically add entries to the toc. Also "usual" numbering is 1.1.1 not 0.1.1 you are using book so the intention is that all \section are within a \chapter If you want \section to be the top level section unit you should use article –  David Carlisle Mar 8 '13 at 22:45

Here are the two answers, and the resulting code:

1. As Werner mentioned, \addcontentsline doesn't include the numbering of the line added, according to the level where it was added (ex.: subsubsection). So, we have to add the numbers (value of the chapter, value of the section, value of the subsection, value of the subsubsection), with the help of counters (see http://en.wikibooks.org/wiki/LaTeX/Counters).

    \addtocounter{subsubsection}{1}


A better option is pointed out by Werner (comment below): \protect\numberline{\thesubsubsection}

        \addcontentsline{toc}{subsubsection}{\protect\numberline{\thesubsubsection} line added to TOC: subsubsection one}

1. Indeed, TOT doesn't exist, but "lot" does.

%!TEX TS-program = pdflatex
\documentclass[10pt,a4paper]{book}
\usepackage{array}
%------------
\newcommand{\SampleTable}{
\begin{table}
\caption{Title of Sample Table}
\begin{tabular}{ l c r }
1 & 2 & 3 \\
\end{tabular}
\end{table}
}
%------------
\begin{document}
\frontmatter
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\tableofcontents
\newpage

\part{part one}
\chapter{chapter one}
\section{section one}
\subsection{subsection one}

\SampleTable
\backmatter
\listoftables

\end{document}

%% Reference on counters: http://en.wikibooks.org/wiki/LaTeX/Counters


And the code with Werner's better option:

    %!TEX TS-program = pdflatex
\documentclass[10pt,a4paper]{book}
\usepackage{array}
%------------
\newcommand{\SampleTable}{
\begin{table}
\caption{Title of Sample Table}
\begin{tabular}{ l c r }
1 & 2 & 3 \\
\end{tabular}
\end{table}
}
%------------
\begin{document}
\frontmatter
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\tableofcontents
\newpage

\part{part one}
\chapter{chapter one}
\section{section one}
\subsection{subsection one}


I truly don't understand what is going on here... but instead of using \arabic{chapter}.\arabic{section}.\arabic{subsection}.\arabic{subsubsection}, you can just use \protect\numberline{\thesubsection}. Compare that to adding \subsubsection{test} somewhere, and look at the indentation/spacing. \numberline is the macro that sets the sectional unit number in a box of specific width, making things line up properly. –  Werner Mar 9 '13 at 0:01