X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/book_gpu.git/blobdiff_plain/ca38d6218b9ba6a0fd2e0b2126c6b38146504b8e..HEAD:/BookGPU/sunil.cls?ds=inline diff --git a/BookGPU/sunil.cls b/BookGPU/sunil.cls index 2be566f..06b11df 100755 --- a/BookGPU/sunil.cls +++ b/BookGPU/sunil.cls @@ -789,7 +789,7 @@ \@ifstar{\@ssection}{\@trplarg{\@section}}} \def\@ssection#1{% \if@ChapterTOCs - \myaddcontentsline{\@chaptoc}{chapsection}{\protect\ssubnumberline{\thesection}#1}\fi + \myaddcontentsline{\@chaptoc}{chapsection}{\protect\ssubnumberline{\ }#1}\fi \@startsection{section}{1}{\z@}{30\p@}{6\p@}{\sec@rule\nopagebreak\vskip13.5\p@\nopagebreak\SectionHeadFont}*{#1}} \def\@section[#1][#2]#3{% \if@ChapterTOCs @@ -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