Historique des modifications [retour]
cliquez ici pour masquer/afficher la révision 7

24 Jui '18, 00:07

touhami's gravatar image

touhami
9.9k410

Le problème est corrigé par la version `0.99s` de 22-06-2018. La commande interne `\YAD@default@localtoc` responsable de production des *TOCs* partielles est définie par : \newcommand{\YAD@default@localtoc}{% ... \YAD@computelocalnumwidths\relax% \@ifundefined {Etoc@\YAD@localtocsdepth @@} {% }{% \etocsetnexttocdepth{\YAD@localtocsdepth}% } \localtableofcontents% ..... } Elle fait appel à la commande `\localtableofcontents` deux fois, la première d'entre elles étant implicite au niveau de `\YAD@computelocalnumwidths`. Or cet appel doit être précédé par `\etocsetnexttocdepth{\YAD@localtocsdepth}`. Voici deux propositions pour régler le problème. **1.** Redéfinir la commande `\YAD@default@localtoc` comme suit : \newcommand{\YAD@default@localtoc}{% ... \@ifundefined {Etoc@\YAD@localtocsdepth @@} {% }{% \etocsetnexttocdepth{\YAD@localtocsdepth}% } \YAD@computelocalnumwidths\relax% \@ifundefined {Etoc@\YAD@localtocsdepth @@} {% }{% \etocsetnexttocdepth{\YAD@localtocsdepth}% } \localtableofcontents% ..... } **ECM** \documentclass[secnumdepth=subparagraph,localtocs/depth=subparagraph]{yathesis} \usepackage[T1]{fontenc} \usepackage{babel} \makeatletter \patchcmd{\YAD@default@localtoc}{\YAD@computelocalnumwidths\relax}{% \@ifundefined {Etoc@\YAD@localtocsdepth @@} {% }{% \etocsetnexttocdepth{\YAD@localtocsdepth}% }\YAD@computelocalnumwidths\relax% }{}{} \makeatother \begin{document} \mainmatter \chapter{Chap1} \section{Sec 1} \subsection{subSec 1} \subsubsection{subsubSec 1} \paragraph{paragraph 1} \subparagraph{Subparagraph 1} Test \end{document} **2.** Ajouter `\etocsetnexttocdepth{\YAD@localtocsdepth}` à la définition de la commande `\YAD@computenumwidths@`. **ECM** \documentclass[secnumdepth=subparagraph,localtocs/depth=subparagraph]{yathesis} \usepackage[T1]{fontenc} \usepackage{babel} \makeatletter \pretocmd{\YAD@computenumwidths@}{% \@ifundefined {Etoc@\YAD@localtocsdepth @@} {% }{% \etocsetnexttocdepth{\YAD@localtocsdepth}% }}{}{} \makeatother \begin{document} \tableofcontents[depth=subparagraph] \mainmatter \chapter{Chap1} \section{Sec 1} \subsection{subSec 1} \subsubsection{subsubSec 1} \paragraph{paragraph 1} \subparagraph{Subparagraph 1} Test \end{document}
cliquez ici pour masquer/afficher la révision 6
mineure

14 Aoû '17, 12:53

Pathe's gravatar image

Pathe
7.6k49209252

La commande interne `\YAD@default@localtoc` responsable de production des *TOCs* partielles est définie par par : \newcommand{\YAD@default@localtoc}{% ... \YAD@computelocalnumwidths\relax% \@ifundefined {Etoc@\YAD@localtocsdepth @@} {% }{% \etocsetnexttocdepth{\YAD@localtocsdepth}% } \localtableofcontents% ..... } elle Elle fait appel à la commande `\localtableofcontents` deux fois dont fois, la première fois est d'entre elles étant implicite au niveau de `\YAD@computelocalnumwidths`. Or cet appel doit être précédée précédé par `\etocsetnexttocdepth{\YAD@localtocsdepth}`. `\etocsetnexttocdepth{\YAD@localtocsdepth}`. Voici deux proposition propositions pour régler le problème. **1.** Redéfinir la commande `\YAD@default@localtoc` comme suit suit : \newcommand{\YAD@default@localtoc}{% ... \@ifundefined {Etoc@\YAD@localtocsdepth @@} {% }{% \etocsetnexttocdepth{\YAD@localtocsdepth}% } \YAD@computelocalnumwidths\relax% \@ifundefined {Etoc@\YAD@localtocsdepth @@} {% }{% \etocsetnexttocdepth{\YAD@localtocsdepth}% } \localtableofcontents% ..... } **ECM** \documentclass[secnumdepth=subparagraph,localtocs/depth=subparagraph]{yathesis} \usepackage[T1]{fontenc} \usepackage{babel} \makeatletter \patchcmd{\YAD@default@localtoc}{\YAD@computelocalnumwidths\relax}{% \@ifundefined {Etoc@\YAD@localtocsdepth @@} {% }{% \etocsetnexttocdepth{\YAD@localtocsdepth}% }\YAD@computelocalnumwidths\relax% }{}{} \makeatother \begin{document} \mainmatter \chapter{Chap1} \section{Sec 1} \subsection{subSec 1} \subsubsection{subsubSec 1} \paragraph{paragraph 1} \subparagraph{Subparagraph 1} Test \end{document} **2.** Ajouter `\etocsetnexttocdepth{\YAD@localtocsdepth}` à la définition de la commande `\YAD@computenumwidths@` `\YAD@computenumwidths@`. **ECM** \documentclass[secnumdepth=subparagraph,localtocs/depth=subparagraph]{yathesis} \usepackage[T1]{fontenc} \usepackage{babel} \makeatletter \pretocmd{\YAD@computenumwidths@}{% \@ifundefined {Etoc@\YAD@localtocsdepth @@} {% }{% \etocsetnexttocdepth{\YAD@localtocsdepth}% }}{}{} \makeatother \begin{document} \tableofcontents[depth=subparagraph] \mainmatter \chapter{Chap1} \section{Sec 1} \subsection{subSec 1} \subsubsection{subsubSec 1} \paragraph{paragraph 1} \subparagraph{Subparagraph 1} Test \end{document}
cliquez ici pour masquer/afficher la révision 5

23 Jul '17, 00:17

touhami's gravatar image

touhami
9.9k410

cliquez ici pour masquer/afficher la révision 4

22 Jul '17, 22:24

touhami's gravatar image

touhami
9.9k410

cliquez ici pour masquer/afficher la révision 3

22 Jul '17, 22:17

touhami's gravatar image

touhami
9.9k410

cliquez ici pour masquer/afficher la révision 2

22 Jul '17, 02:38

touhami's gravatar image

touhami
9.9k410

cliquez ici pour masquer/afficher la révision 1

22 Jul '17, 02:38

touhami's gravatar image

touhami
9.9k410