Je souhaite modifier l’apparence des chapitres et des sections en utilisant \documentclass[localtocs]{yathesis} \titleformat{\chapter}[display]{\centering\normalfont\bfseries\Huge}{CHAPITRE~\Roman{chapter}.}{10pt}{}[\vspace{1ex}\centering\rule{0.4\linewidth}{1pt}] \begin{document} \mainmatter \chapter{Test1} \section{Test} \section{Hein} \end{document} |
Voici une solution. \documentclass[localtocs]{yathesis} \makeatletter \titleformat{\chapter}[display]{\centering\normalfont\bfseries\Huge}{CHAPITRE~\Roman{chapter}.}{10pt}{}[\vspace{1ex}\centering\rule{0.4\linewidth}{1pt} \normalfont\normalsize \ifbool{YAD@localtocs}% {% \YAD@localtoc% \renewcommand{\YAD@localtoc}{\YAD@default@localtoc}% \ifbool{YAD@nextwithlocaltoc}% {% \boolfalse{YAD@localtocs}% \boolfalse{YAD@nextwithlocaltoc}% % \boolfalse{YAD@localtocs@classoption}% }{% }% }{% }] \makeatother \begin{document} \mainmatter \chapter{Test1} \section{Test} \section{Hein} \end{document} |