From ecb12dabfbb60c45eaa9895a9cf36944e055c6f8 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 17 Jun 2020 21:35:37 +0000 Subject: yathesis (17jun20) git-svn-id: svn://tug.org/texlive/trunk@55578 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/yathesis/CHANGELOG.md | 12 ++ Master/texmf-dist/doc/latex/yathesis/README.md | 2 +- .../latex/yathesis/addons/completion/yathesis.cwl | 4 +- .../annexes/incompatibilites-connues.tex | 4 +- .../documentation/annexes/packages-charges.tex | 9 +- .../documentation/corps/personnalisation.tex | 10 +- .../documentation/corps/proprietes-document.tex | 21 ++++ .../french/documentation/glossaries/glossary.tex | 7 +- .../french/documentation/liminaires/abstract.tex | 2 +- .../yathesis/french/documentation/yathesis-fr.pdf | Bin 6516511 -> 6522425 bytes .../yathesis/french/documentation/yathesis-fr.tex | 2 + .../french/exemples/specimen/a-plat/these.pdf | Bin 1245417 -> 1245596 bytes .../texmf-dist/source/latex/yathesis/yathesis.dtx | 139 +++++++++++++-------- Master/texmf-dist/tex/latex/yathesis/yathesis.cls | 79 ++++++------ 14 files changed, 182 insertions(+), 109 deletions(-) diff --git a/Master/texmf-dist/doc/latex/yathesis/CHANGELOG.md b/Master/texmf-dist/doc/latex/yathesis/CHANGELOG.md index 8355f3c1582..6893e749ab1 100644 --- a/Master/texmf-dist/doc/latex/yathesis/CHANGELOG.md +++ b/Master/texmf-dist/doc/latex/yathesis/CHANGELOG.md @@ -1,5 +1,17 @@ # [Unreleased] +# [1.0.3] - 2020-06-16 + +## Changed + +- Documentation revised. +- Specimens improved. +- Package `titlesec` used intead of `titleps`: possible (hopefully slight) layout discrepancies. + +## Fixed +- Bug gh #74 (https://git.io/Jf64U). +- Bug gh #65 (https://git.io/Jf64k), continuation and (?) ending. + # [1.0.2] - 2020-04-13 ## Changed diff --git a/Master/texmf-dist/doc/latex/yathesis/README.md b/Master/texmf-dist/doc/latex/yathesis/README.md index 3bc87c50391..33f9a33c6b3 100644 --- a/Master/texmf-dist/doc/latex/yathesis/README.md +++ b/Master/texmf-dist/doc/latex/yathesis/README.md @@ -1,6 +1,6 @@ ----------------------------------------------------------------------- -- `yathesis` --- Yet Another Thesis Class, version 1.0.2 +- `yathesis` --- Yet Another Thesis Class, version 1.0.3 - E-mail: `denis.bitouze@univ-littoral.fr` - Released under the LaTeX Project Public License v1.3c or later. See http://www.latex-project.org/lppl.txt diff --git a/Master/texmf-dist/doc/latex/yathesis/addons/completion/yathesis.cwl b/Master/texmf-dist/doc/latex/yathesis/addons/completion/yathesis.cwl index c7c13d8c8cd..c65f9516422 100644 --- a/Master/texmf-dist/doc/latex/yathesis/addons/completion/yathesis.cwl +++ b/Master/texmf-dist/doc/latex/yathesis/addons/completion/yathesis.cwl @@ -32,7 +32,7 @@ #include:setspace #include:tcolorbox #include:textcase -#include:titleps +#include:titlesec #include:tocbibind #include:translator #include:twoopt @@ -85,7 +85,7 @@ adjustbox setspace xcolor datatool -titleps +titlesec draftwatermark babel datetime diff --git a/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/incompatibilites-connues.tex b/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/incompatibilites-connues.tex index 58fc75a3acf..dcfa2111dcd 100644 --- a/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/incompatibilites-connues.tex +++ b/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/incompatibilites-connues.tex @@ -18,8 +18,6 @@ les packages concernés % et la nature de l'incompatibilité correspondante (que l'auteur va chercher à régler dans un futur indéterminé) : \begin{description} -\item[\package{titlesec}] qui est incompatible avec le \Package{titleps} que - charge automatiquement la classe. -\item[\package{fancyhdr}] qui est incompatible avec le \Package{titleps} que +\item[\package{fancyhdr}] qui est incompatible avec le \Package{titlesec} que charge automatiquement la classe. \end{description} diff --git a/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/packages-charges.tex b/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/packages-charges.tex index 49ce9b945a1..195c6991e85 100644 --- a/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/packages-charges.tex +++ b/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/packages-charges.tex @@ -89,13 +89,14 @@ chargement, dans la liste suivante qui indique leur fonction et le cas échéant \item[option par défaut :] \docAuxKey{PetersLenny} ; \item[personnalisation :] option \refKey{fncychap} de la \yatCl ; \end{description} -\item[\package{titleps} :] % - % \changes{v0.99j}{2014-07-18}{Package \package{titleps} remplacé par le - % \Package{titlesec}}% +\item[\package{titlesec} :] % + \changes*{v1.0.3}{2020-06-16}{Gestion des titres courants désormais assurée + par le \Package{titlesec} (et plus par \package{titleps}, ce qui peut + conduire à des mises en page différentes)}% gestion des styles de pages ; \begin{description} % \item[option par défaut :] \docAuxKey{pagestyles} ; - \item[personnalisation :] option \refKey{titleps} de la \yatCl ; + \item[personnalisation :] option \refKey{titlesec} de la \yatCl ; \end{description} % \begin{dbwarning}{Package \package{titlesec} : à utiliser avec % discernement}{} diff --git a/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/personnalisation.tex b/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/personnalisation.tex index efef940ef86..169c1f7cd25 100644 --- a/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/personnalisation.tex +++ b/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/personnalisation.tex @@ -556,7 +556,7 @@ Les documents composés avec la \yatCl{} peuvent avoir deux formats de sortie : % si elle figure dans le texte ordinaire ; \item \meta{texte} - \lstinline[deletekeywords={[2]url}]+(\url{+\meta{\normalfont\ttfamily\glsxtrshort*{url}}|})| + \lstinline+(\url{+\meta{\normalfont\ttfamily\glsxtrshort*{url}}|})| si elle figure en note de bas de page ; \end{itemize} \item les liens hypertextes sont systématiquement matérialisés comme le @@ -908,13 +908,11 @@ peuvent être passées à leurs options). Cette option permet de passer une ou plusieurs \meta{option(s)} au \Package{datatool}. \end{docKey} -\begin{docKey}{titleps}{=\marg{option(s)}}{pas valeur par défaut, initialement +\begin{docKey}{titlesec}{=\marg{option(s)}}{pas valeur par défaut, initialement vide} - \index{option!de package chargé par \yatcl!titleps@\package*{titleps}}% - % \changes{v0.99j}{2014-07-18}{Clé \protect\refAux{titleps} remplacée par - % (et alias de) la clé \protect\refKey{titlesec}}% + \index{option!de package chargé par \yatcl!titlesec@\package*{titlesec}}% Cette option permet de passer une ou plusieurs \meta{option(s)} au - \Package{titleps}. + \Package{titlesec}. \end{docKey} \begin{docKey}{draftwatermark}{=\marg{option(s)}}{pas valeur par défaut, initialement vide} diff --git a/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/proprietes-document.tex b/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/proprietes-document.tex index 206b9a1bf19..eaa072e9509 100644 --- a/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/proprietes-document.tex +++ b/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/proprietes-document.tex @@ -936,6 +936,27 @@ Les mots clés de la thèse sont stipulés au moyen de la commande \end{itemize} \end{itemize} \end{docCommand} +% +\begin{dbwarning}{Mots clés par défaut convertis en bas de casse}{} + \index{mot clé!casse}% + Par défaut, les mots clés sont convertis en bas de casse (minuscules). Cela + peut ne pas être souhaité pour tous les mots clés, notamment pour ceux qui + sont des noms propres (ou en dérivent). On pourra alors recourir à la commande + \refCom{NoCaseChange} suivante. +\end{dbwarning} +% +\begin{docCommand}{NoCaseChange}{\marg{texte}} + \index{mot clé!\gls{casse}}% + Cette commande préserve la \gls{casse} du \meta{texte} qui lui est passé + en argument. +\end{docCommand} + +\begin{dbexample}{Mots clés}{} + \indexex{mot clé}% +\begin{preamblecode}[listing options={deletekeywords={[5]keywords}}] +\keywords{déterminant, pivot de \NoCaseChange{Gauss}}{determinant, \NoCaseChange{Gaussian} elimination} +\end{preamblecode} +\end{dbexample} %%% Local Variables: %%% mode: latex diff --git a/Master/texmf-dist/doc/latex/yathesis/french/documentation/glossaries/glossary.tex b/Master/texmf-dist/doc/latex/yathesis/french/documentation/glossaries/glossary.tex index 432c5f78c4b..6f9f972941e 100644 --- a/Master/texmf-dist/doc/latex/yathesis/french/documentation/glossaries/glossary.tex +++ b/Master/texmf-dist/doc/latex/yathesis/french/documentation/glossaries/glossary.tex @@ -18,5 +18,10 @@ name=faux-texte,% description={texte sans valeur sémantique, permettant de remplir des pages lors d'une mise en forme afin d'en calibrer le contenu en l'absence du texte - définitif\footnote{Cf. \url{http://fr.wikipedia.org/wiki/Faux-texte}.}}% + définitif\footnote{Cf. \url{http://fr.wikipedia.org/wiki/Faux-texte}.}% + }% +}% +\newglossaryentry{casse}{% + name=casse,% + description={distinction entre lettres capitales et lettres minuscules}% } diff --git a/Master/texmf-dist/doc/latex/yathesis/french/documentation/liminaires/abstract.tex b/Master/texmf-dist/doc/latex/yathesis/french/documentation/liminaires/abstract.tex index d4b57b60185..5c944bd30f6 100644 --- a/Master/texmf-dist/doc/latex/yathesis/french/documentation/liminaires/abstract.tex +++ b/Master/texmf-dist/doc/latex/yathesis/french/documentation/liminaires/abstract.tex @@ -33,7 +33,7 @@ \LaTeX{}, including packages: \begin{itemize} \item \package{biblatex} for the bibliography ; - \item \package{glossaries} for the glossary, list of acronyms and symbols list. + \item \package{glossaries} for the glossary, list of acronyms and list of symbols. \end{itemize} The \yatCl{}, based on the \Class{book}, aims to be both simple to use and, to some extent, (easily) customizable. diff --git a/Master/texmf-dist/doc/latex/yathesis/french/documentation/yathesis-fr.pdf b/Master/texmf-dist/doc/latex/yathesis/french/documentation/yathesis-fr.pdf index fcb6e00bce5..520a5a92769 100644 Binary files a/Master/texmf-dist/doc/latex/yathesis/french/documentation/yathesis-fr.pdf and b/Master/texmf-dist/doc/latex/yathesis/french/documentation/yathesis-fr.pdf differ diff --git a/Master/texmf-dist/doc/latex/yathesis/french/documentation/yathesis-fr.tex b/Master/texmf-dist/doc/latex/yathesis/french/documentation/yathesis-fr.tex index ed9435c5235..028f61bc4b2 100644 --- a/Master/texmf-dist/doc/latex/yathesis/french/documentation/yathesis-fr.tex +++ b/Master/texmf-dist/doc/latex/yathesis/french/documentation/yathesis-fr.tex @@ -34,6 +34,8 @@ \makeindex[title=Index des concepts,extout=pdx,extin=pnd,columnseprule] % \AtEndPreamble{% + \changes{v1.0.3}{2020-06-16}{Documentation révisée}% + \changes{v1.0.3}{2020-06-16}{Correction de bugs}% \changes{v1.0.2}{2020-04-13}{Documentation révisée}% \changes{v1.0.2}{2020-04-13}{Correction de bugs}% \changes{v1.0.0}{2020-03-26}{Documentation révisée}% diff --git a/Master/texmf-dist/doc/latex/yathesis/french/exemples/specimen/a-plat/these.pdf b/Master/texmf-dist/doc/latex/yathesis/french/exemples/specimen/a-plat/these.pdf index 968ded32ced..1104cc6f7df 100644 Binary files a/Master/texmf-dist/doc/latex/yathesis/french/exemples/specimen/a-plat/these.pdf and b/Master/texmf-dist/doc/latex/yathesis/french/exemples/specimen/a-plat/these.pdf differ diff --git a/Master/texmf-dist/source/latex/yathesis/yathesis.dtx b/Master/texmf-dist/source/latex/yathesis/yathesis.dtx index 984be7e0ae0..9b7a90f18bd 100644 --- a/Master/texmf-dist/source/latex/yathesis/yathesis.dtx +++ b/Master/texmf-dist/source/latex/yathesis/yathesis.dtx @@ -23,7 +23,7 @@ %<*readme> ----------------------------------------------------------------------- -- `yathesis` --- Yet Another Thesis Class, version 1.0.2 +- `yathesis` --- Yet Another Thesis Class, version 1.0.3 - E-mail: `denis.bitouze@univ-littoral.fr` - Released under the LaTeX Project Public License v1.3c or later. See http://www.latex-project.org/lppl.txt @@ -70,8 +70,8 @@ Typesetting the documentation of the class requires: \fi % %<*class|install> -\def\yathesisfileversion{1.0.2} -\def\yathesisfiledate{2020-04-13} +\def\yathesisfileversion{1.0.3} +\def\yathesisfiledate{2020-06-16} % %<*install> \input docstrip.tex @@ -278,6 +278,7 @@ This work consists of the file yathesis.dtx \documentclass[english,french]{ltxdoc} \usepackage[yad]{denisbdoc} \lstMakeShortInline[style=dbtex]" +%" \usepackage[lining]{libertine} \renewcommand{\ttdefault}{lmtt} \makeatletter @@ -854,7 +855,6 @@ This work consists of the file yathesis.dtx refsegment=chapter,% defernumbers=#1% }% - \AfterEndPreamble{\newrefsegment}% }% } \yadsetup{% @@ -955,7 +955,6 @@ This work consists of the file yathesis.dtx setspace/.code={\PassOptionsToPackage{#1}{setspace}},% xcolor/.code={\PassOptionsToPackage{#1}{xcolor}},% datatool/.code={\PassOptionsToPackage{#1}{datatool}},% - titleps/.code={\PassOptionsToPackage{#1}{titleps}},% titlesec/.code={\PassOptionsToPackage{#1}{titlesec}},% draftwatermark/.code={\PassOptionsToPackage{#1}{draftwatermark}},% babel/.code={\PassOptionsToPackage{#1}{babel}},% @@ -1083,7 +1082,7 @@ This work consists of the file yathesis.dtx % \end{macrocode} % Pour gérer les titres courants (entêtes) et bas de page % \begin{macrocode} -\RequirePackage[nopatches]{titleps}[2011/12/15]% +\RequirePackage[pagestyles]{titlesec}[2019/10/16]% % \end{macrocode} % Pour supprimer le numéro de page sur la page de titre d'une partie % \begin{macrocode} @@ -3116,7 +3115,7 @@ This work consists of the file yathesis.dtx % \begin{macro}{\pagestyle} % Redéfinition permettant d'éviter de devoir ajouter % \lstinline|\cleardoublepage| avant chaque la commande -% \lstinline|\pagestyle| fournie par le package \package{titleps} +% \lstinline|\pagestyle| fournie par le package \package{titlesec} % (cet ajout est pour l'instant nécessaire pour que les entêtes % aux frontières des chapitres non numérotés ne soient pas % erronés). @@ -3272,7 +3271,7 @@ This work consists of the file yathesis.dtx % \end{macrocode} % % Globalement dans le document, la table des matières et la -% numérotation des paragraphes vont jusqu'aux sous-sections +% numérotation des paragraphes vont jusqu'aux sous-sections. % \begin{macrocode} \etocsettocdepth{\YAD@tocdepth}% \AtBeginDocument{% @@ -3283,18 +3282,15 @@ This work consists of the file yathesis.dtx % % \end{macrocode} % -% Définition des styles de pages (basées sur le \Package{titleps}) +% Définition des styles de pages (basés sur le \Package{titleps}, chargé par le +% \Package{titlesec} avec l'option ×titleps×). % % \begin{macro}{\YAD@chapter@header} % Définition de titres courants % \begin{macrocode} \DeclareRobustCommand{\YAD@chapter@header}{% - \ifboolexpr{ - ((test {\ifnumcomp{\value{secnumdepth}}{>}{-1}} or (not bool - {YAD@nonnumbered@chapter})) and test {\ifnumcomp{\value{chapter}}{>}{0}}) and - (not bool {YAD@backmatter}) - }{% - \MakeUppercase\chaptername{}\ \thechapter. + \ifthechapter{% + \MakeUppercase\chaptertitlename\ \thechapter. }{% }% \chaptertitle% @@ -3305,20 +3301,7 @@ This work consists of the file yathesis.dtx % \begin{macro}{\YAD@section@header} % \begin{macrocode} \DeclareRobustCommand{\YAD@section@header}{% - \ifboolexpr{ - ( - ( - test {\ifnumcomp{\value{secnumdepth}}{>}{0}} - or - (not bool {YAD@nonnumbered@section}) - ) - and - test {\ifnumcomp{\value{chapter}}{>}{0}}) - and - (not bool {YAD@backmatter}) - and - (not bool {YAD@localbibs@used}) - }{% + \ifthesection{% \thesection. }{% }% @@ -3512,7 +3495,7 @@ This work consists of the file yathesis.dtx }% % \end{macrocode} % Pour que les bibliographies locales apparaissent automatiquement à chaque fin de -% chapitre, la commande "\chapter" est redéfinie de manière à commencer par +% chapitre, la commande "\chapter" est redéfinie de manière être précédée par % l'insertion de la bibliographie locale ("\printlocalbibs") du, donc, chapitre % précédent (affichée seulement si celle-ci n'est pas vide). Ceci fonctionne % bien, sauf : @@ -4083,7 +4066,8 @@ This work consists of the file yathesis.dtx % \end{macrocode} % \end{macro} % -% Si la commande "\maketitle" n'a pas été utilisée, une erreur est émise. +% Si la commande "\maketitle" n'a pas été utilisée, une erreur est émise (en +% version finale). % \begin{macrocode} \AtEndDocument{% \ifboolexpr{% @@ -4101,6 +4085,11 @@ This work consists of the file yathesis.dtx }% % \end{macrocode} % +% Le mémoire est, à son début, automatiquement en style de pages préliminaires. +% \begin{macrocode} +\AfterEndPreamble{\pagestyle{preliminary}}% +% \end{macrocode} +% % Code pour l'éventuel colophon % \begin{macrocode} \newcommand{\YAD@insert@colophon}{% @@ -5105,11 +5094,18 @@ This work consists of the file yathesis.dtx % or local) TOCs. For this, it is enough to \enquote{relax} "\addcontentsline". % \begin{macrocode} \renewcommand\addcontentsline[3]{}% - \section *{\kern\dimen@ % \dimen@ works here by sheer luck - % \contentsname% - % \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}% - \large\textbf{\translate{lbl-localtocname}}% + \begingroup + \titlespacing*{\section}{\dimen@}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex} + \section*{% + \large% + \translate{lbl-localtocname}% }% + \endgroup +% \end{macrocode} +% We don't want the header contain the title of the previous (dummy) section in case +% the first \enquote{real} section shows up. +% \begin{macrocode} + \sectionmark{}% % \end{macrocode} % We restore the original behavior of "\addcontentsline". % \begin{macrocode} @@ -5286,11 +5282,31 @@ This work consists of the file yathesis.dtx \ifbool{YAD@localbibs}{% \ifbool{YAD@localbibs@used}{% }{% - \let\YAD@ORI@blx@warn@bibempty\blx@warn@bibempty% - \def\blx@warn@bibempty{}% - \YAD@printbibliography@ORI[segment=\therefsegment,heading=YAD@localbibs@heading]% - \let\blx@warn@bibempty\YAD@ORI@blx@warn@bibempty% - \booltrue{YAD@localbibs@used}% +% \end{macrocode} +% \end{environment} +% +% On n'affiche une bibliographie locale que dans les segments de bibliographie +% autres que celui numéroté 0 sans quoi la bibliographie globale est suivie +% d'une bibliographie locale contenant toutes les citations insérées en dehors +% d'un segment (par exemple en cas de ×\nocite{*}× ou de citation par exemple +% dans les épigraphes). +% \begin{macrocode} + \ifnumcomp{\value{refsegment}}{=}{0}{% + }{% + \let\YAD@ORI@blx@warn@bibempty\blx@warn@bibempty% + \def\blx@warn@bibempty{}% +% \end{macrocode} +% Les bibliographies locales sont composées en interligne simple +% \begin{macrocode} + \bgroup + \par% + \singlespacing% + \YAD@printbibliography@ORI[segment=\therefsegment,heading=YAD@localbibs@heading]% + \par% + \egroup% + \let\blx@warn@bibempty\YAD@ORI@blx@warn@bibempty% + \booltrue{YAD@localbibs@used}% + }% }% }{% }% @@ -6002,7 +6018,8 @@ This work consists of the file yathesis.dtx % \begin{macrocode} \AtEndPreamble{% \@ifpackageloaded{biblatex}{% - \defbibheading{YAD@localbibs@heading}[\translate{lbl-localbibname}]{% + \defbibheading{YAD@localbibs@heading}[\translate{lbl-localbibname} % (\therefsegment) + ]{% \renewcommand\addcontentsline[3]{}% \section*{#1}% \let\addcontentsline\YAD@addcontentsline% @@ -6024,20 +6041,26 @@ This work consists of the file yathesis.dtx \let\YAD@printbibliography@ORI\printbibliography% \renewcommand{\printbibliography}[1][]{% \booltrue{YAD@printbibliography@used}% + \bgroup + \par% + \singlespacing% + \YAD@printbibliography@ORI[#1]% % \end{macrocode} % -% Un hack aimablement fourni par samcarter -% (\url{https://texnique.fr/osqa/questions/6977/header-avec-biblatex/6978}) -% a permis d'éviter que l'entête de la bibliographie, en dernière page de -% celle-ci, ne contienne pas seulement \enquote{Bibliographie} mais -% \enquote{CHAPITRE XXX. Bibliographie}. +% On introduit un segment de bibliographie vide sans quoi la bibliographie est +% suivie de la bibliographie locale du chapitre précédent (quand il en a une), +% avec en outre un titre courant incorrect sur les pages paires +% (\enquote{CHAPITRE (ou ANNEXE) XXX. Bibliographie du présent chapitre}). % \begin{macrocode} - \singlespace% - \chapter*{\bibname}% - \YAD@printbibliography@ORI[heading=none,#1]% - \endsinglespace% + \newrefsegment% + \endrefsegment% + \egroup% }% }{% +% \end{macrocode} +% +% Si \package{biblatex} non chargé (\package{bibtex} supposé). +% \begin{macrocode} \BeforeBeginEnvironment{thebibliography}{% \singlespacing% }% @@ -6049,6 +6072,18 @@ This work consists of the file yathesis.dtx % \end{macrocode} % \end{macro} % +% On s'assure que, en fin de document, les \enquote{chapitres} et +% \enquote{section} sont non numérotés afin d'éviter sur la (ou les ?) +% dernière(s) page(s) des titres courants incorrects (comportant +% \enquote{Chapitre XXX. ...} ou \enquote{XXX.XXX} qui ne devraient pas +% apparaître si le dernier chapitre du document est non numéroté). +% \begin{macrocode} +\AtEndDocument{% + \booltrue{YAD@nonnumbered@chapter}% + \booltrue{YAD@nonnumbered@section}% +} +% \end{macrocode} +% % Si la commande "\printbibliography" n'a pas été utilisée, une erreur est émise. % \begin{macrocode} \AtEndDocument{% @@ -6509,7 +6544,7 @@ This work consists of the file yathesis.dtx #include:setspace #include:tcolorbox #include:textcase -#include:titleps +#include:titlesec #include:tocbibind #include:translator #include:twoopt @@ -6562,7 +6597,7 @@ adjustbox setspace xcolor datatool -titleps +titlesec draftwatermark babel datetime diff --git a/Master/texmf-dist/tex/latex/yathesis/yathesis.cls b/Master/texmf-dist/tex/latex/yathesis/yathesis.cls index 92e1480b383..ed9a324e442 100644 --- a/Master/texmf-dist/tex/latex/yathesis/yathesis.cls +++ b/Master/texmf-dist/tex/latex/yathesis/yathesis.cls @@ -11,8 +11,8 @@ %% Released under the LaTeX Project Public License v1.3c or later %% See http://www.latex-project.org/lppl.txt %% ----------------------------------------------------------------------- -\def\yathesisfileversion{1.0.2} -\def\yathesisfiledate{2020-04-13} +\def\yathesisfileversion{1.0.3} +\def\yathesisfiledate{2020-06-16} \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesClass{yathesis}[\yathesisfiledate\space v\yathesisfileversion\space Yet another class for writing thesis (DB)] \RequirePackage{pgfopts}[2011/06/02]% @@ -384,7 +384,6 @@ refsegment=chapter,% defernumbers=#1% }% - \AfterEndPreamble{\newrefsegment}% }% } \yadsetup{% @@ -451,7 +450,6 @@ setspace/.code={\PassOptionsToPackage{#1}{setspace}},% xcolor/.code={\PassOptionsToPackage{#1}{xcolor}},% datatool/.code={\PassOptionsToPackage{#1}{datatool}},% - titleps/.code={\PassOptionsToPackage{#1}{titleps}},% titlesec/.code={\PassOptionsToPackage{#1}{titlesec}},% draftwatermark/.code={\PassOptionsToPackage{#1}{draftwatermark}},% babel/.code={\PassOptionsToPackage{#1}{babel}},% @@ -494,7 +492,7 @@ }{% \RequirePackage{fncychap}[2007/07/30]% }% -\RequirePackage[nopatches]{titleps}[2011/12/15]% +\RequirePackage[pagestyles]{titlesec}[2019/10/16]% \RequirePackage{nonumonpart}[2011/04/15]% \RequirePackage{xcolor}[2007/01/21]% \RequirePackage{datatool}[2014/03/08]% @@ -2150,31 +2148,14 @@ % \renewcommand{\setcounter}[2]{}% % \DeclareRobustCommand{\YAD@chapter@header}{% - \ifboolexpr{ - ((test {\ifnumcomp{\value{secnumdepth}}{>}{-1}} or (not bool - {YAD@nonnumbered@chapter})) and test {\ifnumcomp{\value{chapter}}{>}{0}}) and - (not bool {YAD@backmatter}) - }{% - \MakeUppercase\chaptername{}\ \thechapter. + \ifthechapter{% + \MakeUppercase\chaptertitlename\ \thechapter. }{% }% \chaptertitle% }% \DeclareRobustCommand{\YAD@section@header}{% - \ifboolexpr{ - ( - ( - test {\ifnumcomp{\value{secnumdepth}}{>}{0}} - or - (not bool {YAD@nonnumbered@section}) - ) - and - test {\ifnumcomp{\value{chapter}}{>}{0}}) - and - (not bool {YAD@backmatter}) - and - (not bool {YAD@localbibs@used}) - }{% + \ifthesection{% \thesection. }{% }% @@ -2789,6 +2770,7 @@ }% }% }% +\AfterEndPreamble{\pagestyle{preliminary}}% \newcommand{\YAD@insert@colophon}{% \ifthenelse{\equal{\YAD@colophon@location}{nowhere}}{% }{% @@ -3627,11 +3609,14 @@ \parindent\z@ \dimen@ 2.25em % soon to be \leftskip \renewcommand\addcontentsline[3]{}% - \section *{\kern\dimen@ % \dimen@ works here by sheer luck - % \contentsname% - % \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}% - \large\textbf{\translate{lbl-localtocname}}% + \begingroup + \titlespacing*{\section}{\dimen@}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex} + \section*{% + \large% + \translate{lbl-localtocname}% }% + \endgroup + \sectionmark{}% \let\addcontentsline\YAD@addcontentsline \parskip \z@skip \vspace{\YAD@vspace@before@localtoc@rule}% somewhat ad hoc @@ -3777,11 +3762,19 @@ \ifbool{YAD@localbibs}{% \ifbool{YAD@localbibs@used}{% }{% - \let\YAD@ORI@blx@warn@bibempty\blx@warn@bibempty% - \def\blx@warn@bibempty{}% - \YAD@printbibliography@ORI[segment=\therefsegment,heading=YAD@localbibs@heading]% - \let\blx@warn@bibempty\YAD@ORI@blx@warn@bibempty% - \booltrue{YAD@localbibs@used}% + \ifnumcomp{\value{refsegment}}{=}{0}{% + }{% + \let\YAD@ORI@blx@warn@bibempty\blx@warn@bibempty% + \def\blx@warn@bibempty{}% + \bgroup + \par% + \singlespacing% + \YAD@printbibliography@ORI[segment=\therefsegment,heading=YAD@localbibs@heading]% + \par% + \egroup% + \let\blx@warn@bibempty\YAD@ORI@blx@warn@bibempty% + \booltrue{YAD@localbibs@used}% + }% }% }{% }% @@ -4124,7 +4117,8 @@ }% \AtEndPreamble{% \@ifpackageloaded{biblatex}{% - \defbibheading{YAD@localbibs@heading}[\translate{lbl-localbibname}]{% + \defbibheading{YAD@localbibs@heading}[\translate{lbl-localbibname} % (\therefsegment) + ]{% \renewcommand\addcontentsline[3]{}% \section*{#1}% \let\addcontentsline\YAD@addcontentsline% @@ -4136,10 +4130,13 @@ \let\YAD@printbibliography@ORI\printbibliography% \renewcommand{\printbibliography}[1][]{% \booltrue{YAD@printbibliography@used}% - \singlespace% - \chapter*{\bibname}% - \YAD@printbibliography@ORI[heading=none,#1]% - \endsinglespace% + \bgroup + \par% + \singlespacing% + \YAD@printbibliography@ORI[#1]% + \newrefsegment% + \endrefsegment% + \egroup% }% }{% \BeforeBeginEnvironment{thebibliography}{% @@ -4150,6 +4147,10 @@ }% }% }% +\AtEndDocument{% + \booltrue{YAD@nonnumbered@chapter}% + \booltrue{YAD@nonnumbered@section}% +} \AtEndDocument{% \ifbool{YAD@printbibliography@used}{% }{% -- cgit v1.2.3