X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/book_gpu.git/blobdiff_plain/8fc4c8914177b38f8042870c31065ea619b900ec..HEAD:/BookGPU/sunil.cls?ds=sidebyside diff --git a/BookGPU/sunil.cls b/BookGPU/sunil.cls index 9d42511..06b11df 100755 --- a/BookGPU/sunil.cls +++ b/BookGPU/sunil.cls @@ -815,10 +815,8 @@ \newcommand\subsubsection{\@ifstar{\@ssubsubsection}{\@trplarg{\@subsubsection}}} \def\@ssubsubsection#1{% - \if@ChapterTOCs - \myaddcontentsline{\@chaptoc}{chapsubsubsection}{\string\makebox[\subsecnumwidth][l]{}#1}\fi - \@startsection{subsubsection}{3}{\z@}{12\p@}{6\p@}{% - \SubsubsectionHeadFont}*{#1}} +% \if@ChapterTOCs \myaddcontentsline{\@chaptoc}{chapsubsubsection}{\string\makebox[\subsecnumwidth][l]{}#1}\fi + \@startsection{subsubsection}{3}{\z@}{12\p@}{6\p@}{\SubsubsectionHeadFont}*{#1}} \def\@subsubsection[#1][#2]#3{% \if@ChapterTOCs \addtocounter{subsubsection}{1}% @@ -991,7 +989,7 @@ \newcommand\@pnumwidth{1.55em} \newcommand\@tocrmarg{2.55em} \newcommand\@dotsep{4.5} -\setcounter{tocdepth}{3} +\setcounter{tocdepth}{1} \newcounter{numauthors} @@ -1050,7 +1048,7 @@ % \def\l@part#1#2{% \toc@draw - \gdef\toc@draw{\draw@part{\large #1}{\large #2}}} + \gdef\toc@draw{\draw@part{\large #1}{#2}}} \def\l@fm#1#2{% \toc@draw @@ -1140,7 +1138,7 @@ \toc@draw \gdef\toc@draw{\draw@section{#1}{#2}}} \def\draw@section#1#2{% - \@dottedtocline{1}{\section@toc@skip}{\SectionTOCWidth}{#1 }{{ + \@newdottedtocline{1}{\section@toc@skip}{\SectionTOCWidth}{#1 }{{ \tocfont #2}}} \newlength\subsection@toc@skip \subsection@toc@skip\section@toc@skip @@ -1185,6 +1183,28 @@ \@dottedtocline{5}{\subparagraph@toc@skip}{6em}{#1}{{ \tocfont #2}}} +\def\@newdottedtocline#1#2#3#4#5{% + \ifnum #1>\c@tocdepth + \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\hskip-\leftskip +%%% {#4\hfil}\nobreak +%%% \if@pdf +%%% \else +%%% \leaders\hbox{$\m@th\mkern\@dotsep mu\hbox{.}\mkern\@dotsep mu$}\hfill +%%% \nobreak +%%% \hb@xt@\@pnumwidth{\hfil\normalfont\normalcolor #5}% +%%%\fi +%%% \par} + \fi + } + + \def\@dottedtocline#1#2#3#4#5{% \ifnum #1>\c@tocdepth \else