Ma table des matières a plus de 10 entrées de chapitre et la taille de l'espace entre le numéro de chapitre et le titre est trop petit.

À titre indicatif, j'ai bien trouvé un extrait de code pour modifier l'espace entre les numéros de section, sous-section ... et leur titre, mais pas pour le chapitre.

Ouvrir dans l'éditeur Overleaf
\makeatletter%
\renewcommand*\l@section{\@dottedtocline{1}{1.8em}{2.8em}}%
\renewcommand*\l@subsection{\@dottedtocline{2}{4.6em}{3.2em}}%
\renewcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.7em}}%
\renewcommand*\l@paragraph{\@dottedtocline{4}{10em}{5.5em}}%
\renewcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6.5em}}%
\makeatother%
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Si possible, j'aimerai éviter d'utiliser un nouveau paquetage.

Merci de vos lumières.

Posée 19 Déc '19, 14:27

polymorphisme's gravatar image

polymorphisme
580925
Taux d'acceptation : 50%

Modifiée 21 Déc '19, 23:59

Pathe's gravatar image

Pathe ♦♦
7.5k49208252

1

Avec l'extension etoolbox il suffit d'ajouter \patchcmd\l@chapter{1.5em}{1.8em}{}{}

(19 Déc '19, 15:21) touhami touhami's gravatar image

Avec les classes standard, tout comme les autres subdivisions, vous pouvez modifier la commande \l@chapter.

Ouvrir dans l'éditeur Overleaf
\documentclass[french]{book}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{babel}
\makeatletter
\renewcommand*\l@chapter[2]{%
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
\vskip 1.0em \@plus\p@
\setlength\@tempdima{1.8em}% % ---<--1.5em
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode \bfseries
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\fi}
\renewcommand*\l@section{\@dottedtocline{1}{1.8em}{2.8em}}%
\renewcommand*\l@subsection{\@dottedtocline{2}{4.6em}{3.2em}}%
\renewcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.7em}}%
\renewcommand*\l@paragraph{\@dottedtocline{4}{10em}{5.5em}}%
\renewcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6.5em}}%
\makeatother
\begin{document}
\tableofcontents
\chapter{foo bar baz}
\section{Bla bla}
\chapter{foo bar baz}
\chapter{foo bar baz}
\chapter{foo bar baz}
\chapter{foo bar baz}
\chapter{foo bar baz}
\chapter{foo bar baz}
\chapter{foo bar baz}
\chapter{foo bar baz}
\chapter{foo bar baz}
\chapter{foo bar baz}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Lien permanent

Publiée 19 Déc '19, 15:10

touhami's gravatar image

touhami
9.8k410
Taux d'acceptation : 51%

Modifiée 20 Déc '19, 20:32

Bernard's gravatar image

Bernard
4.6k15

Votre réponse
[Masquer l'aperçu]

Suivre cette question

Par courriel :

Une fois que vous serez enregistré, vous pourrez souscrire à n'importe quelle mise à jour ici

Par flux RSS :

Réponses

Réponses et commentaires

Mots-clés de la question :

×23
×6

Question posée : 19 Déc '19, 14:27

Question vue : 6,288 fois

Dernière mise à jour : 20 Déc '19, 20:32

C'est votre première visite ici ? Consultez la FAQ !

×