texlive[54740] Master/texmf-dist: yathesis (14apr20)
commits+karl at tug.org
commits+karl at tug.org
Tue Apr 14 23:07:33 CEST 2020
Revision: 54740
http://tug.org/svn/texlive?view=revision&revision=54740
Author: karl
Date: 2020-04-14 23:07:33 +0200 (Tue, 14 Apr 2020)
Log Message:
-----------
yathesis (14apr20)
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/add-ons.tex
trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/specimens-canevas.tex
trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/configuration/thesis.cfg
trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/pages-corps.tex
trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/pages-liminaires.tex
trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/personnalisation.tex
trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/liminaires/titre.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/doc/latex/yathesis/french/exemples/specimen/a-plat/these.tex
trunk/Master/texmf-dist/source/latex/yathesis/yathesis-samples-templates.dtx
trunk/Master/texmf-dist/source/latex/yathesis/yathesis.dtx
trunk/Master/texmf-dist/tex/latex/yathesis/yathesis-demo.sty
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-04-14 21:07:10 UTC (rev 54739)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/CHANGELOG.md 2020-04-14 21:07:33 UTC (rev 54740)
@@ -1,5 +1,21 @@
# [Unreleased]
+# [1.0.2] - 2020-04-13
+
+## Changed
+
+- Specimens now highlight the automatic local tocs and local bibs features of
+ the class.
+- Verso of the asbtract page now with empty footer.
+- Completion file for TeXstudio improved and updated.
+
+## Fixed
+- Switches between pages styles robustified.
+- Bug #65 now for bibtex as well.
+- French rules were applied to glossaries and acronyms even in case of
+ `mainlanguage=english`.
+- Subtitles were too close to multiline titles.
+
# [1.0.1] - 2020-03-28
## Changed
Modified: trunk/Master/texmf-dist/doc/latex/yathesis/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yathesis/README.md 2020-04-14 21:07:10 UTC (rev 54739)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/README.md 2020-04-14 21:07:33 UTC (rev 54740)
@@ -1,6 +1,6 @@
-----------------------------------------------------------------------
-- `yathesis` --- Yet Another Thesis Class, version 1.0.1
+- `yathesis` --- Yet Another Thesis Class, version 1.0.2
- 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-04-14 21:07:10 UTC (rev 54739)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/addons/completion/yathesis.cwl 2020-04-14 21:07:33 UTC (rev 54740)
@@ -1,47 +1,46 @@
# mode: yathesis.cls
-# denisbitouze, 2020-03-26
+# denisbitouze, 2020-04-05
#
-#include:class-book
-#include:latex-document
-#include:latex-mathsymbols
-#include:tex
-#include:pgfopts
+#include:adjustbox
+#include:array
+#include:babel
+#include:biblatex
+#include:bookmark
+#include:colophon
+#include:csquotes
+#include:datatool
+#include:datetime
+#include:draftwatermark
+#include:environ
+#include:epigraph
+#include:etoc
#include:etoolbox
-#include:xpatch
-#include:morewrites%
#include:filehook
-#include:hopatch
-#include:xifthen
-#include:xkeyval%
+#include:fncychap
#include:geometry
#include:graphicx
-#include:environ
-#include:adjustbox
-#include:array
-#include:xstring
-#include:textcase
-#include:translator
+#include:hopatch
+#include:hypcap
+#include:ifdraft
+#include:iflang
#include:iftex
-#include:epigraph
-#include:tcolorbox
+#include:letltxmacro
#include:marvosym
+#include:morewrites
+#include:nonumonpart
+#include:pgfopts
#include:setspace
-#include:etoc
+#include:tcolorbox
+#include:textcase
+#include:titleps
#include:tocbibind
-#include:nonumonpart
+#include:translator
+#include:twoopt
#include:xcolor
-#include:datatool
-#include:fncychap
-#include:titleps
-#include:ifdraft
-#include:colophon
-#include:draftwatermark
-#include:babel
-#include:iflang
-#include:datetime
-#include:hypcap
-#include:bookmark
-#include:glossaries-babel
+#include:xifthen
+#include:xkeyval
+#include:xpatch
+#include:xstring
#
# Document class
#keyvals:\documentclass/yathesis
@@ -132,39 +131,17 @@
\doctoralschool[%<précision(s)%>]{nom de l'école doctorale%text}#n
\laboratory[%<précision(s)%>]{%<nom du laboratoire%>}{%<adresse du laboratoire%>}#n
#
-#keyvals:\pres
+#keyvals:\pres,\comue,\doctoralschool
logo=
logoheight=
url=
#endkeyvals
-#keyvals:\comue
+#keyvals:\institute,\coinstitute,\company
logo=
logoheight=
url=
-#endkeyvals
-#keyvals:\institute
-logo=
-logoheight=
-url=
nologo
#endkeyvals
-#keyvals:\coinstitute
-logo=
-logoheight=
-url=
-nologo
-#endkeyvals
-#keyvals:\company
-logo=
-logoheight=
-url=
-nologo
-#endkeyvals
-#keyvals:\doctoralschool
-logo=
-logoheight=
-url=
-#endkeyvals
#keyvals:\laboratory
logo=
logoheight=
Modified: trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/add-ons.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/add-ons.tex 2020-04-14 21:07:10 UTC (rev 54739)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/add-ons.tex 2020-04-14 21:07:33 UTC (rev 54740)
@@ -8,6 +8,9 @@
\index{éditeur de texte!TeXstudio@\texstudio}%
\index{TeXstudio@\texstudio}%
+\changes{v1.0.2}{2020-04-13}{Fichier de complétion de \texstudio{} amélioré et
+ mis à jour}%
+
L'éditeur \href{http://texstudio.sourceforge.net/}{\texstudio} est livré avec un
système de complétion\index{complétion} et de vérification de l'orthographe des
commandes, environnemens et clés pour un grand nombre de classes et
Modified: trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/specimens-canevas.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/specimens-canevas.tex 2020-04-14 21:07:10 UTC (rev 54739)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/annexes/specimens-canevas.tex 2020-04-14 21:07:33 UTC (rev 54740)
@@ -49,11 +49,15 @@
}%
\end{tcolorbox}
%
+ \changes{v1.0.2}{2020-04-13}{Les fonctionnalités de tables des matières
+ locales automatiques et de bibliographies locales automatiques sont désormais
+ illustrées dans les spécimens de thèses}%
+ \changes{v1.0.1}{2020-03-28}{Spécimens améliorés}%
\changes{v0.99n}{2016-06-11}{Réorganisation des spécimens et canevas}%
\changes{v0.99m}{2016-05-22}{Réorganisation et changement de noms des
spécimens et canevas}%
- \changes{v0.99m}{2016-05-22}{Spécimens et canevas intégrés au \glsxtrshort{pdf}
- de la documentation sous la forme d'archives \gls{zip}}%
+ \changes{v0.99m}{2016-05-22}{Spécimens et canevas intégrés au
+ \glsxtrshort{pdf} de la documentation sous la forme d'archives \gls{zip}}%
\changes{v0.99l}{2014-10-23}{Réorganisation et changement de noms des
spécimens et canevas}%
\changes{v0.99c}{2014-06-06}{Spécimens et canevas fournis sous forme
Modified: trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/configuration/thesis.cfg
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/configuration/thesis.cfg 2020-04-14 21:07:10 UTC (rev 54739)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/configuration/thesis.cfg 2020-04-14 21:07:33 UTC (rev 54740)
@@ -12,8 +12,9 @@
\yadsetup{#1}%
\setlength{\fboxsep}{10pt}%
\setlength{\YAD at titleboxwidth}{\linewidth-2\fboxsep-2\fboxrule}%
+ \pagestyle{titles}%
\renewcommand*{\do}[1]{%
- \pagestyle{titles}%
+ \cleardoublepage%
\begingroup%
\expandafter\selectlanguage\expandafter{##1}%
\begin{lrbox}{\YAD at titlebox}
@@ -73,6 +74,10 @@
}%
\end{center}
\endgroup%
+\ifthenelse{\equal{\YAD at colophon@location}{verso-frontcover}}{%
+ \YAD at insert@colophon%
+}{%
+}%
\boolfalse{YAD at cover@page}%
}%
\expandafter\docsvlist{\YAD at mainlanguage}%
@@ -177,3 +182,10 @@
%
\InputIfFileExists{includeall-includeonly}{}{}
%
+\colophontext{%
+ Document intitulé \frquote{\printtitle}, écrit par \printauthor{},
+ achevé le \today{}, composé au moyen du système de préparation de document
+ \href{https://fr.wikipedia.org/wiki/LaTeX}{\LaTeX{}} et de la classe
+ \href{https://www.ctan.org/pkg/yathesis}{\textsf{yathesis}} dédiée aux
+ thèses préparées en France.%
+}
Modified: trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/pages-corps.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/pages-corps.tex 2020-04-14 21:07:10 UTC (rev 54739)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/pages-corps.tex 2020-04-14 21:07:33 UTC (rev 54740)
@@ -203,10 +203,11 @@
\begin{dbexample}{Introduction}{}
\indexex{chapitre!non numéroté}%
\indexex{unité!du mémoire!non numérotée}%
- Le code suivant produit la \vref{fig-introduction} illustrant une
- introduction (générale) non numérotée. On constate que, bien que seule la
- commande \docAuxCommand{chapter} figure sous sa forme étoilée, aucun élément
- de structuration de ce chapitre n'est numéroté.
+ Le code suivant produit la \vref{fig-introduction} illustrant une introduction
+ (générale) non numérotée\footnote{Et, au passage, une table des matières
+ locale. Plus de détails \vref{sec-localtoc}.}. On constate que, bien que
+ seule la commande \docAuxCommand{chapter} figure sous sa forme étoilée, aucun
+ élément de structuration de ce chapitre n'est numéroté.
%
\bodysample{introduction}{%
deletekeywords={[1]introduction},%
Modified: trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/pages-liminaires.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/pages-liminaires.tex 2020-04-14 21:07:10 UTC (rev 54739)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/pages-liminaires.tex 2020-04-14 21:07:33 UTC (rev 54740)
@@ -107,8 +107,8 @@
Pour pallier cet inconvénient, et aussi pour permettre de redéfinir la phrase
par défaut si elle ne convient pas, on pourra recourir à la commande
\refCom{disclaimertext}\footnote{Par souci de compatibilité ascendante, la
- commande désormais obsolète \refCom{disclaimer} est un alias de la commande
- \refCom{disclaimer}.}.
+ commande désormais obsolète \docAuxCommand{disclaimer} est un alias de la commande
+ \refCom{disclaimertext}.}.
\begin{docCommand}[doc updated=2020-03-26]{disclaimertext}{\marg{clause}}
\index{clause de non-responsabilité!modification}%
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-04-14 21:07:10 UTC (rev 54739)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/corps/personnalisation.tex 2020-04-14 21:07:33 UTC (rev 54740)
@@ -181,9 +181,9 @@
\documentclass[localtocs]{yathesis}
\end{preamblecode}
- Dans l'exemple précédent, les tables des matières locales vont jusqu'aux
- sous-sections. Pour qu'elles aillent par exemple jusqu'aux sous-sous-sections,
- on recourra à :
+ Dans l'exemple précédent (illustré \vref{fig-introduction}), les tables des
+ matières locales vont jusqu'aux sous-sections. Pour qu'elles aillent par
+ exemple jusqu'aux sous-sous-sections, on recourra à :
\begin{preamblecode}
\documentclass[localtocs/depth=subsubsection]{yathesis}
\end{preamblecode}
@@ -262,7 +262,7 @@
\begin{dbexample}{Bibliographies locales automatiques}{}
\indexex{bibliographie!locale}%
- Pour que chaque chapitre finisse automatiquement par sa bibliographie locale,
+ Pour que chaque chapitre finisse automatiquement par sa bibliographie locale
il suffit de passer l'option suivante à la \yatCl{}.
\begin{preamblecode}
\documentclass[localbibs]{yathesis}
@@ -272,6 +272,14 @@
Les bibliographies locales sont introduites par une section (non numérotée)
intitulée \translateexpression{localbibname}.
+La \vref{fig-localbib} illustre cette fonctionnalité.
+\begin{figure}[htbp]
+ \centering
+ \screenshot{localbib}
+ \caption{Bibliographie locale}
+ \label{fig-localbib}
+\end{figure}
+
\subsection{Versions du mémoire}\label{sec-versions}
\index{version du mémoire}%
@@ -460,7 +468,9 @@
%
\changes{v1.0.0}{2020-03-26}{Nouvelle option de classe
\protect\refKey{colophon-location} permettant de modifier l'emplacement par
- défaut (en 2\ieme{} de couverture) du colophon ou de le supprimer.}%
+ défaut (en 2\ieme{} de couverture) du colophon ou de le
+ supprimer\protect\footnote{Pour retrouver le comportement antérieur (pas
+ de colophon), il suffit de spécifier \protect\lstinline|colophon-location=nowhere|.}.}%
%
Cette clé permet, au moyen des valeurs suivantes, de spécifier l'emplacement
du colophon dans le mémoire.
Modified: trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/liminaires/titre.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/liminaires/titre.tex 2020-04-14 21:07:10 UTC (rev 54739)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/liminaires/titre.tex 2020-04-14 21:07:33 UTC (rev 54740)
@@ -2,7 +2,7 @@
Documentation de la classe \texorpdfstring{\yat}{yathesis}%
}
%
-\subtitle[\version{1.0.1}]{\version{1.0.1}}
+\subtitle[\version{\yathesisfileversion}]{\version{\yathesisfileversion}}
%
\author[denis.bitouze at univ-littoral.fr]{Denis}{Bitouzé}
%
@@ -12,7 +12,11 @@
%
\keywords{mémoire, thèse, \texorpdfstring{\LaTeX}{LaTeX}, classe}{dissertation, thesis, \texorpdfstring{\LaTeX}{LaTeX}, class}
%
-\date{\the\day}{\the\month}{\the\year}%
+\def\mysplit#1-#2-#3-{\def\myyear{#1}\def\mymonth{#2}\def\myday{#3}}
+\def\splitdate#1{\expandafter\mysplit#1-}
+\splitdate{\yathesisfiledate}
+
+\date{\myday}{\mymonth}{\myyear}%
%
\maketitle[nofrontcover,frametitle={drop lifted shadow}]
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-04-14 21:07:10 UTC (rev 54739)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/french/documentation/yathesis-fr.tex 2020-04-14 21:07:33 UTC (rev 54740)
@@ -34,9 +34,8 @@
\makeindex[title=Index des concepts,extout=pdx,extin=pnd,columnseprule]
%
\AtEndPreamble{%
- \changes{v1.0.1}{2020-03-28}{Documentation révisée}%
- \changes{v1.0.1}{2020-03-28}{Correction de bugs}%
- \changes{v1.0.1}{2020-03-28}{Spécimens améliorés}%
+ \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}%
\changes{v1.0.0}{2020-03-26}{Correction de bugs}%
\changes{v0.99u}{2019-03-28}{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/doc/latex/yathesis/french/exemples/specimen/a-plat/these.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/yathesis/french/exemples/specimen/a-plat/these.tex 2020-04-14 21:07:10 UTC (rev 54739)
+++ trunk/Master/texmf-dist/doc/latex/yathesis/french/exemples/specimen/a-plat/these.tex 2020-04-14 21:07:33 UTC (rev 54740)
@@ -1,5 +1,13 @@
-% Document de classe yathesis, en 12 points, interligne un et demi, et version finale
-\documentclass[12pt,space=onehalf,version=final]{yathesis}
+% Document :
+% - de classe yathesis ;
+% - en 12 points ;
+% - en version finale ;
+% - dont la partie principale :
+% - est en interligne un et demi ;
+% - voit chaque chapitre :
+% - débuter par sa table des matières locale ;
+% - finir par sa bibliographie locale.
+\documentclass[12pt,version=final,space=onehalf,localtocs,localbibs]{yathesis}
%
% Chargement manuel de packages (pas déjà chargés par la classe yathesis)
\usepackage[T1]{fontenc}
Modified: trunk/Master/texmf-dist/source/latex/yathesis/yathesis-samples-templates.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/yathesis/yathesis-samples-templates.dtx 2020-04-14 21:07:10 UTC (rev 54739)
+++ trunk/Master/texmf-dist/source/latex/yathesis/yathesis-samples-templates.dtx 2020-04-14 21:07:33 UTC (rev 54740)
@@ -9,9 +9,17 @@
%</flat-template|these-master>
%<*these-sample|flat-sample>
%<<COMMENT
-% Document de classe yathesis, en 12 points, interligne un et demi, et version finale
+% Document :
+% - de classe yathesis ;
+% - en 12 points ;
+% - en version finale ;
+% - dont la partie principale :
+% - est en interligne un et demi ;
+% - voit chaque chapitre :
+% - débuter par sa table des matières locale ;
+% - finir par sa bibliographie locale.
%COMMENT
-\documentclass[12pt,space=onehalf,version=final]{yathesis}
+\documentclass[12pt,version=final,space=onehalf,localtocs,localbibs]{yathesis}
%</these-sample|flat-sample>
%<*these-sample|flat-sample|flat-template|these-master>
%<<COMMENT
Modified: trunk/Master/texmf-dist/source/latex/yathesis/yathesis.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/yathesis/yathesis.dtx 2020-04-14 21:07:10 UTC (rev 54739)
+++ trunk/Master/texmf-dist/source/latex/yathesis/yathesis.dtx 2020-04-14 21:07:33 UTC (rev 54740)
@@ -23,7 +23,7 @@
%<*readme>
-----------------------------------------------------------------------
-- `yathesis` --- Yet Another Thesis Class, version 1.0.1
+- `yathesis` --- Yet Another Thesis Class, version 1.0.2
- 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
@@ -69,11 +69,15 @@
\expandafter\begingroup
\fi
%</internal>
+%<*class|install>
+\def\yathesisfileversion{1.0.2}
+\def\yathesisfiledate{2020-04-13}
+%</class|install>
%<*install>
\input docstrip.tex
\Msg{********************************************************}
\Msg{* Installation}
-\Msg{* Class: yathesis 2020-03-28 v1.0.1}
+\Msg{* Class: yathesis \yathesisfiledate\space v\yathesisfileversion}
\Msg{* that helps to write thesis following French rules (DB)}
\Msg{********************************************************}
\keepsilent
@@ -128,7 +132,7 @@
\def\YAD at treesample{\YAD at examples/\YAD at sample/en-arborescence}
%</install>
%<*install>
-\usedir{doc/latex/\YAD at classname/}
+\usedir{doc/latex/\YAD at classname}
\generate{
\nopreamble\nopostamble
\file{README.md}{\from{\jobname.dtx}{readme}}
@@ -265,15 +269,7 @@
\fi
%</internal>
% \fi
-% \def\YADnblastversion{1.0.1}
-% \def\YADdatelastversion{\today}
-% \def\fileversion{v\YADnblastversion}
-% \def\filedate{\YADdatelastversion}
% \iffalse
-%<*class>
-\def\fileversion{v1.0.1}
-\def\filedate{2020/03/28}
-%</class>
%<*driver>
\ProvidesFile{yathesis.dtx}
\RequirePackage{scrlfile}
@@ -364,7 +360,7 @@
%
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-\ProvidesClass{yathesis}[\filedate\space\fileversion\space Yet another class for writing thesis (DB)]
+\ProvidesClass{yathesis}[\yathesisfiledate\space v\yathesisfileversion\space Yet another class for writing thesis (DB)]
% \end{macrocode}
%
% Pour pouvoir définir des macros dont les arguments puissent être
@@ -448,8 +444,10 @@
\newbool{YAD at valid@month}
\newbool{YAD at valid@year}
\newbool{YAD at mainmatter@used}
+\newbool{YAD at mainmatter}
\newbool{YAD at backmatter}
\newbool{YAD at localtocs}%
+\newbool{YAD at localbibs@used}%
\newbool{YAD at nextwithlocaltoc}%
\newbool{YAD at nonnumbered@chapter}%
\newbool{YAD at nonnumbered@section}%
@@ -3080,7 +3078,6 @@
\cleardoublepage%
\sethead[\thepage][][\nomname]{\nomname}{}{\thepage}\headrule%
\YAD at ORI@printnomenclature%
- \pagestyle{preliminary}%
}%
}{%
}%
@@ -3124,8 +3121,7 @@
% aux frontières des chapitres non numérotés ne soient pas
% erronés).
% \begin{macrocode}
-\xpretocmd{\pagestyle}{\cleardoublepage}{}{}%
-% \xapptocmd{\pagestyle}{\YAD at setfoot}{}{}%
+\pretocmd{\pagestyle}{\cleardoublepage}{}{}%
% \end{macrocode}
% \end{macro}
%
@@ -3143,9 +3139,8 @@
\let\YAD at ORI@tableofcontents\tableofcontents%
\let\YAD at ORI@localtableofcontents\localtableofcontents%
\renewcommand{\tableofcontents}{%
+ \booltrue{YAD at tableofcontents@used}%
\pagestyle{preliminary}%
- \booltrue{YAD at tableofcontents@used}%
- \cleardoublepage%
\YAD at phantomsection%
% \renewcommand{\contentsname}{\cmdKV at YAD@name}
\@ifnextchar[{\tableofcontents at YAD@with at argument}{\tableofcontents at YAD@without at argument}%]
@@ -3158,6 +3153,16 @@
\let\cmdKV at YAD@depth\YAD at tocdepth%
\let\cmdKV at YAD@name\contentsname%
\YAD at localstyle % pour les local TOCs qui suivent
+ \ifbool{YAD at mainmatter}%
+ {%
+ \pagestyle{mainmatter}%
+ }{%
+ }%
+ \ifbool{YAD at backmatter}%
+ {%
+ \pagestyle{backmatter}%
+ }{%
+ }%
}%
\newcommand\tableofcontents at YAD@with at argument[1][]{%
\yadsetup{#1}%
@@ -3183,6 +3188,16 @@
\let\cmdKV at YAD@depth\YAD at tocdepth%
\let\cmdKV at YAD@name\contentsname%
\YAD at localstyle % pour les local TOCs qui suivent
+ \ifbool{YAD at mainmatter}%
+ {%
+ \pagestyle{mainmatter}%
+ }{%
+ }%
+ \ifbool{YAD at backmatter}%
+ {%
+ \pagestyle{backmatter}%
+ }{%
+ }%
}%
}%
% \end{macrocode}
@@ -3273,7 +3288,7 @@
% \begin{macro}{\YAD at chapter@header}
% Définition de titres courants
% \begin{macrocode}
-\newcommand*{\YAD at chapter@header}{%
+\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
@@ -3289,11 +3304,20 @@
%
% \begin{macro}{\YAD at section@header}
% \begin{macrocode}
-\newcommand*{\YAD at section@header}{%
+\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})%
+ (
+ (
+ 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})
}{%
\thesection.
}{%
@@ -3311,6 +3335,22 @@
\boolfalse{YAD at localtocs}%
}%
% \end{macrocode}
+%
+% Code de débogage pour localiser les styles de pages appliqués.
+% \begin{macrocode}
+% \RequirePackage{background}
+% \xapptocmd{\pagestyle}{%
+% \SetBgContents{#1}
+% \SetBgScale{2}
+% \SetBgAngle{0}
+% \SetBgOpacity{1}
+% \SetBgColor{blue}
+% \SetBgPosition{current page.south west}
+% \SetBgHshift{3cm}
+% \SetBgVshift{1cm}
+% }{}{}%
+% \end{macrocode}
+%
% Définition du style de page des titres
% \begin{macrocode}
\newpagestyle{titles}[]{%
@@ -3362,6 +3402,10 @@
% géométrie restaurée mais toujours pas de titres courants
% \begin{macrocode}
\newpagestyle{prepreliminary}[]{%
+ \sethead{}{}{}%
+ \setfoot{}{}{}%
+ \setheadrule{0pt}%
+ \setfootrule{0pt}%
% \end{macrocode}
% Dans la partie pré-préliminaire, aucun élément de structuration n'est
% numéroté, les titres courants sont absents et la profondeur de la table des
@@ -3368,7 +3412,7 @@
% matières est fixée à son niveau par défaut (sous-sections)
% \begin{macrocode}
\setcounter{secnumdepth}{-10}%
- \YAD at setfoot%
+ % \YAD at setfoot%
}%
% \end{macrocode}
% Définition du style de page de la partie préliminaire: début
@@ -3399,45 +3443,9 @@
\YAD at setfoot%
}%
% \end{macrocode}
-% Définition du style de page de la partie liminaire
-% \begin{macrocode}
-\newpagestyle{ordinary}[]{%
- \sethead[\thepage]%
- []%
- [\YAD at chapter@header]%
- {%
- \ifthenelse{%
- \equal{\sectiontitle}{}%
- }{%
- \YAD at chapter@header%
- }{%
- \YAD at section@header%
- }%
- }%
- {}%
- {\thepage}%
- \headrule%
-% \end{macrocode}
-% Dans la partie liminaire, aucun élément de structuration n'est
-% numéroté et la profondeur de la table des matières est fixée à son
-% niveau par défaut (sous-sections)
-% \begin{macrocode}
- \setcounter{secnumdepth}{-10}%
- \YAD at setfoot%
-}%
-% \end{macrocode}
% Définition du style de page de la partie principale
% \begin{macrocode}
\newpagestyle{mainmatter}[]{%
- \ifthenelse{\equal{\YAD at interligne}{single}}{%
- \singlespacing%
- }{%
- \ifthenelse{\equal{\YAD at interligne}{double}}{%
- \doublespacing%
- }{%
- \onehalfspacing%
- }%
- }%
\sethead[\thepage]%
[]%
[\YAD at chapter@header]%
@@ -3467,12 +3475,22 @@
% \begin{macrocode}
\xapptocmd{\mainmatter}{%
\booltrue{YAD at mainmatter@used}%
+ \booltrue{YAD at mainmatter}%
+ \pagestyle{mainmatter}%
\ifbool{YAD at localtocs@classoption}%
{%
\booltrue{YAD at localtocs}%
}{%
- }
- \pagestyle{mainmatter}%
+ }%
+ \ifthenelse{\equal{\YAD at interligne}{single}}{%
+ \singlespacing%
+ }{%
+ \ifthenelse{\equal{\YAD at interligne}{double}}{%
+ \doublespacing%
+ }{%
+ \onehalfspacing%
+ }%
+ }%
}{}{}%
% \end{macrocode}
% Vérification, en fin de document, de l'usage de la commande "\mainmatter" et
@@ -3493,90 +3511,51 @@
}%
}%
% \end{macrocode}
-% Définition du style de page de la partie annexe
-% \begin{macrocode}
-\newpagestyle{appendix}[]{%
- \singlespacing%
- \sethead[\thepage]%
- []%
- [%
- \ifthenelse{%
- \value{secnumdepth}>-1
- \and
- \value{chapter}>0
- }{%
- \MakeUppercase\appendixname{} \thechapter.\
- }{%
- }
- \chaptertitle%
- ]%
- {%
- \ifthenelse{%
- \equal{\sectiontitle}{}%
- }{%
- \ifthenelse{%
- \value{secnumdepth}>-1
- \and
- \value{chapter}>0
- }{%
- \MakeUppercase\appendixname{} \thechapter.\
- }{%
- }
- \chaptertitle%
- }{%
- \YAD at section@header%
- }%
- }%
- {}%
- {\thepage}%
- \headrule%
-% \end{macrocode}
-% Dans la partie annexe, la numérotation des paragraphes est fixée à
-% son niveau par défaut (sous-sections)
-% \begin{macrocode}
- \YAD at phantomsection%
- \YAD at setsecnumdepth{\YAD at secnumdepth}%
- \YAD at bookmarksetup{startatroot}%
- \YAD at setfoot%
-}%
-% \end{macrocode}
-% Extension de la commande "\appendix" de sorte qu'elle applique le style de
-% page "appendix".
+% Pour que les bibliographies locales apparaissent automatiquement à chaque fin de
+% chapitre, la commande "\chapter" est redéfinie de manière à commencer 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 :
+% \begin{itemize}
+% \item pour les chapitres séparés par des commandes intermédiaires ("\part",
+% "\mainmatter", "\appendix", etc.)
+% \item en fin de document ("\enddocument").
+% \end{itemize}
+% Il est donc nécessaire que ces commandes commencent donc elles-mêmes par
+% l'insertion de la bibliographie locale du chapitre précédent
+% ("\printlocalbibs"), commande assurant que les chapitres suivant
+% (éventuellement) ces commandes ne l'afficheront pas en double.
% \begin{macro}{\appendix}
% \begin{macrocode}
-\xapptocmd{\appendix}{%
- \pagestyle{appendix}%
-}{}{}%
+\AtEndPreamble{%
+ \xpretocmd{\part}{%
+ \printlocalbibs{}%
+ }{}{}%
+ \pretocmd{\mainmatter}{%
+ \printlocalbibs{}%
+ \cleardoublepage%
+ }{}{}%
+ \pretocmd{\appendix}{%
+ \printlocalbibs{}%
+ \cleardoublepage%
+ }{}{}%
+ \pretocmd{\backmatter}{%
+ \printlocalbibs{}%
+ \cleardoublepage%
+ }{}{}%
+ \pretocmd{\enddocument}{%
+ \printlocalbibs{}%
+ }{}{}%
+}
% \end{macrocode}
-% \end{macro}
-% Définition du style de page de la partie biblio
+% Extension de la commande "\appendix" de sorte que les chapitres d'annexe
+% soient correctement nommés.
% \begin{macrocode}
-\newpagestyle{biblio}[]{%
+ \apptocmd{\appendix}{%
+ \renewcommand\chaptername{\appendixname}%
+ \singlespacing%
+ }{}{}%
% \end{macrocode}
-% Dans la partie biblio, aucun élément de structuration n'est
-% numéroté
-% \begin{macrocode}
- \setcounter{secnumdepth}{-10}%
-% \end{macrocode}
-% \begin{macrocode}
- \singlespacing%
- \sethead[\thepage]%
- []%
- [\YAD at chapter@header]%
- {\YAD at chapter@header}%
- {}%
- {\thepage}%
- \headrule%
-% \end{macrocode}
-% On demande que la bibliographie apparaisse au plus haut niveau des
-% signets
-% \begin{macrocode}
- % \cleardoublepage%
- \YAD at phantomsection%
- \YAD at bookmarksetup{startatroot}%
- \YAD at setfoot%
-}%
-% \end{macrocode}
% Définition du style de page de la partie finale
% \begin{macrocode}
\newpagestyle{backmatter}[]{%
@@ -3617,73 +3596,6 @@
}{}{}%
% \end{macrocode}
% \end{macro}
-% Définition du style de page de la table des matières
-% \begin{macrocode}
-\newpagestyle{contents}[]{%
- \cleardoublepage%
- \YAD at phantomsection%
- \YAD at bookmarksetup{startatroot}%
- \singlespacing%
- \sethead[\thepage]%
- []%
- [\cmdKV at YAD@name]%
- {\cmdKV at YAD@name}%
- {}%
- {\thepage}%
- \headrule%
-% \end{macrocode}
-% Dans la partie glossaire, aucun élément de structuration n'est
-% numéroté
-% \begin{macrocode}
- \setcounter{secnumdepth}{-10}%
- \YAD at setfoot%
-}%
-% \end{macrocode}
-% Définition du style de page de la partie glossaire
-% \begin{macrocode}
-\newpagestyle{glossaire}[]{%
- \cleardoublepage%
- \YAD at phantomsection%
- \YAD at bookmarksetup{startatroot}%
- \singlespacing%
- \sethead[\thepage]%
- []%
- [\YAD at chapter@header]%
- {\YAD at chapter@header}%
- {}%
- {\thepage}%
- \headrule%
-% \end{macrocode}
-% Dans la partie glossaire, aucun élément de structuration n'est
-% numéroté
-% \begin{macrocode}
- \setcounter{secnumdepth}{-10}%
- \YAD at setfoot%
-}%
-% \end{macrocode}
-% Définition du style de page de la partie index
-% \begin{macrocode}
-\newpagestyle{index}[]{%
- \singlespacing%
- \sethead[\thepage]%
- []%
- [\YAD at chapter@header]%
- {\YAD at chapter@header}%
- {}%
- {\thepage}%
- \headrule%
-% \end{macrocode}
-% Dans la partie index, aucun élément de structuration n'est
-% numéroté
-% \begin{macrocode}
- \setcounter{secnumdepth}{-10}%
- \cleardoublepage%
- \YAD at phantomsection%
- \YAD at setsecnumdepth{\YAD at secnumdepth}%
- \YAD at bookmarksetup{startatroot}%
- \YAD at setfoot%
-}%
-% \end{macrocode}
% Définition du style de page de la partie \textquote{4\ieme{} de
% couverture} (\emph{blub} en anglais).
% \begin{macrocode}
@@ -3774,12 +3686,16 @@
\yadsetup{#1}
\setlength{\fboxsep}{10pt}%
\setlength{\YAD at titleboxwidth}{\linewidth-2\fboxsep-2\fboxrule}%
- \renewcommand*{\do}[1]{%
-% \end{macrocode}
% Appel du style de page propre au(x) titre(s)
% \begin{macrocode}
\pagestyle{titles}%
% \end{macrocode}
+ \renewcommand*{\do}[1]{%
+% \end{macrocode}
+% Chaque nouvelle page de titre commence en page impaire.
+% \begin{macrocode}
+ \cleardoublepage%
+% \end{macrocode}
% On passe dans la langue choisie en option (en français si rien n'est
% spécifié).
% \begin{macrocode}
@@ -3810,7 +3726,7 @@
}%
\noindent%
\begin{minipage}{\linewidth-2\fboxsep-2\fboxrule}
- \onehalfspacing%
+ % \onehalfspacing%
\noindent%
\ifthenelse{\equal{\cmdKV at YAD@frametitle}{none}}{%
}{%
@@ -3840,8 +3756,10 @@
}%
\ifundef{\printsubtitle}{%
}{%
- \ifdraft{}{\vspace*{\stretch{.15}}}%
- % \vspace*{\stretch{.15}}%
+ \ifdraft{}{%
+ \vskip0.5em%
+ % \vspace*{\stretch{.15}}%
+ }%
\par%
\centering%
\Large\printsubtitle%
@@ -4291,7 +4209,6 @@
\@ifstar{\@tempswatrue\csuse{YAD at starnostar@makekeywords}}{\@tempswafalse\csuse{YAD at starnostar@makekeywords}}%
}%
\csdef{YAD at starnostar@makekeywords}{%
- \cleardoublepage%
% \end{macrocode}
% Appel du style de page propre à la partie préliminaire
% \begin{macrocode}
@@ -4324,8 +4241,8 @@
\else%
\vspace*{\stretch{1}}%
\fi
+ \pagestyle{preliminary}%
\expandafter\selectlanguage\expandafter{\YAD at mainlanguage}%
- \pagestyle{preliminary}%
}%
% \end{macrocode}
% \end{macro}
@@ -4424,7 +4341,6 @@
\@ifstar{\@tempswatrue\csuse{YAD at starnostar@makelaboratory}}{\@tempswafalse\csuse{YAD at starnostar@makelaboratory}}%
}%
\csdef{YAD at starnostar@makelaboratory}{%
- \cleardoublepage%
% \end{macrocode}
% Appel du style de page propre à la partie préliminaire
% \begin{macrocode}
@@ -4795,36 +4711,19 @@
% Page de présentation (résumés)
% \begin{macrocode}
\newcommand{\makeabstract}{%
+ \pagestyle{preliminary}%
+ \bgroup%
\ifbool{YAD at nomakeabstract}{%
}{%
\YAD at alarm@noabstract%
}%
- \pagestyle{preliminary}%
\YAD at phantomsection%
\addcontentsline{toc}{chapter}{\abstractname}%
- \booltrue{YAD at makeabstract@used}%
- \bgroup%
\addtolength{\footskip}{6pt minus 6pt}%
\setfootrule{0pt}%
- \setfoot[][%
- \ifboolexpr{%
- bool {YAD at inprogress@work}%
- or bool {YAD at inprogress@work at star}%
- }{%
- \textsc{\translate{lbl-inprogressfoottext} \today}%
- }{%
- \ifboolexpr{%
- bool {YAD at submitted@work at star}%
- }{%
- \textsc{\translate{lbl-submittedfoottext} \today}%
- }{%
- }%
- }%
- ][]{%
- % \medskip\par%
+ \setfoot[][][]{%
\YAD at laboratory@abstract at page%
}{}{}%
- \cleardoublepage%
\renewcommand{\YAD at chapter@header}{\abstractname}%
\renewcommand{\YAD at section@header}{\abstractname}%
\YAD at abstract@page%
@@ -4838,6 +4737,8 @@
% \begin{macrocode}
\YAD at nolaboratorytrue%
\YAD at nolaboratoryaddresstrue%
+%
+ \booltrue{YAD at makeabstract@used}%
}%
% \end{macrocode}
% \end{macro}
@@ -4918,6 +4819,7 @@
% Éléments communs de la page de présentation
% \begin{macrocode}
\newcommand{\makebackcover}{%
+ \printlocalbibs{}%
\pagestyle{backcover}%
% \end{macrocode}
% On insère le code pour l'éventuel colophon
@@ -4942,7 +4844,6 @@
}%
\csdef{YAD at starnostar@makededications}{%
\pagestyle{prepreliminary}%
- \cleardoublepage%
\if at tempswa%
\else%
\vspace*{\stretch{2}}%
@@ -4958,9 +4859,6 @@
permettant de préparer des dédicaces, n'a pas été utilisée.%
}%
}{%
-% \end{macrocode}
-% Appel du style de page propre à la partie préliminaire
-% \begin{macrocode}
\begin{flushright}
\itshape%
\DTLforeach*{dedications}{%
@@ -4994,6 +4892,7 @@
\else%
\vspace*{\stretch{2}}%
\fi
+ \pagestyle{preliminary}%
}%
% \end{macrocode}
% \end{macro}
@@ -5006,7 +4905,7 @@
}%
\csdef{YAD at starnostar@makefrontepigraphs}{%
\patchcmd{\epigraphs}{\qitemlabel}{\qitemlabel\itemsep=1.5\baselineskip}{}{}%
- \cleardoublepage%
+ \pagestyle{prepreliminary}%
\if at tempswa%
\else%
\vspace*{\stretch{2}}%
@@ -5027,9 +4926,6 @@
}{%
}%
}{%
-% \end{macrocode}
-% Appel du style de page propre à la partie préliminaire
-% \begin{macrocode}
\begin{epigraphs}
\DTLforeach*{frontepigraphs}{%
\YAD at epigraphlanguage=epigraphlanguage,%
@@ -5072,40 +4968,11 @@
\else%
\vspace*{\stretch{2}}%
\fi
+ \pagestyle{preliminary}%
}%
% \end{macrocode}
% \end{macro}
%
-% \begin{environment}{epigraphspage}
-% Environnement de la page des épigraphes globales à la thèse
-% \begin{macrocode}
-\newenvironment{epigraphspage}{%
-% \end{macrocode}
-% Redéfinition locale de la commande d'épigraphe
-% \begin{macrocode}
- \patchcmd{\epigraphs}{\qitemlabel}{\qitemlabel\itemsep=1.5\baselineskip}{}{}
- \cleardoublepage%
- \vspace*{\stretch{1}}%
-}{%
- \vspace*{\stretch{1}}%
-}%
-% \end{macrocode}
-% Appel du style de page propre à la partie préliminaire du
-% document, notamment début de l'insertion des titres courants (on
-% ajoute le style de page "prepreliminary" avant que l'environnement
-% "epigraphspage" ne débute, de sorte que sa portée ne soit pas
-% limitée à cet environnement).
-% \begin{macrocode}
-\BeforeBeginEnvironment{epigraphspage}{%
- \pagestyle{prepreliminary}%
-}%
-\AfterEndEnvironment{epigraphspage}{%
- \pagestyle{preliminary}%
-}%
-% \end{macrocode}
-% \end{environment}
-%
-%
%\section{Commandes et styles pour les tables des matières locales}
%
% Les commandes et styles suivants, ainsi que toute la machinerie permettant de
@@ -5411,6 +5278,24 @@
}{}{}%
% \end{macrocode}
% \end{environment}
+%
+% Le code pour l'affichage des bibliographies locales, utilisé à plusieurs
+% endroits, est stocké dans une macro.
+% \begin{macrocode}
+\newcommand{\printlocalbibs}{%
+ \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}
% On redéfinit la commande "\chapter" de sorte que, dans un chapitre non
% numéroté ("\chapter*") :
% \begin{itemize}
@@ -5431,14 +5316,10 @@
\LetLtxMacro{\YAD at ORI@chapter}{\chapter}%
\AfterPreamble{% delay the redefinition when titlesec has done its own
\renewcommand\chapter{%
- \ifbool{YAD at localbibs}{%
- \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%
- }{%
- }
+ \printlocalbibs{}%
+ \boolfalse{YAD at localbibs@used}%
\cleardoublepage%
+ \renewcommand{\sectiontitle}{}%
\YAD at phantomsection%
\ifbool{YAD at output@paper}{%
}{%
@@ -5487,7 +5368,7 @@
\boolfalse{YAD at nonnumbered@paragraph}%
\boolfalse{YAD at nonnumbered@subparagraph}%
\if at mainmatter%
- \YAD at setsecnumdepth{\YAD at secnumdepth}
+ \YAD at setsecnumdepth{\YAD at secnumdepth}%
\fi%
\YAD at tmp@chapter[#1][#2]{#3}%
}%
@@ -5514,7 +5395,7 @@
% tables des matières.
% \end{itemize}
% \begin{macrocode}
-\LetLtxMacro{\YAD at ORI@section}{\section}
+\LetLtxMacro{\YAD at ORI@section}{\section}%
\renewcommand\section{%
\if at mainmatter%
\ifbool{YAD at nonnumbered@chapter}{%
@@ -5523,7 +5404,7 @@
}%
\fi%
\@ifstar{\YAD at starred@section}{\YAD at unstarred@section}%
-}
+}%
\newcommandtwoopt*{\YAD at tmp@section}[3][][]{%
\ifthenelse{\isempty{#1}}{%
\ifthenelse{\isempty{#2}}{%
@@ -5575,7 +5456,7 @@
% "\section".
% \end{itemize}
% \begin{macrocode}
-\LetLtxMacro{\YAD at ORI@subsection}{\subsection}
+\LetLtxMacro{\YAD at ORI@subsection}{\subsection}%
\renewcommand\subsection{%
\if at mainmatter%
\ifbool{YAD at nonnumbered@section}{%
@@ -5584,7 +5465,7 @@
}%
\fi%
\@ifstar{\YAD at starred@subsection}{\YAD at unstarred@subsection}%
-}
+}%
\newcommand*{\YAD at tmp@subsection}[2][]{%
\ifthenelse{\isempty{#1}}{%
\YAD at ORI@subsection{#2}%
@@ -5613,7 +5494,7 @@
\YAD at tmp@subsection[#1]{#2}%
}%
%
-\LetLtxMacro{\YAD at ORI@subsubsection}{\subsubsection}
+\LetLtxMacro{\YAD at ORI@subsubsection}{\subsubsection}%
\renewcommand\subsubsection{%
\if at mainmatter%
\ifbool{YAD at nonnumbered@subsection}{%
@@ -5622,7 +5503,7 @@
}%
\fi%
\@ifstar{\YAD at starred@subsubsection}{\YAD at unstarred@subsubsection}%
-}
+}%
\newcommand*{\YAD at tmp@subsubsection}[2][]{%
\ifthenelse{\isempty{#1}}{%
\YAD at ORI@subsubsection{#2}%
@@ -5649,7 +5530,7 @@
\YAD at tmp@subsubsection[#1]{#2}%
}%
%
-\LetLtxMacro{\YAD at ORI@paragraph}{\paragraph}
+\LetLtxMacro{\YAD at ORI@paragraph}{\paragraph}%
\renewcommand\paragraph{%
\if at mainmatter%
\ifbool{YAD at nonnumbered@subsubsection}{%
@@ -5658,7 +5539,7 @@
}%
\fi%
\@ifstar{\YAD at starred@paragraph}{\YAD at unstarred@paragraph}%
-}
+}%
\newcommand*{\YAD at tmp@paragraph}[2][]{%
\ifthenelse{\isempty{#1}}{%
\YAD at ORI@paragraph{#2}%
@@ -5683,7 +5564,7 @@
\YAD at tmp@paragraph[#1]{#2}%
}%
%
-\LetLtxMacro{\YAD at ORI@subparagraph}{\subparagraph}
+\LetLtxMacro{\YAD at ORI@subparagraph}{\subparagraph}%
\renewcommand\subparagraph{%
\if at mainmatter%
\ifbool{YAD at nonnumbered@paragraph}{%
@@ -5692,7 +5573,7 @@
}%
\fi%
\@ifstar{\YAD at starred@subparagraph}{\YAD at unstarred@subparagraph}%
-}
+}%
\newcommand*{\YAD at tmp@subparagraph}[2][]{%
\ifthenelse{\isempty{#1}}{%
\YAD at ORI@subparagraph{#2}%
@@ -6124,7 +6005,7 @@
\defbibheading{YAD at localbibs@heading}[\translate{lbl-localbibname}]{%
\renewcommand\addcontentsline[3]{}%
\section*{#1}%
- \let\addcontentsline\YAD at addcontentsline
+ \let\addcontentsline\YAD at addcontentsline%
}%
% \end{macrocode}
%
@@ -6145,20 +6026,24 @@
\booltrue{YAD at printbibliography@used}%
% \end{macrocode}
%
-% Hack aimablement fourni par samcarter
+% Un hack aimablement fourni par samcarter
% (\url{https://texnique.fr/osqa/questions/6977/header-avec-biblatex/6978})
-% qui évite 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}.
+% 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}.
% \begin{macrocode}
- \pagestyle{biblio}%
+ \singlespace%
\chapter*{\bibname}%
- \begingroup%
- \let\cleardoublepage\relax%
\YAD at printbibliography@ORI[heading=none,#1]%
- \endgroup%
+ \endsinglespace%
}%
}{%
+ \BeforeBeginEnvironment{thebibliography}{%
+ \singlespacing%
+ }%
+ \AtEndEnvironment{thebibliography}{%
+ \clearpage%
+ }%
}%
}%
% \end{macrocode}
@@ -6301,6 +6186,26 @@
}%
% \end{macrocode}
%
+% Le code suivant, aimablement fourni par touhami
+% (\url{https://texnique.fr/osqa/questions/8358/packages-glossaries-et-yathesis-pepin-de-forme-plurielle-glspl})
+% perme tque, dans le cas d'un mémoire en anglais (option
+% "mainlanguage=english"), les règles s'appliquant aux glossaires et acronymes
+% soient bien celles de l'anglais (et non du français).
+% \begin{macrocode}
+\AtEndPreamble{%
+ \@ifpackageloaded{glossaries}{%
+ \IfLanguageName{english}{%
+ \makeatletter
+ \let\glossariescaptionsenglish\undefined
+ \input{glossaries-english.ldf}
+ \makeatother
+ }{%
+ }%
+ }{%
+ }%
+}%
+% \end{macrocode}
+%
% \subsection{Fichiers importés par la classe}
%
% La \yatcl charge les fichiers de configuration locale et de données
@@ -6571,49 +6476,48 @@
%
% \begin{macrocode}
# mode: yathesis.cls
-# denisbitouze, 2020-03-26
+# denisbitouze, 2020-04-05
#
-#include:class-book
-#include:latex-document
-#include:latex-mathsymbols
-#include:tex
-#include:pgfopts
+#include:adjustbox
+#include:array
+#include:babel
+#include:biblatex
+#include:bookmark
+#include:colophon
+#include:csquotes
+#include:datatool
+#include:datetime
+#include:draftwatermark
+#include:environ
+#include:epigraph
+#include:etoc
#include:etoolbox
-#include:xpatch
-#include:morewrites%
#include:filehook
-#include:hopatch
-#include:xifthen
-#include:xkeyval%
+#include:fncychap
#include:geometry
#include:graphicx
-#include:environ
-#include:adjustbox
-#include:array
-#include:xstring
-#include:textcase
-#include:translator
+#include:hopatch
+#include:hypcap
+#include:ifdraft
+#include:iflang
#include:iftex
-#include:epigraph
-#include:tcolorbox
+#include:letltxmacro
#include:marvosym
+#include:morewrites
+#include:nonumonpart
+#include:pgfopts
#include:setspace
-#include:etoc
+#include:tcolorbox
+#include:textcase
+#include:titleps
#include:tocbibind
-#include:nonumonpart
+#include:translator
+#include:twoopt
#include:xcolor
-#include:datatool
-#include:fncychap
-#include:titleps
-#include:ifdraft
-#include:colophon
-#include:draftwatermark
-#include:babel
-#include:iflang
-#include:datetime
-#include:hypcap
-#include:bookmark
-#include:glossaries-babel
+#include:xifthen
+#include:xkeyval
+#include:xpatch
+#include:xstring
#
# Document class
#keyvals:\documentclass/yathesis
@@ -6704,39 +6608,17 @@
\doctoralschool[%<précision(s)%>]{nom de l'école doctorale%text}#n
\laboratory[%<précision(s)%>]{%<nom du laboratoire%>}{%<adresse du laboratoire%>}#n
#
-#keyvals:\pres
+#keyvals:\pres,\comue,\doctoralschool
logo=
logoheight=
url=
#endkeyvals
-#keyvals:\comue
+#keyvals:\institute,\coinstitute,\company
logo=
logoheight=
url=
-#endkeyvals
-#keyvals:\institute
-logo=
-logoheight=
-url=
nologo
#endkeyvals
-#keyvals:\coinstitute
-logo=
-logoheight=
-url=
-nologo
-#endkeyvals
-#keyvals:\company
-logo=
-logoheight=
-url=
-nologo
-#endkeyvals
-#keyvals:\doctoralschool
-logo=
-logoheight=
-url=
-#endkeyvals
#keyvals:\laboratory
logo=
logoheight=
@@ -6993,7 +6875,7 @@
\AfterEndPreamble{
\pretocmd{\tableofcontents at YAD@without at argument}{\cleardoublepage\zlabel{tableofcontents-withoutargument}}{}{}
\pretocmd{\tableofcontents at YAD@with at argument}{\cleardoublepage\zlabel{tableofcontents-withargument}}{}{}
- \pretocmd{\YAD at insert@colophon}{\clearpage\zlabel{colophon}}{}{}
+ \pretocmd{\printcolophontext}{\zlabel{colophon}}{}{}
\pretocmd{\maketitle}{\zlabel{fr-title}}{}{}%
\pretocmd{\makedisclaimer}{\cleardoublepage\zlabel{disclaimer}}{}{}
\pretocmd{\makekeywords}{\cleardoublepage\zlabel{keywords}}{}{}
@@ -7019,6 +6901,9 @@
\ifthenelse{\equal{#3}{Introduction générale}}{\cleardoublepage\zlabel{introduction}%
}{%
}%
+ \ifthenelse{\equal{#3}{Développement}}{\zlabel{localbib}%
+ }{%
+ }%
\ifthenelse{\equal{#3}{Contexte du chaos du rire}}{\cleardoublepage\zlabel{chapter}%
}{%
}%
Modified: trunk/Master/texmf-dist/tex/latex/yathesis/yathesis-demo.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/yathesis/yathesis-demo.sty 2020-04-14 21:07:10 UTC (rev 54739)
+++ trunk/Master/texmf-dist/tex/latex/yathesis/yathesis-demo.sty 2020-04-14 21:07:33 UTC (rev 54740)
@@ -20,7 +20,7 @@
\AfterEndPreamble{
\pretocmd{\tableofcontents at YAD@without at argument}{\cleardoublepage\zlabel{tableofcontents-withoutargument}}{}{}
\pretocmd{\tableofcontents at YAD@with at argument}{\cleardoublepage\zlabel{tableofcontents-withargument}}{}{}
- \pretocmd{\YAD at insert@colophon}{\clearpage\zlabel{colophon}}{}{}
+ \pretocmd{\printcolophontext}{\zlabel{colophon}}{}{}
\pretocmd{\maketitle}{\zlabel{fr-title}}{}{}%
\pretocmd{\makedisclaimer}{\cleardoublepage\zlabel{disclaimer}}{}{}
\pretocmd{\makekeywords}{\cleardoublepage\zlabel{keywords}}{}{}
@@ -46,6 +46,9 @@
\ifthenelse{\equal{#3}{Introduction générale}}{\cleardoublepage\zlabel{introduction}%
}{%
}%
+ \ifthenelse{\equal{#3}{Développement}}{\zlabel{localbib}%
+ }{%
+ }%
\ifthenelse{\equal{#3}{Contexte du chaos du rire}}{\cleardoublepage\zlabel{chapter}%
}{%
}%
Modified: trunk/Master/texmf-dist/tex/latex/yathesis/yathesis.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/yathesis/yathesis.cls 2020-04-14 21:07:10 UTC (rev 54739)
+++ trunk/Master/texmf-dist/tex/latex/yathesis/yathesis.cls 2020-04-14 21:07:33 UTC (rev 54740)
@@ -11,10 +11,10 @@
%% Released under the LaTeX Project Public License v1.3c or later
%% See http://www.latex-project.org/lppl.txt
%% -----------------------------------------------------------------------
-\def\fileversion{v1.0.1}
-\def\filedate{2020/03/28}
+\def\yathesisfileversion{1.0.2}
+\def\yathesisfiledate{2020-04-13}
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-\ProvidesClass{yathesis}[\filedate\space\fileversion\space Yet another class for writing thesis (DB)]
+\ProvidesClass{yathesis}[\yathesisfiledate\space v\yathesisfileversion\space Yet another class for writing thesis (DB)]
\RequirePackage{pgfopts}[2011/06/02]%
\RequirePackage{etoolbox}[2011/01/03]%
\RequirePackage{xpatch}[2012/10/02]%
@@ -60,8 +60,10 @@
\newbool{YAD at valid@month}
\newbool{YAD at valid@year}
\newbool{YAD at mainmatter@used}
+\newbool{YAD at mainmatter}
\newbool{YAD at backmatter}
\newbool{YAD at localtocs}%
+\newbool{YAD at localbibs@used}%
\newbool{YAD at nextwithlocaltoc}%
\newbool{YAD at nonnumbered@chapter}%
\newbool{YAD at nonnumbered@section}%
@@ -1986,7 +1988,6 @@
\cleardoublepage%
\sethead[\thepage][][\nomname]{\nomname}{}{\thepage}\headrule%
\YAD at ORI@printnomenclature%
- \pagestyle{preliminary}%
}%
}{%
}%
@@ -2013,14 +2014,13 @@
\newcommand*{\YAD at setfoot}{}%
}%
}%
-\xpretocmd{\pagestyle}{\cleardoublepage}{}{}%
+\pretocmd{\pagestyle}{\cleardoublepage}{}{}%
\AfterEndPreamble{%
\let\YAD at ORI@tableofcontents\tableofcontents%
\let\YAD at ORI@localtableofcontents\localtableofcontents%
\renewcommand{\tableofcontents}{%
+ \booltrue{YAD at tableofcontents@used}%
\pagestyle{preliminary}%
- \booltrue{YAD at tableofcontents@used}%
- \cleardoublepage%
\YAD at phantomsection%
% \renewcommand{\contentsname}{\cmdKV at YAD@name}
\@ifnextchar[{\tableofcontents at YAD@with at argument}{\tableofcontents at YAD@without at argument}%]
@@ -2033,6 +2033,16 @@
\let\cmdKV at YAD@depth\YAD at tocdepth%
\let\cmdKV at YAD@name\contentsname%
\YAD at localstyle % pour les local TOCs qui suivent
+ \ifbool{YAD at mainmatter}%
+ {%
+ \pagestyle{mainmatter}%
+ }{%
+ }%
+ \ifbool{YAD at backmatter}%
+ {%
+ \pagestyle{backmatter}%
+ }{%
+ }%
}%
\newcommand\tableofcontents at YAD@with at argument[1][]{%
\yadsetup{#1}%
@@ -2058,6 +2068,16 @@
\let\cmdKV at YAD@depth\YAD at tocdepth%
\let\cmdKV at YAD@name\contentsname%
\YAD at localstyle % pour les local TOCs qui suivent
+ \ifbool{YAD at mainmatter}%
+ {%
+ \pagestyle{mainmatter}%
+ }{%
+ }%
+ \ifbool{YAD at backmatter}%
+ {%
+ \pagestyle{backmatter}%
+ }{%
+ }%
}%
}%
\newcommand{\YAD at setsecnumdepth}[1]{%
@@ -2129,7 +2149,7 @@
}
% \renewcommand{\setcounter}[2]{}%
%
-\newcommand*{\YAD at chapter@header}{%
+\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
@@ -2140,11 +2160,20 @@
}%
\chaptertitle%
}%
-\newcommand*{\YAD at section@header}{%
+\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})%
+ (
+ (
+ 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})
}{%
\thesection.
}{%
@@ -2195,8 +2224,12 @@
\setfoot{}{}{}%
}%
\newpagestyle{prepreliminary}[]{%
+ \sethead{}{}{}%
+ \setfoot{}{}{}%
+ \setheadrule{0pt}%
+ \setfootrule{0pt}%
\setcounter{secnumdepth}{-10}%
- \YAD at setfoot%
+ % \YAD at setfoot%
}%
\newpagestyle{preliminary}[]{%
\sethead[\thepage]%
@@ -2217,7 +2250,7 @@
\setcounter{secnumdepth}{-10}%
\YAD at setfoot%
}%
-\newpagestyle{ordinary}[]{%
+\newpagestyle{mainmatter}[]{%
\sethead[\thepage]%
[]%
[\YAD at chapter@header]%
@@ -2233,10 +2266,18 @@
{}%
{\thepage}%
\headrule%
- \setcounter{secnumdepth}{-10}%
+ \YAD at setsecnumdepth{\YAD at secnumdepth}%
\YAD at setfoot%
}%
-\newpagestyle{mainmatter}[]{%
+\xapptocmd{\mainmatter}{%
+ \booltrue{YAD at mainmatter@used}%
+ \booltrue{YAD at mainmatter}%
+ \pagestyle{mainmatter}%
+ \ifbool{YAD at localtocs@classoption}%
+ {%
+ \booltrue{YAD at localtocs}%
+ }{%
+ }%
\ifthenelse{\equal{\YAD at interligne}{single}}{%
\singlespacing%
}{%
@@ -2246,32 +2287,6 @@
\onehalfspacing%
}%
}%
- \sethead[\thepage]%
- []%
- [\YAD at chapter@header]%
- {%
- \ifthenelse{%
- \equal{\sectiontitle}{}%
- }{%
- \YAD at chapter@header%
- }{%
- \YAD at section@header%
- }%
- }%
- {}%
- {\thepage}%
- \headrule%
- \YAD at setsecnumdepth{\YAD at secnumdepth}%
- \YAD at setfoot%
-}%
-\xapptocmd{\mainmatter}{%
- \booltrue{YAD at mainmatter@used}%
- \ifbool{YAD at localtocs@classoption}%
- {%
- \booltrue{YAD at localtocs}%
- }{%
- }
- \pagestyle{mainmatter}%
}{}{}%
\AtEndDocument{%
\ifboolexpr{%
@@ -2287,64 +2302,30 @@
}%
}%
}%
-\newpagestyle{appendix}[]{%
- \singlespacing%
- \sethead[\thepage]%
- []%
- [%
- \ifthenelse{%
- \value{secnumdepth}>-1
- \and
- \value{chapter}>0
- }{%
- \MakeUppercase\appendixname{} \thechapter.\
- }{%
- }
- \chaptertitle%
- ]%
- {%
- \ifthenelse{%
- \equal{\sectiontitle}{}%
- }{%
- \ifthenelse{%
- \value{secnumdepth}>-1
- \and
- \value{chapter}>0
- }{%
- \MakeUppercase\appendixname{} \thechapter.\
- }{%
- }
- \chaptertitle%
- }{%
- \YAD at section@header%
- }%
- }%
- {}%
- {\thepage}%
- \headrule%
- \YAD at phantomsection%
- \YAD at setsecnumdepth{\YAD at secnumdepth}%
- \YAD at bookmarksetup{startatroot}%
- \YAD at setfoot%
-}%
-\xapptocmd{\appendix}{%
- \pagestyle{appendix}%
-}{}{}%
-\newpagestyle{biblio}[]{%
- \setcounter{secnumdepth}{-10}%
- \singlespacing%
- \sethead[\thepage]%
- []%
- [\YAD at chapter@header]%
- {\YAD at chapter@header}%
- {}%
- {\thepage}%
- \headrule%
- % \cleardoublepage%
- \YAD at phantomsection%
- \YAD at bookmarksetup{startatroot}%
- \YAD at setfoot%
-}%
+\AtEndPreamble{%
+ \xpretocmd{\part}{%
+ \printlocalbibs{}%
+ }{}{}%
+ \pretocmd{\mainmatter}{%
+ \printlocalbibs{}%
+ \cleardoublepage%
+ }{}{}%
+ \pretocmd{\appendix}{%
+ \printlocalbibs{}%
+ \cleardoublepage%
+ }{}{}%
+ \pretocmd{\backmatter}{%
+ \printlocalbibs{}%
+ \cleardoublepage%
+ }{}{}%
+ \pretocmd{\enddocument}{%
+ \printlocalbibs{}%
+ }{}{}%
+}
+ \apptocmd{\appendix}{%
+ \renewcommand\chaptername{\appendixname}%
+ \singlespacing%
+ }{}{}%
\newpagestyle{backmatter}[]{%
\singlespacing%
\sethead[\thepage]%
@@ -2372,52 +2353,6 @@
\booltrue{YAD at backmatter}%
\boolfalse{YAD at localtocs}%
}{}{}%
-\newpagestyle{contents}[]{%
- \cleardoublepage%
- \YAD at phantomsection%
- \YAD at bookmarksetup{startatroot}%
- \singlespacing%
- \sethead[\thepage]%
- []%
- [\cmdKV at YAD@name]%
- {\cmdKV at YAD@name}%
- {}%
- {\thepage}%
- \headrule%
- \setcounter{secnumdepth}{-10}%
- \YAD at setfoot%
-}%
-\newpagestyle{glossaire}[]{%
- \cleardoublepage%
- \YAD at phantomsection%
- \YAD at bookmarksetup{startatroot}%
- \singlespacing%
- \sethead[\thepage]%
- []%
- [\YAD at chapter@header]%
- {\YAD at chapter@header}%
- {}%
- {\thepage}%
- \headrule%
- \setcounter{secnumdepth}{-10}%
- \YAD at setfoot%
-}%
-\newpagestyle{index}[]{%
- \singlespacing%
- \sethead[\thepage]%
- []%
- [\YAD at chapter@header]%
- {\YAD at chapter@header}%
- {}%
- {\thepage}%
- \headrule%
- \setcounter{secnumdepth}{-10}%
- \cleardoublepage%
- \YAD at phantomsection%
- \YAD at setsecnumdepth{\YAD at secnumdepth}%
- \YAD at bookmarksetup{startatroot}%
- \YAD at setfoot%
-}%
\newpagestyle{backcover}[]{%
\singlespacing%
\setlength{\footskip}{35pt}%
@@ -2486,8 +2421,9 @@
\yadsetup{#1}
\setlength{\fboxsep}{10pt}%
\setlength{\YAD at titleboxwidth}{\linewidth-2\fboxsep-2\fboxrule}%
+ \pagestyle{titles}%
\renewcommand*{\do}[1]{%
- \pagestyle{titles}%
+ \cleardoublepage%
\begingroup%
\expandafter\selectlanguage\expandafter{##1}%
\begin{lrbox}{\YAD at titlebox}
@@ -2510,7 +2446,7 @@
}%
\noindent%
\begin{minipage}{\linewidth-2\fboxsep-2\fboxrule}
- \onehalfspacing%
+ % \onehalfspacing%
\noindent%
\ifthenelse{\equal{\cmdKV at YAD@frametitle}{none}}{%
}{%
@@ -2540,8 +2476,10 @@
}%
\ifundef{\printsubtitle}{%
}{%
- \ifdraft{}{\vspace*{\stretch{.15}}}%
- % \vspace*{\stretch{.15}}%
+ \ifdraft{}{%
+ \vskip0.5em%
+ % \vspace*{\stretch{.15}}%
+ }%
\par%
\centering%
\Large\printsubtitle%
@@ -2936,7 +2874,6 @@
\@ifstar{\@tempswatrue\csuse{YAD at starnostar@makekeywords}}{\@tempswafalse\csuse{YAD at starnostar@makekeywords}}%
}%
\csdef{YAD at starnostar@makekeywords}{%
- \cleardoublepage%
\pagestyle{prepreliminary}%
% \YAD at astuce@expressioncle%
\if at tempswa%
@@ -2966,8 +2903,8 @@
\else%
\vspace*{\stretch{1}}%
\fi
+ \pagestyle{preliminary}%
\expandafter\selectlanguage\expandafter{\YAD at mainlanguage}%
- \pagestyle{preliminary}%
}%
\DTLnewdb{laboratories}%
\newcommand{\laboratory}[3][]{%
@@ -3055,7 +2992,6 @@
\@ifstar{\@tempswatrue\csuse{YAD at starnostar@makelaboratory}}{\@tempswafalse\csuse{YAD at starnostar@makelaboratory}}%
}%
\csdef{YAD at starnostar@makelaboratory}{%
- \cleardoublepage%
\pagestyle{prepreliminary}%
\if at tempswa%
\else%
@@ -3374,36 +3310,19 @@
}%
}%
\newcommand{\makeabstract}{%
+ \pagestyle{preliminary}%
+ \bgroup%
\ifbool{YAD at nomakeabstract}{%
}{%
\YAD at alarm@noabstract%
}%
- \pagestyle{preliminary}%
\YAD at phantomsection%
\addcontentsline{toc}{chapter}{\abstractname}%
- \booltrue{YAD at makeabstract@used}%
- \bgroup%
\addtolength{\footskip}{6pt minus 6pt}%
\setfootrule{0pt}%
- \setfoot[][%
- \ifboolexpr{%
- bool {YAD at inprogress@work}%
- or bool {YAD at inprogress@work at star}%
- }{%
- \textsc{\translate{lbl-inprogressfoottext} \today}%
- }{%
- \ifboolexpr{%
- bool {YAD at submitted@work at star}%
- }{%
- \textsc{\translate{lbl-submittedfoottext} \today}%
- }{%
- }%
- }%
- ][]{%
- % \medskip\par%
+ \setfoot[][][]{%
\YAD at laboratory@abstract at page%
}{}{}%
- \cleardoublepage%
\renewcommand{\YAD at chapter@header}{\abstractname}%
\renewcommand{\YAD at section@header}{\abstractname}%
\YAD at abstract@page%
@@ -3411,6 +3330,7 @@
\egroup%
\YAD at nolaboratorytrue%
\YAD at nolaboratoryaddresstrue%
+ \booltrue{YAD at makeabstract@used}%
}%
\newcommand{\YAD at abstract@page at rule}[1][black]{\bgroup\color{#1}\noindent\rule[2pt]{\linewidth}{2pt}\egroup}
\AtEndDocument{%
@@ -3471,6 +3391,7 @@
}%
}%
\newcommand{\makebackcover}{%
+ \printlocalbibs{}%
\pagestyle{backcover}%
\ifthenelse{\equal{\YAD at colophon@location}{recto-backcover}}{%
\newgeometry{centering,nomarginpar,bottom=1cm,top=1cm,headheight=\YAD at max@logoheight,hmargin=2cm,includeall}%
@@ -3486,7 +3407,6 @@
}%
\csdef{YAD at starnostar@makededications}{%
\pagestyle{prepreliminary}%
- \cleardoublepage%
\if at tempswa%
\else%
\vspace*{\stretch{2}}%
@@ -3535,6 +3455,7 @@
\else%
\vspace*{\stretch{2}}%
\fi
+ \pagestyle{preliminary}%
}%
\csdef{makefrontepigraphs}{%
\@ifstar{\@tempswatrue\csuse{YAD at starnostar@makefrontepigraphs}}{\@tempswafalse\csuse{YAD at starnostar@makefrontepigraphs}}%
@@ -3541,7 +3462,7 @@
}%
\csdef{YAD at starnostar@makefrontepigraphs}{%
\patchcmd{\epigraphs}{\qitemlabel}{\qitemlabel\itemsep=1.5\baselineskip}{}{}%
- \cleardoublepage%
+ \pagestyle{prepreliminary}%
\if at tempswa%
\else%
\vspace*{\stretch{2}}%
@@ -3604,18 +3525,6 @@
\else%
\vspace*{\stretch{2}}%
\fi
-}%
-\newenvironment{epigraphspage}{%
- \patchcmd{\epigraphs}{\qitemlabel}{\qitemlabel\itemsep=1.5\baselineskip}{}{}
- \cleardoublepage%
- \vspace*{\stretch{1}}%
-}{%
- \vspace*{\stretch{1}}%
-}%
-\BeforeBeginEnvironment{epigraphspage}{%
- \pagestyle{prepreliminary}%
-}%
-\AfterEndEnvironment{epigraphspage}{%
\pagestyle{preliminary}%
}%
\def\YAD at leftmargin {0pt}
@@ -3864,17 +3773,26 @@
}{%
}%
}{}{}%
-\LetLtxMacro{\YAD at ORI@chapter}{\chapter}%
-\AfterPreamble{% delay the redefinition when titlesec has done its own
- \renewcommand\chapter{%
- \ifbool{YAD at localbibs}{%
+\newcommand{\printlocalbibs}{%
+ \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}%
+ }%
+ }{%
+ }%
+}%
+\LetLtxMacro{\YAD at ORI@chapter}{\chapter}%
+\AfterPreamble{% delay the redefinition when titlesec has done its own
+ \renewcommand\chapter{%
+ \printlocalbibs{}%
+ \boolfalse{YAD at localbibs@used}%
\cleardoublepage%
+ \renewcommand{\sectiontitle}{}%
\YAD at phantomsection%
\ifbool{YAD at output@paper}{%
}{%
@@ -3917,7 +3835,7 @@
\boolfalse{YAD at nonnumbered@paragraph}%
\boolfalse{YAD at nonnumbered@subparagraph}%
\if at mainmatter%
- \YAD at setsecnumdepth{\YAD at secnumdepth}
+ \YAD at setsecnumdepth{\YAD at secnumdepth}%
\fi%
\YAD at tmp@chapter[#1][#2]{#3}%
}%
@@ -3933,7 +3851,7 @@
\xapptocmd{\printglossary}{\renewcommand{\YAD at localtoc}{\YAD at default@localtoc}}{}{}%
\xpretocmd{\printindex}{\renewcommand{\YAD at localtoc}{}}{}{}%
\xapptocmd{\printindex}{\renewcommand{\YAD at localtoc}{\YAD at default@localtoc}}{}{}%
-\LetLtxMacro{\YAD at ORI@section}{\section}
+\LetLtxMacro{\YAD at ORI@section}{\section}%
\renewcommand\section{%
\if at mainmatter%
\ifbool{YAD at nonnumbered@chapter}{%
@@ -3942,7 +3860,7 @@
}%
\fi%
\@ifstar{\YAD at starred@section}{\YAD at unstarred@section}%
-}
+}%
\newcommandtwoopt*{\YAD at tmp@section}[3][][]{%
\ifthenelse{\isempty{#1}}{%
\ifthenelse{\isempty{#2}}{%
@@ -3988,7 +3906,7 @@
\fi%
\YAD at tmp@section[#1][#2]{#3}%
}%
-\LetLtxMacro{\YAD at ORI@subsection}{\subsection}
+\LetLtxMacro{\YAD at ORI@subsection}{\subsection}%
\renewcommand\subsection{%
\if at mainmatter%
\ifbool{YAD at nonnumbered@section}{%
@@ -3997,7 +3915,7 @@
}%
\fi%
\@ifstar{\YAD at starred@subsection}{\YAD at unstarred@subsection}%
-}
+}%
\newcommand*{\YAD at tmp@subsection}[2][]{%
\ifthenelse{\isempty{#1}}{%
\YAD at ORI@subsection{#2}%
@@ -4025,7 +3943,7 @@
\fi%
\YAD at tmp@subsection[#1]{#2}%
}%
-\LetLtxMacro{\YAD at ORI@subsubsection}{\subsubsection}
+\LetLtxMacro{\YAD at ORI@subsubsection}{\subsubsection}%
\renewcommand\subsubsection{%
\if at mainmatter%
\ifbool{YAD at nonnumbered@subsection}{%
@@ -4034,7 +3952,7 @@
}%
\fi%
\@ifstar{\YAD at starred@subsubsection}{\YAD at unstarred@subsubsection}%
-}
+}%
\newcommand*{\YAD at tmp@subsubsection}[2][]{%
\ifthenelse{\isempty{#1}}{%
\YAD at ORI@subsubsection{#2}%
@@ -4060,7 +3978,7 @@
\fi%
\YAD at tmp@subsubsection[#1]{#2}%
}%
-\LetLtxMacro{\YAD at ORI@paragraph}{\paragraph}
+\LetLtxMacro{\YAD at ORI@paragraph}{\paragraph}%
\renewcommand\paragraph{%
\if at mainmatter%
\ifbool{YAD at nonnumbered@subsubsection}{%
@@ -4069,7 +3987,7 @@
}%
\fi%
\@ifstar{\YAD at starred@paragraph}{\YAD at unstarred@paragraph}%
-}
+}%
\newcommand*{\YAD at tmp@paragraph}[2][]{%
\ifthenelse{\isempty{#1}}{%
\YAD at ORI@paragraph{#2}%
@@ -4093,7 +4011,7 @@
\fi%
\YAD at tmp@paragraph[#1]{#2}%
}%
-\LetLtxMacro{\YAD at ORI@subparagraph}{\subparagraph}
+\LetLtxMacro{\YAD at ORI@subparagraph}{\subparagraph}%
\renewcommand\subparagraph{%
\if at mainmatter%
\ifbool{YAD at nonnumbered@paragraph}{%
@@ -4102,7 +4020,7 @@
}%
\fi%
\@ifstar{\YAD at starred@subparagraph}{\YAD at unstarred@subparagraph}%
-}
+}%
\newcommand*{\YAD at tmp@subparagraph}[2][]{%
\ifthenelse{\isempty{#1}}{%
\YAD at ORI@subparagraph{#2}%
@@ -4209,7 +4127,7 @@
\defbibheading{YAD at localbibs@heading}[\translate{lbl-localbibname}]{%
\renewcommand\addcontentsline[3]{}%
\section*{#1}%
- \let\addcontentsline\YAD at addcontentsline
+ \let\addcontentsline\YAD at addcontentsline%
}%
\@ifpackageloaded{csquotes}{%
\SetCiteCommand{\autocite}%
@@ -4218,14 +4136,18 @@
\let\YAD at printbibliography@ORI\printbibliography%
\renewcommand{\printbibliography}[1][]{%
\booltrue{YAD at printbibliography@used}%
- \pagestyle{biblio}%
+ \singlespace%
\chapter*{\bibname}%
- \begingroup%
- \let\cleardoublepage\relax%
\YAD at printbibliography@ORI[heading=none,#1]%
- \endgroup%
+ \endsinglespace%
}%
}{%
+ \BeforeBeginEnvironment{thebibliography}{%
+ \singlespacing%
+ }%
+ \AtEndEnvironment{thebibliography}{%
+ \clearpage%
+ }%
}%
}%
\AtEndDocument{%
@@ -4319,6 +4241,18 @@
}%
}%
\AtEndPreamble{%
+ \@ifpackageloaded{glossaries}{%
+ \IfLanguageName{english}{%
+ \makeatletter
+ \let\glossariescaptionsenglish\undefined
+ \input{glossaries-english.ldf}
+ \makeatother
+ }{%
+ }%
+ }{%
+ }%
+}%
+\AtEndPreamble{%
\ifPDFTeX
\shorthandon{;:!?}%
\fi
More information about the tex-live-commits
mailing list.