texlive[55578] Master/texmf-dist: yathesis (17jun20)

commits+karl at tug.org commits+karl at tug.org
Wed Jun 17 23:35:37 CEST 2020


Revision: 55578
          http://tug.org/svn/texlive?view=revision&revision=55578
Author:   karl
Date:     2020-06-17 23:35:37 +0200 (Wed, 17 Jun 2020)
Log Message:
-----------
yathesis (17jun20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/yathesis/CHANGELOG.md
    trunk/Master/texmf-dist/doc/latex/yathesis/README.md
    trunk/Master/texmf-dist/doc/latex/yathesis/addons/completion/yathesis.cwl
    trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/incompatibilites-connues.tex
    trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/packages-charges.tex
    trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/personnalisation.tex
    trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/proprietes-document.tex
    trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/glossaries/glossary.tex
    trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/liminaires/abstract.tex
    trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/yathesis-fr.pdf
    trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/yathesis-fr.tex
    trunk/Master/texmf-dist/doc/latex/yathesis/french/exemples/specimen/a-plat/these.pdf
    trunk/Master/texmf-dist/source/latex/yathesis/yathesis.dtx
    trunk/Master/texmf-dist/tex/latex/yathesis/yathesis.cls

Modified: trunk/Master/texmf-dist/doc/latex/yathesis/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yathesis/CHANGELOG.md	2020-06-17 21:35:17 UTC (rev 55577)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/CHANGELOG.md	2020-06-17 21:35:37 UTC (rev 55578)
@@ -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

Modified: trunk/Master/texmf-dist/doc/latex/yathesis/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yathesis/README.md	2020-06-17 21:35:17 UTC (rev 55577)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/README.md	2020-06-17 21:35:37 UTC (rev 55578)
@@ -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 at univ-littoral.fr`
 - Released under the LaTeX Project Public License v1.3c or later. See
   http://www.latex-project.org/lppl.txt

Modified: trunk/Master/texmf-dist/doc/latex/yathesis/addons/completion/yathesis.cwl
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yathesis/addons/completion/yathesis.cwl	2020-06-17 21:35:17 UTC (rev 55577)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/addons/completion/yathesis.cwl	2020-06-17 21:35:37 UTC (rev 55578)
@@ -32,7 +32,7 @@
 #include:setspace
 #include:tcolorbox
 #include:textcase
-#include:titleps
+#include:titlesec
 #include:tocbibind
 #include:translator
 #include:twoopt
@@ -85,7 +85,7 @@
 setspace
 xcolor
 datatool
-titleps
+titlesec
 draftwatermark
 babel
 datetime

Modified: trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/incompatibilites-connues.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/incompatibilites-connues.tex	2020-06-17 21:35:17 UTC (rev 55577)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/incompatibilites-connues.tex	2020-06-17 21:35:37 UTC (rev 55578)
@@ -18,8 +18,6 @@
 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
+\item[\package{fancyhdr}] qui est incompatible avec le \Package{titlesec} que
   charge automatiquement la classe.
-\item[\package{fancyhdr}] qui est incompatible avec le \Package{titleps} que
-  charge automatiquement la classe.
 \end{description}

Modified: trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/packages-charges.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/packages-charges.tex	2020-06-17 21:35:17 UTC (rev 55577)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/packages-charges.tex	2020-06-17 21:35:37 UTC (rev 55578)
@@ -89,13 +89,14 @@
   \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}{}

Modified: trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/personnalisation.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/personnalisation.tex	2020-06-17 21:35:17 UTC (rev 55577)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/personnalisation.tex	2020-06-17 21:35:37 UTC (rev 55578)
@@ -556,7 +556,7 @@
           %
           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 @@
   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}

Modified: trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/proprietes-document.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/proprietes-document.tex	2020-06-17 21:35:17 UTC (rev 55577)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/proprietes-document.tex	2020-06-17 21:35:37 UTC (rev 55578)
@@ -936,7 +936,28 @@
     \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
 %%% TeX-master: "../yathesis-fr"

Modified: trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/glossaries/glossary.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/glossaries/glossary.tex	2020-06-17 21:35:17 UTC (rev 55577)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/glossaries/glossary.tex	2020-06-17 21:35:37 UTC (rev 55578)
@@ -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}%
 }

Modified: trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/liminaires/abstract.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/liminaires/abstract.tex	2020-06-17 21:35:17 UTC (rev 55577)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/liminaires/abstract.tex	2020-06-17 21:35:37 UTC (rev 55578)
@@ -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.

Modified: trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/yathesis-fr.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/yathesis-fr.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/yathesis-fr.tex	2020-06-17 21:35:17 UTC (rev 55577)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/yathesis-fr.tex	2020-06-17 21:35:37 UTC (rev 55578)
@@ -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}%

Modified: trunk/Master/texmf-dist/doc/latex/yathesis/french/exemples/specimen/a-plat/these.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/yathesis/yathesis.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/yathesis/yathesis.dtx	2020-06-17 21:35:17 UTC (rev 55577)
+++ trunk/Master/texmf-dist/source/latex/yathesis/yathesis.dtx	2020-06-17 21:35:37 UTC (rev 55578)
@@ -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 at 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 @@
 \fi
 %</internal>
 %<*class|install>
-\def\yathesisfileversion{1.0.2}
-\def\yathesisfiledate{2020-04-13}
+\def\yathesisfileversion{1.0.3}
+\def\yathesisfiledate{2020-06-16}
 %</class|install>
 %<*install>
 \input docstrip.tex
@@ -278,6 +278,7 @@
 \documentclass[english,french]{ltxdoc}
 \usepackage[yad]{denisbdoc}
 \lstMakeShortInline[style=dbtex]"
+%"
 \usepackage[lining]{libertine}
 \renewcommand{\ttdefault}{lmtt}
 \makeatletter
@@ -854,7 +855,6 @@
       refsegment=chapter,%
       defernumbers=#1%
     }%
-    \AfterEndPreamble{\newrefsegment}%
   }%
 }
 \yadsetup{%
@@ -955,7 +955,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}},%
@@ -1083,7 +1082,7 @@
 %    \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 @@
 % \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 @@
 %    \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 at tocdepth}%
         \AtBeginDocument{%
@@ -3283,19 +3282,16 @@
         %
 %    \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 at chapter@header}
 % Définition de titres courants
 %    \begin{macrocode}
 \DeclareRobustCommand{\YAD at chapter@header}{%
-  \ifboolexpr{
-    ((test {\ifnumcomp{\value{secnumdepth}}{>}{-1}} or (not bool
-    {YAD at nonnumbered@chapter})) and test {\ifnumcomp{\value{chapter}}{>}{0}}) and
-    (not bool {YAD at backmatter})
+  \ifthechapter{%
+    \MakeUppercase\chaptertitlename\ \thechapter.
   }{%
-    \MakeUppercase\chaptername{}\ \thechapter.
-  }{%
   }%
   \chaptertitle%
 }%
@@ -3305,20 +3301,7 @@
 % \begin{macro}{\YAD at section@header}
 %    \begin{macrocode}
 \DeclareRobustCommand{\YAD at section@header}{%
-  \ifboolexpr{
-    (
-      (
-        test {\ifnumcomp{\value{secnumdepth}}{>}{0}}
-        or
-        (not bool {YAD at nonnumbered@section})
-      )
-      and
-      test {\ifnumcomp{\value{chapter}}{>}{0}})
-      and
-      (not bool {YAD at backmatter})
-      and
-      (not bool {YAD at localbibs@used})
-  }{%
+  \ifthesection{%
     \thesection.
   }{%
   }%
@@ -3512,7 +3495,7 @@
 }%
 %    \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 @@
 %    \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 @@
 }%
 %    \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 at insert@colophon}{%
@@ -5105,12 +5094,19 @@
 % 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}
     \let\addcontentsline\YAD at addcontentsline
@@ -5286,11 +5282,31 @@
   \ifbool{YAD at localbibs}{%
     \ifbool{YAD at localbibs@used}{%
     }{%
-      \let\YAD at ORI@blx at warn@bibempty\blx at warn@bibempty%
-      \def\blx at warn@bibempty{}%
-      \YAD at printbibliography@ORI[segment=\therefsegment,heading=YAD at localbibs@heading]%
-      \let\blx at warn@bibempty\YAD at ORI@blx at warn@bibempty%
-      \booltrue{YAD at 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 at ORI@blx at warn@bibempty\blx at warn@bibempty%
+        \def\blx at warn@bibempty{}%
+%    \end{macrocode}
+% Les bibliographies locales sont composées en interligne simple
+%    \begin{macrocode}
+        \bgroup
+        \par%
+        \singlespacing%
+        \YAD at printbibliography@ORI[segment=\therefsegment,heading=YAD at localbibs@heading]%
+        \par%
+        \egroup%
+        \let\blx at warn@bibempty\YAD at ORI@blx at warn@bibempty%
+        \booltrue{YAD at localbibs@used}%
+      }%
     }%
   }{%
   }%
@@ -6002,7 +6018,8 @@
 %    \begin{macrocode}
 \AtEndPreamble{%
   \@ifpackageloaded{biblatex}{%
-    \defbibheading{YAD at localbibs@heading}[\translate{lbl-localbibname}]{%
+    \defbibheading{YAD at localbibs@heading}[\translate{lbl-localbibname} % (\therefsegment)
+    ]{%
       \renewcommand\addcontentsline[3]{}%
       \section*{#1}%
       \let\addcontentsline\YAD at addcontentsline%
@@ -6024,20 +6041,26 @@
     \let\YAD at printbibliography@ORI\printbibliography%
     \renewcommand{\printbibliography}[1][]{%
       \booltrue{YAD at printbibliography@used}%
+      \bgroup
+      \par%
+      \singlespacing%
+      \YAD at 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 at 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 @@
 %    \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 at nonnumbered@chapter}%
+  \booltrue{YAD at 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 @@
 #include:setspace
 #include:tcolorbox
 #include:textcase
-#include:titleps
+#include:titlesec
 #include:tocbibind
 #include:translator
 #include:twoopt
@@ -6562,7 +6597,7 @@
 setspace
 xcolor
 datatool
-titleps
+titlesec
 draftwatermark
 babel
 datetime

Modified: trunk/Master/texmf-dist/tex/latex/yathesis/yathesis.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/yathesis/yathesis.cls	2020-06-17 21:35:17 UTC (rev 55577)
+++ trunk/Master/texmf-dist/tex/latex/yathesis/yathesis.cls	2020-06-17 21:35:37 UTC (rev 55578)
@@ -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 at chapter@header}{%
-  \ifboolexpr{
-    ((test {\ifnumcomp{\value{secnumdepth}}{>}{-1}} or (not bool
-    {YAD at nonnumbered@chapter})) and test {\ifnumcomp{\value{chapter}}{>}{0}}) and
-    (not bool {YAD at backmatter})
+  \ifthechapter{%
+    \MakeUppercase\chaptertitlename\ \thechapter.
   }{%
-    \MakeUppercase\chaptername{}\ \thechapter.
-  }{%
   }%
   \chaptertitle%
 }%
 \DeclareRobustCommand{\YAD at section@header}{%
-  \ifboolexpr{
-    (
-      (
-        test {\ifnumcomp{\value{secnumdepth}}{>}{0}}
-        or
-        (not bool {YAD at nonnumbered@section})
-      )
-      and
-      test {\ifnumcomp{\value{chapter}}{>}{0}})
-      and
-      (not bool {YAD at backmatter})
-      and
-      (not bool {YAD at localbibs@used})
-  }{%
+  \ifthesection{%
     \thesection.
   }{%
   }%
@@ -2789,6 +2770,7 @@
     }%
   }%
 }%
+\AfterEndPreamble{\pagestyle{preliminary}}%
 \newcommand{\YAD at insert@colophon}{%
   \ifthenelse{\equal{\YAD at 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 at addcontentsline
     \parskip \z at skip
     \vspace{\YAD at vspace@before at localtoc@rule}% somewhat ad hoc
@@ -3777,11 +3762,19 @@
   \ifbool{YAD at localbibs}{%
     \ifbool{YAD at localbibs@used}{%
     }{%
-      \let\YAD at ORI@blx at warn@bibempty\blx at warn@bibempty%
-      \def\blx at warn@bibempty{}%
-      \YAD at printbibliography@ORI[segment=\therefsegment,heading=YAD at localbibs@heading]%
-      \let\blx at warn@bibempty\YAD at ORI@blx at warn@bibempty%
-      \booltrue{YAD at localbibs@used}%
+      \ifnumcomp{\value{refsegment}}{=}{0}{%
+      }{%
+        \let\YAD at ORI@blx at warn@bibempty\blx at warn@bibempty%
+        \def\blx at warn@bibempty{}%
+        \bgroup
+        \par%
+        \singlespacing%
+        \YAD at printbibliography@ORI[segment=\therefsegment,heading=YAD at localbibs@heading]%
+        \par%
+        \egroup%
+        \let\blx at warn@bibempty\YAD at ORI@blx at warn@bibempty%
+        \booltrue{YAD at localbibs@used}%
+      }%
     }%
   }{%
   }%
@@ -4124,7 +4117,8 @@
 }%
 \AtEndPreamble{%
   \@ifpackageloaded{biblatex}{%
-    \defbibheading{YAD at localbibs@heading}[\translate{lbl-localbibname}]{%
+    \defbibheading{YAD at localbibs@heading}[\translate{lbl-localbibname} % (\therefsegment)
+    ]{%
       \renewcommand\addcontentsline[3]{}%
       \section*{#1}%
       \let\addcontentsline\YAD at addcontentsline%
@@ -4136,10 +4130,13 @@
     \let\YAD at printbibliography@ORI\printbibliography%
     \renewcommand{\printbibliography}[1][]{%
       \booltrue{YAD at printbibliography@used}%
-      \singlespace%
-      \chapter*{\bibname}%
-      \YAD at printbibliography@ORI[heading=none,#1]%
-      \endsinglespace%
+      \bgroup
+      \par%
+      \singlespacing%
+      \YAD at printbibliography@ORI[#1]%
+      \newrefsegment%
+      \endrefsegment%
+      \egroup%
     }%
   }{%
     \BeforeBeginEnvironment{thebibliography}{%
@@ -4151,6 +4148,10 @@
   }%
 }%
 \AtEndDocument{%
+  \booltrue{YAD at nonnumbered@chapter}%
+  \booltrue{YAD at nonnumbered@section}%
+}
+\AtEndDocument{%
   \ifbool{YAD at printbibliography@used}{%
   }{%
     \ifbool{YAD at noprintbibliography}{%



More information about the tex-live-commits mailing list.