[linux-leman] LaTeX: table des matières [réponse]

Yann Forget yann at forget-me.net
Thu May 1 20:15:41 CEST 2003


Bonjour,

Après pas mal de tatonnements, j'ai trouvé la bonne syntaxe.

\makeatletter
\renewcommand*\l at chapter[2]{%
 \ifnum \c at tocdepth >\m at ne
  \addpenalty{-\@highpenalty}%
      \vskip 1.0em \@plus\p@
          \setlength\@tempdima{5em}%
          \begingroup
          \parindent \z@ \rightskip \@pnumwidth
          \parfillskip -\@pnumwidth
          \leavevmode \bfseries
          \advance\leftskip\@tempdima
          \hskip -\leftskip
          #1\nobreak\hfil \nobreak\hb at xt@\@pnumwidth{\hss #2}\par
          \penalty\@highpenalty
        \endgroup
 \fi}
\makeatother

Yann

-- 
http://www.forget-me.net
Alternatives sur le Net
http://www.antig8.org
Sommet alternatif au G8



More information about the gull mailing list