I am a novice of LaTeX, and I encounter the following code which I can't understand fully.
\def\@dottedtocline#1#2#3#4#5{%
\ifnum #1>\c@tocdepth tt\else
\vskip \z@ \@plus.2\p@
{\leftskip #2 \relax \rightskip \@tocrmarg \parfillskip -\rightskip
\parindent #2 \relax\@afterindenttrue
\interlinepenalty\@M
\leavevmode
\@tempdima #3 \relax
\advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
{#4}\nobreak
\leaders\hbox{$\m@th\mkern 1.5mu\cdot\mkern 1.5mu$}\hfill
\nobreak
\hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}%
\par}%
\fi}
The first is
\leftskip #2 \relax \rightskip \@tocrmarg \parfillskip -\rightskip
\parindent #2 \relax\@afterindenttrue
Could somebody explain it to me in detail?
The second
\advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
What's the meaning of it, why using \hskip -\leftskip and what is the meaning of \advance\leftskip \@tempdima?
Thank you in advance!