summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/yathesis/yathesis.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/yathesis/yathesis.dtx')
-rw-r--r--Master/texmf-dist/source/latex/yathesis/yathesis.dtx380
1 files changed, 199 insertions, 181 deletions
diff --git a/Master/texmf-dist/source/latex/yathesis/yathesis.dtx b/Master/texmf-dist/source/latex/yathesis/yathesis.dtx
index 964ebd22ddc..31c29262aed 100644
--- a/Master/texmf-dist/source/latex/yathesis/yathesis.dtx
+++ b/Master/texmf-dist/source/latex/yathesis/yathesis.dtx
@@ -1,7 +1,7 @@
% \iffalse meta-comment
%
% Copyright (C) 2012, 2013, 2014 by Denis Bitouz'e <denis.bitouze@lmpa.univ-littoral.fr>
-% ---------------------------------------------------------------------------
+% --------------------------------------------------------------------------------------
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
@@ -22,7 +22,7 @@
%</internal>
%<*readme>
-----------------------------------------------------------------------
-yathesis --- Yet Another Thesis Class
+yathesis --- Yet Another Thesis Class, version 0.99k
E-mail: denis.bitouze@lmpa.univ-littoral.fr
Released under the LaTeX Project Public License v1.3c or later
See http://www.latex-project.org/lppl.txt
@@ -117,7 +117,7 @@ run:
\input docstrip.tex
\Msg{********************************************************}
\Msg{* Installation}
-\Msg{* Class: yathesis 2014/07/17 v0.99j}
+\Msg{* Class: yathesis 2014/10/01 v0.99k}
\Msg{* that helps to write thesis following French rules (DB)}
\Msg{********************************************************}
\keepsilent
@@ -307,14 +307,14 @@ This work consists of the file yathesis.dtx
\fi
%</internal>
% \fi
-% \def\YADnblastversion{0.99j}
+% \def\YADnblastversion{0.99k}
% \def\YADdatelastversion{\today}
% \def\fileversion{v\YADnblastversion}
% \def\filedate{\YADdatelastversion}
% \iffalse
%<*class>
-\def\fileversion{v0.99j}
-\def\filedate{2014/07/17}
+\def\fileversion{v0.99k}
+\def\filedate{2014/10/01}
%</class>
%<*driver>
\ProvidesFile{yathesis.dtx}
@@ -352,19 +352,21 @@ This work consists of the file yathesis.dtx
%</driver>
% \fi
%
-% \changes{v0.99}{2014/05/18}{Corrections de bugs}%
-% \changes{v0.99a}{2014/06/02}{Corrections de bugs}%
-% \changes{v0.99b}{2014/06/02}{Corrections de bugs}%
-% \changes{v0.99c}{2014/06/06}{Corrections de bugs}%
-% \changes{v0.99c}{2014/06/06}{Documentation révisée}%
-% \changes{v0.99g}{2014/07/13}{Documentation révisée}%
-% \changes{v0.99g}{2014/07/13}{Corrections de bugs}%
-% \changes{v0.99h}{2014/07/14}{Documentation révisée}%
-% \changes{v0.99h}{2014/07/14}{Corrections de bugs}%
-% \changes{v0.99i}{2014/07/17}{Documentation révisée}%
-% \changes{v0.99i}{2014/07/17}{Corrections de bugs}%
+% \changes{v0.99k}{2014/10/01}{Documentation révisée}%
+% \changes{v0.99k}{2014/10/01}{Corrections de bugs}%
% \changes{v0.99j}{2014/07/18}{Documentation révisée}%
% \changes{v0.99j}{2014/07/18}{Corrections de bugs}%
+% \changes{v0.99i}{2014/07/17}{Documentation révisée}%
+% \changes{v0.99i}{2014/07/17}{Corrections de bugs}%
+% \changes{v0.99h}{2014/07/14}{Documentation révisée}%
+% \changes{v0.99h}{2014/07/14}{Corrections de bugs}%
+% \changes{v0.99g}{2014/07/13}{Documentation révisée}%
+% \changes{v0.99g}{2014/07/13}{Corrections de bugs}%
+% \changes{v0.99c}{2014/06/06}{Corrections de bugs}%
+% \changes{v0.99c}{2014/06/06}{Documentation révisée}%
+% \changes{v0.99b}{2014/06/02}{Corrections de bugs}%
+% \changes{v0.99a}{2014/06/02}{Corrections de bugs}%
+% \changes{v0.99}{2014/05/18}{Corrections de bugs}%
%
% \CheckSum{4413}
%
@@ -387,8 +389,7 @@ This work consists of the file yathesis.dtx
% \DoNotIndex{%
% \newcommand,\newenvironment,\begin,\end,\acrpluralsuffix,\acrshort,\active,\addlinespace,\advance,\AtEndDocument,\begingroup,\caption,\catcode,\ClassInfo,\color,\colorlet,\cr,\DeclareGraphicsExtensions,\declaretheorem,\declaretheoremstyle,\def,\definecolor,\do,\edef,\else,\emph,\endgroup,\endVerbatimOut,\expandafter,\fi,\floatsetup,\footnotesize,\gls,\glsentrylong,\glspluralsuffix,\glsshorttok,\graphicspath,\hide,\ifluatex,\includegraphics,\InputIfFileExists,\intertitle,\killienc,\label,\LaTeX,\linewidth,\LoadClass,\loadglsentries,\lstinputlisting,\lstMakeShortInline,\lstset,\LTXtable,\makeglossaries,\mdfdefinestyle,\mdfsetup,\medskipamount,\meta,\multicolumn,\noexpand,\normalfont,\nothing,\PassOptionsToClass,\PassOptionsToPackage,\ProcessOptions,\protect,\raisebox,\relax,\renewcommand,\RequirePackage,\temp,\TeX,\textbf,\textlangle,\textrangle,\textsc,\textsf,\texttt,\textup,\the,\tmp,\to,\todoformat,\todos,\ttdefault,\ttfamily,\typeout,\uccode,\uppercase,\VerbatimOut,\WithSuffix,\LoadClassWithOptions,\DeclareOption,\xspace,\undefined,\newif,\nothtfalse,\nothttrue,\HCode,\ifnotht,\ifx,\@bsphack}
% \DoNotIndex{%
-% \@documentclasshook,\@empty,\@esphack,\@tempa,\\,\actualchar,\baselineskip,\boolean,\c@CodelineNo,\c@HD@hypercount,\count@,\Describe@Option,\Describe@ShortCut,\encapchar,\endoption,\endshortcut
-% .,\endtrivlist,\equal,\fvset,\g@addto@macro,\global,\hbox,\HD@target,\HDorg@encapchar,\hologo,\if@inlabel,\ignorespaces,\index,\input,\item,\leavevmode,\let,\levelchar,\llap,\long,\loop,\Lsmcp,\lstdefinestyle,\lstnewenvironment,\m@cro@YT,\m@ne,\macro@cnt,\MacroTopsep,\makelabel,\MakePrivateLetters,\marginnote,\marginpar,\newboolean,\nobreak,\or,\PackageWarning,\PrintDescribeEnv,\PrintDescribeOption,\PrintDescribeShortCut,\PrintEnvName,\PrintOptionName,\PrintShortCutName,\ProvidesFile,\raggedleft,\repeat,\reversedvideodbend,\saved@macroname,\setboolean,\sffamily,\shortcut,\space,\special@index,\SpecialMainOptionIndex,\SpecialMainShortCutIndex,\SpecialOptionIndex,\SpecialShortCutIndex,\string,\strut,\textbelow,\textsl,\topsep,\trivlist,\VerbatimEnvironment,\vss,\vtop,\xspaceaddexceptions,\par}
+% \@documentclasshook,\@empty,\@esphack,\@tempa,\\,\actualchar,\baselineskip,\boolean,\c@CodelineNo,\c@HD@hypercount,\count@,\Describe@Option,\Describe@ShortCut,\encapchar,\endoption,\endshortcut,\endtrivlist,\equal,\fvset,\g@addto@macro,\global,\hbox,\HD@target,\HDorg@encapchar,\hologo,\if@inlabel,\ignorespaces,\index,\input,\item,\leavevmode,\let,\levelchar,\llap,\long,\loop,\Lsmcp,\lstdefinestyle,\lstnewenvironment,\m@cro@YT,\m@ne,\macro@cnt,\MacroTopsep,\makelabel,\MakePrivateLetters,\marginnote,\marginpar,\newboolean,\nobreak,\or,\PackageWarning,\PrintDescribeEnv,\PrintDescribeOption,\PrintDescribeShortCut,\PrintEnvName,\PrintOptionName,\PrintShortCutName,\ProvidesFile,\raggedleft,\repeat,\reversedvideodbend,\saved@macroname,\setboolean,\sffamily,\shortcut,\space,\special@index,\SpecialMainOptionIndex,\SpecialMainShortCutIndex,\SpecialOptionIndex,\SpecialShortCutIndex,\string,\strut,\textbelow,\textsl,\topsep,\trivlist,\VerbatimEnvironment,\vss,\vtop,\xspaceaddexceptions,\par}
%
% \DoNotIndex{\@cclvi,\@ne,\@tempcnta,\@whilenum,\toks@,\z@}
%
@@ -560,7 +561,6 @@ This work consists of the file yathesis.dtx
%
\newcounter{YAD@abstracts}%
\newcounter{YAD@warnings}%
-\newcounter{datetoday}
\setcounter{YAD@abstracts}{0}%
\setcounter{YAD@warnings}{0}%
%
@@ -932,8 +932,7 @@ This work consists of the file yathesis.dtx
titlesec/.code={\PassOptionsToPackage{#1}{titlesec}},%
draftwatermark/.code={\PassOptionsToPackage{#1}{draftwatermark}},%
babel/.code={\PassOptionsToPackage{#1}{babel}},%
- datetime/.code={\PassOptionsToPackage{#1}{datetime}},%
- bookmark/.code={\PassOptionsToPackage{#1}{bookmark}},%
+ datetime/.code={\PassOptionsToPackage{#1}{datetime}}%
}%
% \end{macrocode}
%
@@ -1024,6 +1023,10 @@ This work consists of the file yathesis.dtx
% \begin{macrocode}
\RequirePackage{fixltx2e}[2006/09/13]%
% \end{macrocode}
+% Pour tester le moteur employé
+% \begin{macrocode}
+\RequirePackage{iftex}[2013/04/04]%
+% \end{macrocode}
% Pour les épigraphes
% \begin{macrocode}
\RequirePackage{epigraph}[2009/09/02]%
@@ -1112,46 +1115,6 @@ This work consists of the file yathesis.dtx
% \begin{macrocode}
\RequirePackage{iflang}[2007/11/11]%
% \end{macrocode}
-% Pour comparer des dates, on utilise le \Package{datenumber}. Du fait d'une
-% incompatibilité avec le \Package{datetime}, on recourt au hack fourni ici :
-% \url{http://tex.stackexchange.com/a/178850/18401}. Début du hack.
-% \begin{macrocode}
-\let\@modulo@SAVED\@modulo
-% \end{macrocode}
-% Chargement du \Package{datenumber}.
-% \begin{macrocode}
-\RequirePackage{datenumber}[2001/08/06]%
-% \end{macrocode}
-% Suite du hack.
-% \begin{macrocode}
-\let\DATENUMBER@modulo\@modulo
-\def\setdaynamebynumber#1{%
- \@tempcnta=#1\relax
- \ifnum\the@startyear=1800\advance \@tempcnta by 1\fi
- \ifnum\the@startyear=1900\advance \@tempcnta by 6\fi
- \ifnum\the@startyear=2000\advance \@tempcnta by 4\fi
- \DATENUMBER@modulo{\the\@tempcnta}{7}%
- \setcounter{datedayname}{\the\@den}%
- \addtocounter{datedayname}{1}%
- \setdayname{\thedatedayname}%
-}
-\def\ifleapyear#1{%#1 year
- \ifnum#1>1500
- \DATENUMBER@modulo{#1}{100}%
- \ifnum\@den=0
- \DATENUMBER@modulo{#1}{400}%
- \else
- \DATENUMBER@modulo{#1}{4}%
- \fi
- \else
- \DATENUMBER@modulo{#1}{4}%
- \fi
- \ifnum\@den=0
-}
-\let\@modulo\@modulo@SAVED
-% \end{macrocode}
-% Fin du hack.
-%
% Pour générer les dates (sans affichage du jour de la semaine).
% \begin{macrocode}
\RequirePackage{datetime}[2013/09/10]%
@@ -1543,6 +1506,49 @@ This work consists of the file yathesis.dtx
\lstMakeShortInline[style=dbtex]×
%
\tcbuselibrary{documentation,theorems,breakable,skins}
+% \end{macrocode}
+% Début du hack fourni par Thomas Sturm pour circonvenir à deux bugs récemment
+% introduits dans le \Package{tcolorbox}.
+% \begin{macrocode}
+\RenewDocumentEnvironment{docKey}{ O{} +O{} m m +m }{\tcbset{#2,doc
+description={#5}}%
+ \begin{tcb@manual@entry}%
+ \begin{tcb@doc@head}{doc@head@key}%
+ \ifblank{#1}{%
+ \tcb@Print@Key{#3}\tcb@index@Key{#3}\protected@edef\@currentlabel{#3}\label{key:#3}{\ttfamily
+#4}%
+ }{%
+ \tcb@Print@Key{/#1/#3}\tcb@index@KeyPath{#1}{#3}\protected@edef\@currentlabel{/#1/#3}\label{key:/#1/#3}{\ttfamily
+#4}%
+ }%
+ \tcb@doc@do@description%
+ \end{tcb@doc@head}\tcbset{before upper=}}%
+ {\end{tcb@manual@entry}}
+
+\def\tcbmakedocSubKey#1#2{%
+ \NewDocumentEnvironment{#1}{ O{} +O{} m m +m }{%
+ \ifblank{##1}{\def\tcb@key@path{#2}}{\def\tcb@key@path{#2/##1}}%
+ \begin{docKey}[\tcb@key@path][##2]{##3}{##4}{##5}}%
+ {\end{docKey}}%
+ \newenvironment{#1*}{\bgroup\tcb@doc@toindexfalse\begin{#1}}{\end{#1}\egroup}%
+}
+
+\renewcommand{\docAuxKey@}[2][]{%
+ \ifblank{#1}{%
+ \tcb@Print@Key{#2}\tcb@index@Key{#2}%
+ }{%
+ \tcb@Print@Key{/#1/#2}\tcb@index@KeyPath{#1}{#2}%
+}}%
+
+\renewcommand{\docAuxKey@star}[2][]{%
+ \ifblank{#1}{%
+ \tcb@Print@Key{#2}%
+ }{%
+ \tcb@Print@Key{/#1/#2}%
+}}%
+% \end{macrocode}
+% Fin du hack fourni par Thomas Sturm.
+% \begin{macrocode}
\tcbset{dbtcb/.style={%
breakable,
fonttitle=\bfseries,
@@ -1619,8 +1625,9 @@ This work consists of the file yathesis.dtx
}%
}%
\newtcblisting{origpreamblecode}[1][]{%
- beamer,%
+ % beamer,%
codes,%
+ drop lifted shadow,
#1%
}%
\newtcblisting{origbodycode}[1][]{%
@@ -1662,7 +1669,7 @@ This work consists of the file yathesis.dtx
}%
\newtcbinputlisting{\preamblesample}[3][these.tex]{%
samples,
- drop shadow,
+ drop lifted shadow,
listing file={master-slaves-files-sample/#1},
listing options={rangebeginprefix=\\,rangeendsuffix=\},#2},
#3,
@@ -1815,10 +1822,8 @@ This work consists of the file yathesis.dtx
% \end{macrocode}
% \end{environment}
%
-% Patch permettant que chaque première page des chapitres (et objets dérivés :
-% table des matières, index, etc.) ne comportent pas de numéros de page.
% \begin{macrocode}
-\patchcmd{\chapter}{plain}{empty}{}{}%
+% \patchcmd{\chapter}{plain}{empty}{}{}%
% \end{macrocode}
%
% \begin{macrocode}
@@ -3322,28 +3327,27 @@ This work consists of the file yathesis.dtx
% \end{macro}
%
% \begin{macro}{\date}
-% Définition d'un compteur permettant de comparer à la date du jour.
-% \begin{macrocode}
-\setmydatenumber{datetoday}{\the\year}{\the\month}{\the\day}
-% \end{macrocode}
-%
% \begin{macrocode}
-\csdef{date}#1#2#3{%
+\csdef{YAD@checkdate}#1#2#3#4#5{%
+ \boolfalse{YAD@valid@day}%
+ \boolfalse{YAD@valid@month}%
+ \boolfalse{YAD@valid@year}%
+ %
\csxdef{YAD@daydate}{#1}%
\csxdef{YAD@monthdate}{#2}%
\csxdef{YAD@yeardate}{#3}%
- \ifboolexpr{%
- bool {YAD@submitted@work}%
- or bool {YAD@submitted@work@star}%
- }{%
- }{%
+ % \ifboolexpr{%
+ % bool {YAD@submitted@work}%
+ % or bool {YAD@submitted@work@star}%
+ % }{%
+ % }{%
\ifboolexpr{%
not (test {\IfInteger{\YAD@daydate}})%
}{%
\YAD@ClassError[nodate]{%
- Jour de la date de soutenance non valide%
+ Jour de la date de #5 non valide%
}{%
- La commande \protect\date{\YAD@daydate}{\YAD@monthdate}{\YAD@yeardate}\space\MessageBreak%
+ La commande \string#4{\YAD@daydate}{\YAD@monthdate}{\YAD@yeardate}\space\MessageBreak%
n'a pas ete correctement saisie car le\MessageBreak%
jour (`\YAD@daydate') n'est pas valide :\MessageBreak%
ce doit etre un nombre entier entre 1 et 31.%
@@ -3358,15 +3362,15 @@ This work consists of the file yathesis.dtx
or test {\ifnumgreater{\YAD@daydate}{31}}%
}{%
\YAD@ClassError[nodate]{%
- Jour de la date de soutenance non valide%
+ Jour de la date de #5 non valide%
}{%
- La commande \protect\date{\YAD@daydate}{\YAD@monthdate}{\YAD@yeardate}\space\MessageBreak%
+ La commande \string#4{\YAD@daydate}{\YAD@monthdate}{\YAD@yeardate}\space\MessageBreak%
n'a pas ete correctement saisie car le\MessageBreak%
numero de jour (`\YAD@daydate') n'est pas valide :\MessageBreak%
ce doit etre un nombre entier entre 1 et 31.%
}%
}{%
- \booltrue{YAD@valid@day}%
+ \global\booltrue{YAD@valid@day}%
}%
}%
% month
@@ -3374,9 +3378,9 @@ This work consists of the file yathesis.dtx
not (test {\IfInteger{\YAD@monthdate}})%
}{%
\YAD@ClassError[nodate]{%
- Mois de la date de soutenance non valide%
+ Mois de la date de #5 non valide%
}{%
- La commande \protect\date{\YAD@daydate}{\YAD@monthdate}{\YAD@yeardate}\space\MessageBreak%
+ La commande \string#4{\YAD@daydate}{\YAD@monthdate}{\YAD@yeardate}\space\MessageBreak%
n'a pas ete correctement saisie car le\MessageBreak%
mois (`\YAD@monthdate') n'est pas valide :\MessageBreak%
ce doit etre un nombre entier entre\MessageBreak%
@@ -3392,16 +3396,16 @@ This work consists of the file yathesis.dtx
or test {\ifnumgreater{\YAD@monthdate}{12}}%
}{%
\YAD@ClassError[nodate]{%
- Mois de la date de soutenance non valide%
+ Mois de la date de #5 non valide%
}{%
- La commande \protect\date{\YAD@daydate}{\YAD@monthdate}{\YAD@yeardate}\space\MessageBreak%
+ La commande \string#4{\YAD@daydate}{\YAD@monthdate}{\YAD@yeardate}\space\MessageBreak%
n'a pas ete correctement saisie car le\MessageBreak%
numero de mois (`\YAD@monthdate') n'est pas valide :\MessageBreak%
ce doit etre un nombre entier entre\MessageBreak%
1 (janvier) et 12 (decembre).%
}%
}{%
- \booltrue{YAD@valid@month}%
+ \global\booltrue{YAD@valid@month}%
}%
}%
% year
@@ -3409,65 +3413,63 @@ This work consists of the file yathesis.dtx
not (test {\IfInteger{\YAD@yeardate}})%
}{%
\YAD@ClassError[nodate]{%
- Annee de la date de soutenance non valide%
+ Annee de la date de #5 non valide%
}{%
- La commande
- \protect\date{\YAD@daydate}{\YAD@monthdate}{\YAD@yeardate}\space\MessageBreak%
+ La commande \string#4{\YAD@daydate}{\YAD@monthdate}{\YAD@yeardate}\space\MessageBreak%
n'a pas ete correctement saisie car l'annee\MessageBreak%
(`\YAD@yeardate') n'est pas valide : ce doit etre\MessageBreak%
un nombre entier.%
}%
}{%
- % \IfDecimal{\YAD@yeardate}{%
- % \csxdef{YAD@yeardate}{\number\integerpart}%
- % }{%
- % }%
- % \ifnumless{\YAD@yeardate}{\number\year}{%
- % \YAD@ClassError[nodate]{%
- % Annee de la date de soutenance non valide%
- % }{%
- % La commande \protect\date{#1}{#2}{#3}\space\MessageBreak%
- % n'a pas ete correctement saisie car le numero de\MessageBreak%
- % l'annee (`#3') n'est pas valide : ce doit etre\MessageBreak%
- % un nombre entier (superieur ou egal a \number\year).%
- % }%
- % }{%
- \booltrue{YAD@valid@year}%
- % }%
+ \global\booltrue{YAD@valid@year}%
}%
- \ifboolexpr{%
+ % }%
+}%
+% \end{macrocode}
+%
+% \begin{macro}{\date}
+% \begin{macrocode}
+\csdef{date}#1#2#3{%
+ \YAD@checkdate{#1}{#2}{#3}{\date}{soutenance}%
+ \ifboolexpr{%
bool {YAD@valid@day}%
and bool {YAD@valid@month}%
and bool {YAD@valid@year}%
}{%
\csdef{printdate}{%
- % \setdatenumber{\YAD@yeardate}{\YAD@monthdate}{\YAD@daydate}%
- % \ifnumgreater{\value{datetoday}}{\value{datenumber}}{%
- % \YAD@generic@argument@translate{date}%
- % \YAD@ClassError[nodate]{%
- % Date de soutenance non valide%
- % }{%
- % La date saisie
- % (`\protect\date{\YAD@daydate}{\YAD@monthdate}{\YAD@yeardate}') n'est
- % pas\MessageBreak%
- % correcte car elle ne doit pas etre anterieure\MessageBreak%
- % a la date du jour
- % (\protect\date{\number\day}{\number\month}{\number\year}).%
- % }%
- % }{%
\formatdate{\YAD@daydate}{\YAD@monthdate}{\YAD@yeardate}%
- % }%
}%
}{%
\csdef{printdate}{%
\YAD@generic@argument@translate{date}%
}%
}%
- \boolfalse{YAD@valid@day}%
- \boolfalse{YAD@valid@month}%
- \boolfalse{YAD@valid@year}%
- }%
}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\submissiondate}
+% \begin{macrocode}
+\csdef{submissiondate}#1#2#3{%
+ \YAD@checkdate{#1}{#2}{#3}{\submissiondate}{soumission}%
+ \ifboolexpr{%
+ bool {YAD@valid@day}%
+ and bool {YAD@valid@month}%
+ and bool {YAD@valid@year}%
+ }{%
+ \csdef{printsubmissiondate}{%
+ \formatdate{\YAD@daydate}{\YAD@monthdate}{\YAD@yeardate}%
+ }%
+ }{%
+ \csdef{printsubmissiondate}{%
+ \YAD@generic@argument@translate{submissiondate}%
+ }%
+ }%
+}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macrocode}
\AtEndDocument{%
\YAD@ifemptyorundef{\printdate}{%
\ifbool{YAD@nodate}{%
@@ -3489,7 +3491,6 @@ This work consists of the file yathesis.dtx
}%
}%
% \end{macrocode}
-% \end{macro}
%
% \begin{macro}{\dedication}
% \begin{macrocode}
@@ -3528,20 +3529,6 @@ This work consists of the file yathesis.dtx
}%
% \end{macrocode}
%
-% Test pour pages blanches
-% \begin{macro}{\YAD@clearemptydoublepage}
-% \begin{macrocode}
-\let\YAD@ORI@cleardoublepage\cleardoublepage
-\newcommand*{\YAD@clearemptydoublepage}{%
- \clearpage%
- {%
- \pagestyle{empty}%
- \YAD@ORI@cleardoublepage%
- }%
-}%
-% \end{macrocode}
-% \end{macro}
-%
% \begin{macro}{\YAD@setfoot}
% Définition d'une commande affichant un texte fixe en bas de page en cas de
% version ×inprogess(*)× ou ×submitted*× de la thèse.
@@ -3555,12 +3542,14 @@ This work consists of the file yathesis.dtx
\setfoot{}{\textsc{\translate{lbl-inprogressfoottext} \today}}{}%
}%
}{%
- \ifboolexpr{%
- bool {YAD@submitted@work@star}%
- }{%
+ \ifbool{YAD@submitted@work@star}{%
\newcommand*{\YAD@setfoot}{%
\footrule%
- \setfoot{}{\textsc{\translate{lbl-submittedfoottext} \today}}{}%
+ \YAD@ifemptyorundef{\printsubmissiondate}{%
+ \setfoot{}{\textsc{\translate{lbl-submittedfoottext} \today}}{}%
+ }{%
+ \setfoot{}{\textsc{\translate{lbl-submittedfoottext} \printsubmissiondate}}{}%
+ }%
}%
}{%
\newcommand*{\YAD@setfoot}{}%
@@ -3645,7 +3634,7 @@ This work consists of the file yathesis.dtx
% \end{macrocode}
\renewcommand{\tableofcontents}{%
\booltrue{YAD@tableofcontents@used}%
- \YAD@clearemptydoublepage%
+ \cleardoublepage%
\YAD@phantomsection%
\let\cmdKV@YAD@name\contentsname%
\@ifnextchar[{\tableofcontents@YAD@with@argument}{\tableofcontents@YAD@without@argument}%]
@@ -3749,7 +3738,6 @@ This work consists of the file yathesis.dtx
% \end{macrocode}
% \end{macro}
%
-%
% \begin{macro}{\YAD@section@header}
% \begin{macrocode}
\newcommand*{\YAD@section@header}{%
@@ -4041,7 +4029,7 @@ This work consists of the file yathesis.dtx
% On demande que la bibliographie apparaisse au plus haut niveau des
% signets
% \begin{macrocode}
- \YAD@clearemptydoublepage%
+ \cleardoublepage%
\YAD@phantomsection%
\YAD@bookmarksetup{startatroot}%
\YAD@setfoot%
@@ -4087,7 +4075,7 @@ This work consists of the file yathesis.dtx
% Définition du style de page de la table des matières
% \begin{macrocode}
\newpagestyle{contents}[]{%
- \YAD@clearemptydoublepage%
+ \cleardoublepage%
\YAD@phantomsection%
\YAD@bookmarksetup{startatroot}%
\singlespacing%
@@ -4109,7 +4097,7 @@ This work consists of the file yathesis.dtx
% Définition du style de page de la partie glossaire
% \begin{macrocode}
\newpagestyle{glossaire}[]{%
- \YAD@clearemptydoublepage%
+ \cleardoublepage%
\YAD@phantomsection%
\YAD@bookmarksetup{startatroot}%
\singlespacing%
@@ -4144,7 +4132,7 @@ This work consists of the file yathesis.dtx
% numéroté
% \begin{macrocode}
\setsecnumdepth{none}%
- \YAD@clearemptydoublepage%
+ \cleardoublepage%
\YAD@phantomsection%
\setsecnumdepth{\YAD@secnumdepth}%
\YAD@bookmarksetup{startatroot}%
@@ -4234,16 +4222,6 @@ This work consists of the file yathesis.dtx
}%
% \end{macrocode}
% \end{macro}
-% Utilisation d'un hack fourni par l'auteur du \Package{tcolorbox} de sorte
-% que, lorsqu'une ×tcolorbox× est à sommets non arrondis, il en soit
-% de même de son ombre.
-% \begin{macrocode}
-\let\origtcb@shadow@prepare=\tcb@shadow@prepare%
-\def\tcb@shadow@prepare#1#2{%
- \origtcb@shadow@prepare{#1}{#2}%
- \let\tcb@shadow@arc=\tcb@zpt%
-}%
-% \end{macrocode}
%
% \begin{macro}{\maketitle}
% Commande de la page de titre
@@ -4725,7 +4703,7 @@ This work consists of the file yathesis.dtx
\@ifstar{\@tempswatrue\csuse{YAD@starnostar@makekeywords}}{\@tempswafalse\csuse{YAD@starnostar@makekeywords}}%
}%
\csdef{YAD@starnostar@makekeywords}{%
- \YAD@clearemptydoublepage%
+ \cleardoublepage%
% \end{macrocode}
% Appel du style de page propre à la partie préliminaire
% \begin{macrocode}
@@ -4858,7 +4836,7 @@ This work consists of the file yathesis.dtx
\@ifstar{\@tempswatrue\csuse{YAD@starnostar@makelaboratory}}{\@tempswafalse\csuse{YAD@starnostar@makelaboratory}}%
}%
\csdef{YAD@starnostar@makelaboratory}{%
- \YAD@clearemptydoublepage%
+ \cleardoublepage%
% \end{macrocode}
% Appel du style de page propre à la partie préliminaire
% \begin{macrocode}
@@ -5040,8 +5018,8 @@ This work consists of the file yathesis.dtx
\csgdef{YAD@abstractname@mainlanguage}{\abstractname}%
\csgdef{YAD@abstractname@secondarylanguage}{\abstractname}%
%
-\newcommand{\YAD@absract}[1]{%
- \ifthenelse{\isempty{#1}}{
+\newcommand{\YAD@abstract}[1]{%
+ \ifstrempty{#1}{%
\ifnumcomp{\value{YAD@abstracts}}{>}{0}{%
\global\booltrue{YAD@second@abstract@empty}%
}{%
@@ -5065,7 +5043,7 @@ This work consists of the file yathesis.dtx
\csgdef{YAD@abstractname@mainlanguage}{#1}%
\lrbox{\YAD@abstract@mainlanguage}%
}%
- \Collect@Body\YAD@absract%
+ \Collect@Body\YAD@abstract%
}{%
\endlrbox%
\stepcounter{YAD@abstracts}%
@@ -5258,11 +5236,11 @@ This work consists of the file yathesis.dtx
][]{%
\YAD@laboratory@abstract@page%
}{}{}%
- \YAD@clearemptydoublepage%
+ \cleardoublepage%
\renewcommand{\YAD@chapter@header}{\abstractname}%
\renewcommand{\YAD@section@header}{\abstractname}%
\YAD@abstract@page%
- \YAD@clearemptydoublepage%
+ \cleardoublepage%
\egroup%
% \end{macrocode}
% La commande de production de la page de résumés émet les erreurs signalant
@@ -5353,7 +5331,7 @@ This work consists of the file yathesis.dtx
% \begin{macrocode}
\newcommand{\makebackcover}{%
\YAD@alarm@noabstract%
- \YAD@clearemptydoublepage%
+ \cleardoublepage%
\pagestyle{backcover}%
\YAD@abstract@page%
}%
@@ -5368,7 +5346,7 @@ This work consists of the file yathesis.dtx
}%
\csdef{YAD@starnostar@makededications}{%
\pagestyle{prepreliminary}%
- \YAD@clearemptydoublepage%
+ \cleardoublepage%
\if@tempswa%
\else%
\vspace*{\stretch{2}}%
@@ -5431,7 +5409,7 @@ This work consists of the file yathesis.dtx
}%
\csdef{YAD@starnostar@makefrontepigraphs}{%
\patchcmd{\epigraphs}{\qitemlabel}{\qitemlabel\itemsep=1.5\baselineskip}{}{}%
- \YAD@clearemptydoublepage%
+ \cleardoublepage%
\if@tempswa%
\else%
\vspace*{\stretch{2}}%
@@ -5509,7 +5487,7 @@ This work consists of the file yathesis.dtx
% Redéfinition locale de la commande d'épigraphe
% \begin{macrocode}
\patchcmd{\epigraphs}{\qitemlabel}{\qitemlabel\itemsep=1.5\baselineskip}{}{}
- \YAD@clearemptydoublepage%
+ \cleardoublepage%
\vspace*{\stretch{1}}%
}{%
\vspace*{\stretch{1}}%
@@ -5565,7 +5543,7 @@ This work consists of the file yathesis.dtx
\let\YAD@ORI@chapter\chapter%
\AfterPreamble{% delay the redefinition when titlesec has done its own
\renewcommand\chapter{%
- \YAD@clearemptydoublepage%
+ \cleardoublepage%
\YAD@phantomsection%
\ifbool{YAD@output@paper}{%
}{%
@@ -5828,7 +5806,7 @@ This work consists of the file yathesis.dtx
% % ×introduction*×.
% % \begin{macrocode}
% \newcommand{\YAD@introduction@end}{%
-% \YAD@clearemptydoublepage%
+% \cleardoublepage%
% }%
% % \end{macrocode}
% % \end{macro}
@@ -5945,7 +5923,7 @@ This work consists of the file yathesis.dtx
% % ×conclusion*×.
% % \begin{macrocode}
% \newcommand{\YAD@conclusion@end}{%
-% \YAD@clearemptydoublepage%
+% \cleardoublepage%
% }%
% % \end{macrocode}
% % \end{macro}
@@ -6164,7 +6142,9 @@ This work consists of the file yathesis.dtx
%
% \begin{macrocode}
\AtEndPreamble{%
+ \ifPDFTeX
\shorthandon{;:!?}%
+ \fi
\InputIfFileExists{\YAD@configuration@directory/\YAD@configuration@file}%
{\ClassInfo{yathesis}{%
Fichier de configuration local \YAD@configuration@file\space
@@ -6176,7 +6156,9 @@ This work consists of the file yathesis.dtx
% \YAD@configuration@file\space introuvable%
% }%
}%
+ \ifPDFTeX
\shorthandoff{;:!?}%
+ \fi
}%
% \end{macrocode}
%
@@ -6184,7 +6166,9 @@ This work consists of the file yathesis.dtx
%
% \begin{macrocode}
\AtEndPreamble{%
+ \ifPDFTeX
\shorthandon{;:!?}%
+ \fi
\InputIfFileExists{\YAD@configuration@directory/\YAD@characteristics@file}%
{%
\ClassInfo{yathesis}{%
@@ -6200,7 +6184,9 @@ This work consists of the file yathesis.dtx
% \YAD@characteristics@file\space peut faciliter l'usage\MessageBreak de la classe%
% }%
}%
+ \ifPDFTeX
\shorthandoff{;:!?}%
+ \fi
}%
% \end{macrocode}
%
@@ -6208,7 +6194,9 @@ This work consists of the file yathesis.dtx
% %
% % \begin{macrocode}
% \AtEndPreamble{%
+% \ifPDFTeX
% \shorthandon{;:!?}%
+% \fi
% \InputIfFileExists{\YAD@configuration@directory/\macrosfile}%
% {\ClassInfo{yathesis}{%
% Fichier \macrosfile\space trouve%
@@ -6220,7 +6208,9 @@ This work consists of the file yathesis.dtx
% % dans le dossier `\YAD@configuration@directory'%
% % }%
% }%
+% \ifPDFTeX
% \shorthandoff{;:!?}%
+% \fi
% }%
% % \end{macrocode}
%
@@ -6255,7 +6245,8 @@ This work consists of the file yathesis.dtx
\expression{meta-laboratory}{nom du laboratoire}{nom du laboratoire}
\expression{meta-logolaboratory}{logo du laboratoire}{logo du laboratoire}
\expression{meta-author}{pr\'enom et nom de l'auteur}{pr\'enom et nom de l'auteur}
-\expression{meta-date}{date de la soutenance}{date de la soutenance}
+\expression{meta-date}{date de la soutenance}{defense date}
+\expression{meta-submissiondate}{date de la soumission}{submission date}
\expression{meta-academicfield}{discipline}{academic field}
\expression{meta-speciality}{sp\'ecialit\'e}{speciality}
\expression{meta-title}{titre du m\'emoire de th\`ese}{thesis title}
@@ -6401,7 +6392,7 @@ This work consists of the file yathesis.dtx
figurename,tablename,chaptername,pagename,seename,alsoname,proofname,bibname,glossaryname,%
addto,captionsenglish,captionsfrench,lipsum,href,url,partname,refname,renewcommand*,%
appendix,lstlistoflistings,graphicpath,loadglsentries,hypersetup,detect-all,SetWatermarkColor,%
- @pnumwidth%
+ @pnumwidth,bookmarksetup,DeclareTextCommand%
},%
morekeywords=[1]{% Environments' names
tabular,tabulary,math%
@@ -6424,7 +6415,7 @@ This work consists of the file yathesis.dtx
moretexcs={% Control sequences' names
author,title,subtitle,academicfield,speciality,date,supervisor,cosupervisor,comonitor,%
referee,guest,examiner,committeepresident,pres,institute,coinstitute,company,doctoralschool,%
- laboratory,dedication,frontepigraph,keywords,subject,expression,tableofcontents,%
+ laboratory,dedication,frontepigraph,keywords,subject,expression,tableofcontents,submissiondate,%
maketitle,makedisclaimer,makekeywords,makelaboratory,makeabstract,makededications,makefrontepigraphs,%
% acknowledgements,frenchabstract,foreword,preface,caution,
makebackcover,ordernumber,chapter*,%
@@ -6574,6 +6565,7 @@ This work consists of the file yathesis.dtx
#include:textcase
#include:translator
#include:fixltx2e
+#include:iftex
#include:epigraph
#include:tcolorbox
#include:marvosym
@@ -6590,7 +6582,6 @@ This work consists of the file yathesis.dtx
#include:draftwatermark
#include:babel
#include:iflang
-#include:datenumber
#include:datetime
#include:hypcap
#include:bookmark
@@ -6613,6 +6604,31 @@ output=#screen,paper,paper*
leqno
fleqn
oneside
+noerror
+noauthor
+notitle
+noacademicfield
+nodate
+noinstitute
+nodoctoralschool
+nolaboratory
+nolaboratoryadress
+nosupervisor
+nomaketitle
+nokeywords
+noabstract
+nomakeabstract
+notableofcontents
+noprintbibliography
+graphicx
+adjustbox
+setspace
+xcolor
+datatool
+titleps
+draftwatermark
+babel
+datetime
#endkeyvals
#
\yadsetup{%<options%>}#n
@@ -6684,6 +6700,7 @@ url=
telephone=
fax=
email=
+nonamelink
#endkeyvals
#
# Committee
@@ -6770,13 +6787,14 @@ juniorresearcher*
# Misc
\ordernumber[%<numéro d'ordre%>]#n
\ordernumber#n*
+\submissiondate{%<jour%>}{%<mois%>}{%<année%>}#n
#
# Preliminary pages
#
\disclaimer{%<clause%>}#n
\makedisclaimer#n
\makedisclaimer*#n
-\keywords{%<mots clés dans la langue secondaire%>}{%<mots clés dans la langue principale%>}#n
+\keywords{%<mots clés dans la langue principale%>}{%<mots clés dans la langue secondaire%>}#n
\makekeywords#n
\makekeywords*#n
\makelaboratory#n