summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/yathesis/yathesis.cls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-07-09 21:27:59 +0000
committerKarl Berry <karl@freefriends.org>2018-07-09 21:27:59 +0000
commit3be17e077b48f14edc8eb8e75d6457cc3c12867e (patch)
treec01fb3c047eb85096e285c3b5bd9eb8b605b8009 /Master/texmf-dist/tex/latex/yathesis/yathesis.cls
parent6ca039fc0b1d265e7247d7d425ecf48f1a009963 (diff)
yathesis (9jul18)
git-svn-id: svn://tug.org/texlive/trunk@48172 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/yathesis/yathesis.cls')
-rw-r--r--Master/texmf-dist/tex/latex/yathesis/yathesis.cls210
1 files changed, 130 insertions, 80 deletions
diff --git a/Master/texmf-dist/tex/latex/yathesis/yathesis.cls b/Master/texmf-dist/tex/latex/yathesis/yathesis.cls
index 6a1b2a37034..a0c049f583d 100644
--- a/Master/texmf-dist/tex/latex/yathesis/yathesis.cls
+++ b/Master/texmf-dist/tex/latex/yathesis/yathesis.cls
@@ -11,8 +11,8 @@
%% Released under the LaTeX Project Public License v1.3c or later
%% See http://www.latex-project.org/lppl.txt
%% -----------------------------------------------------------------------
-\def\fileversion{v0.99s}
-\def\filedate{2018/06/22}
+\def\fileversion{v0.99t}
+\def\filedate{2018/07/09}
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{yathesis}[\filedate\space\fileversion\space Yet another class for writing thesis (DB)]
\RequirePackage{pgfopts}[2011/06/02]%
@@ -196,11 +196,12 @@
\YAD@create@boolean{noauthor}%
\YAD@create@boolean{notitle}%
\YAD@create@boolean{noacademicfield}%
+\YAD@create@boolean{noaim}%
\YAD@create@boolean{nodate}%
\YAD@create@boolean{noinstitute}%
\YAD@create@boolean{nodoctoralschool}%
\YAD@create@boolean{nolaboratory}%
-\YAD@create@boolean{nolaboratoryadress}%
+\YAD@create@boolean{nolaboratoryaddress}%
\YAD@create@boolean{nosupervisor}%
\YAD@create@boolean{nomaketitle}%
\YAD@create@boolean{nokeywords}%
@@ -2381,9 +2382,9 @@
\newcommand*{\printlaboratoryaddress}[1]{%
\ifundef{#1}{%
\YAD@reach@file{\YAD@generic@argument@translate{laboratoryaddress}}%
- \ifbool{YAD@nolaboratoryadress}{%
+ \ifbool{YAD@nolaboratoryaddress}{%
}{%
- \YAD@ClassError[nolaboratoryadress]{%
+ \YAD@ClassError[nolaboratoryaddress]{%
Adresse du laboratoire non specifiee ou vide%
}{%
La commande \protect\laboratory\space n'a pas ete utilisee\MessageBreak%
@@ -2499,10 +2500,10 @@
% \begin{minipage}[c][\YAD@otherboxheight][c]{\YAD@titleboxwidth}
% \ifdraft{}{\vspace*{\stretch{.25}}}%
\begin{center}
- \YAD@ifemptyorundef{\printinstitute}{%
- \YAD@generic@argument@translate{institute}%
- \ifbool{YAD@noinstitute}{%
- }{%
+ \ifbool{YAD@noinstitute}{%
+ }{%
+ \YAD@ifemptyorundef{\printinstitute}{%
+ \YAD@generic@argument@translate{institute}%
\YAD@ClassError[noinstitute]{%
Institut de la these non specifie%
}{%
@@ -2512,9 +2513,9 @@
vide\MessageBreak%
(celui-ci doit etre renseigne).%
}%
+ }{%
+ \YAD@translation{institute} \textbf{\textsc{\Large\printinstitute}}%
}%
- }{%
- \YAD@translation{institute} \textbf{\textsc{\Large\printinstitute}}%
}%
\ifundef{\printcoinstitute}{%
}{%
@@ -2530,14 +2531,14 @@
\par%
\YAD@translation{company} \textbf{\textsc{\Large\printcompany}}%
}%
- \ifdraft{}{\vspace*{\stretch{1.5}}}%
- % \vspace*{\stretch{1.5}}%
- \par%
- \YAD@translation{doctoralschool}
- \YAD@ifemptyorundef{\printdoctoralschool}{%
- \YAD@generic@argument@translate{doctoralschool}%
- \ifbool{YAD@nodoctoralschool}{%
- }{%
+ \ifbool{YAD@nodoctoralschool}{%
+ }{%
+ \ifdraft{}{\vspace*{\stretch{1.5}}}%
+ % \vspace*{\stretch{1.5}}%
+ \par%
+ \YAD@translation{doctoralschool}
+ \YAD@ifemptyorundef{\printdoctoralschool}{%
+ \YAD@generic@argument@translate{doctoralschool}%
\YAD@ClassError[nodoctoralschool]{%
Ecole doctorale de la these non specifiee%
}{%
@@ -2547,18 +2548,21 @@
vide\MessageBreak%
(celui-ci doit etre renseigne).%
}%
+ }{%
+ \textbf{\printdoctoralschool}%
}%
- }{%
- \textbf{\printdoctoralschool}%
}%
- \ifdraft{}{\vspace*{\stretch{.5}}}%
- % \vspace*{\stretch{.5}}%
- \par%
- \YAD@translation{universitydepartment}
- \ifdefstring{\YAD@main@laboratory@nonamelink}{true}{%
- \textbf{\printlaboratory{\YAD@main@laboratory@name}}%
+ \ifbool{YAD@nolaboratory}{%
}{%
- \textbf{\printlaboratory[\YAD@main@laboratory@url]{\YAD@main@laboratory@name}}%
+ \ifdraft{}{\vspace*{\stretch{.5}}}%
+ % \vspace*{\stretch{.5}}%
+ \par%
+ \YAD@translation{universitydepartment}
+ \ifdefstring{\YAD@main@laboratory@nonamelink}{true}{%
+ \textbf{\printlaboratory{\YAD@main@laboratory@name}}%
+ }{%
+ \textbf{\printlaboratory[\YAD@main@laboratory@url]{\YAD@main@laboratory@name}}%
+ }%
}%
\ifdraft{}{\vspace*{\stretch{1.5}}}%
% \vspace*{\stretch{1.5}}%
@@ -2585,7 +2589,7 @@
}{%
\textbf{\printauthor}%
}%
- \ifboolexpr{%
+ \ifboolexpr{%
bool {YAD@submitted@work}%
or bool {YAD@submitted@work@star}%
}{%
@@ -2598,32 +2602,38 @@
% \textbf{\printdate}%
% }%
}{%
- \ifdraft{}{\vspace*{\stretch{1}}}%
- % \vspace*{\stretch{1}}%
- \par%
- \YAD@translation{defendedon}
- \YAD@ifemptyorundef{\printdate}{%
- \YAD@generic@argument@translate{date}%
+ \ifbool{YAD@nodate}{%
}{%
- \textbf{\printdate}%
+ \ifdraft{}{\vspace*{\stretch{1}}}%
+ % \vspace*{\stretch{1}}%
+ \par%
+ \YAD@translation{defendedon}
+ \YAD@ifemptyorundef{\printdate}{%
+ \YAD@generic@argument@translate{date}%
+ }{%
+ \textbf{\printdate}%
+ }%
}%
}%
}%
\ifYAD@hdr%
\else%
- \ifdraft{}{\vspace*{\stretch{1}}}%
- % \vspace*{\stretch{1}}%
- \par%
- \YAD@translation{aim}%
- \ifundef{\printinstitute}{%
- \YAD@generic@argument@translate{institute}%
- }{%
- \printinstitute*%
- }%
- \ifundef{\printcoinstitute}{%
+ \ifbool{YAD@noaim}{%
}{%
- \YAD@translation{aimand}%
- \printcoinstitute*%
+ \ifdraft{}{\vspace*{\stretch{1}}}%
+ % \vspace*{\stretch{1}}%
+ \par%
+ \YAD@translation{aim}%
+ \ifundef{\printinstitute}{%
+ \YAD@generic@argument@translate{institute}%
+ }{%
+ \printinstitute*%
+ }%
+ \ifundef{\printcoinstitute}{%
+ }{%
+ \YAD@translation{aimand}%
+ \printcoinstitute*%
+ }%
}%
\fi%
\ifdraft{}{\vspace*{\stretch{1}}}%
@@ -3291,7 +3301,7 @@
\cleardoublepage%
\egroup%
\YAD@nolaboratorytrue%
- \YAD@nolaboratoryadresstrue%
+ \YAD@nolaboratoryaddresstrue%
}%
\newcommand{\YAD@abstract@page@rule}[1][black]{\bgroup\color{#1}\noindent\rule[2pt]{\linewidth}{2pt}\egroup}
\AtEndDocument{%
@@ -3511,11 +3521,19 @@
\newcommand\YAD@setlinestyle [2]{% #1= unit, #2= numwidth as macro
\etocsetstyle{#1}
{\advance\leftskip#2\relax}
- {\vskip \YAD@verysmallvskip\relax
- \leavevmode
+ {%
+ \vskip
+ \YAD@verysmallvskip\relax
+ \leavevmode%
{\interlinepenalty\@M
\etocifnumbered
- {\llap{\makebox[#2][l]{\etocnumber}}}{\advance\leftskip-#2\relax}%
+ {%
+ \llap{%
+ \makebox[#2][l]{%
+ \etocnumber%
+ }%
+ }%
+ }{\advance\leftskip-#2\relax}%
\etocname
\nobreak\leaders \copy\YAD@leaderbox
\hfil\makebox[-\parfillskip][r]{\etocpage}%
@@ -3525,17 +3543,29 @@
{\advance\leftskip-#2\relax}%
}
\newcommand\YAD@globalstyle {% encapsule le style pour les global TOCs
- \etocsettocstyle {\if@twocolumn \@restonecoltrue \onecolumn \else
- \@restonecolfalse \fi
- \parindent\z@ \leftskip\z@skip \rightskip \z@skip
+ \etocsettocstyle {%
+ \if@twocolumn
+ \@restonecoltrue
+ \onecolumn
+ \else
+ \@restonecolfalse
+ \fi
+ \parindent\z@
+ \leftskip\z@skip
+ \rightskip\z@skip
\setbox\YAD@leaderbox\hbox to \YAD@leaderboxwidth{\hss.\hss}%
\chapter *[\cmdKV@YAD@name]{\noindent\kern\YAD@leftmargin\relax % uses "pt"...
\cmdKV@YAD@name%
}%
\rightskip \YAD@rightmargin\relax
\parfillskip -\rightskip % or a smaller value if desired
- \leftskip \YAD@leftmargin \relax } {\if@restonecol \twocolumn
- \fi\cleardoublepage}%
+ \leftskip \YAD@leftmargin \relax%
+ }{%
+ \if@restonecol
+ \twocolumn
+ \fi
+ \cleardoublepage%
+ }%
%
\etocsetstyle{part} {} {\addpenalty {-\@highpenalty}%
\addvspace \YAD@bigvskip \leavevmode {\large
@@ -3546,7 +3576,9 @@
%
\etocsetstyle{chapter} {\advance\leftskip\YAD@numwidthB\relax} {\addpenalty
{-\@highpenalty }%
- \vskip \YAD@globalmedvskip\relax \leavevmode {\interlinepenalty\@M \etocifnumbered
+ \vskip \YAD@globalmedvskip\relax
+ \leavevmode%
+ {\interlinepenalty\@M \etocifnumbered
{\llap{\makebox[\YAD@numwidthB][l]{\bfseries\etocnumber}}}
{\advance\leftskip-\YAD@numwidthB\relax}%
\bfseries\etocname
@@ -3720,13 +3752,6 @@
\LetLtxMacro{\YAD@ORI@chapter}{\chapter}%
\AfterPreamble{% delay the redefinition when titlesec has done its own
\renewcommand\chapter{%
- % \boolfalse{YAD@nonnumbered@chapter}%
- % \boolfalse{YAD@nonnumbered@section}%
- % \boolfalse{YAD@nonnumbered@subsection}%
- % \boolfalse{YAD@nonnumbered@subsubsection}%
- % \boolfalse{YAD@nonnumbered@paragraph}%
- % \boolfalse{YAD@nonnumbered@subparagraph}%
- %
\ifbool{YAD@localbibs}{%
\let\YAD@ORI@blx@warn@bibempty\blx@warn@bibempty%
\def\blx@warn@bibempty{}%
@@ -3836,11 +3861,16 @@
\YAD@tmp@section[#1][#2]{#3}%
}%
\newcommandtwoopt{\YAD@unstarred@section}[3][][]{%
- \boolfalse{YAD@nonnumbered@section}%
- \boolfalse{YAD@nonnumbered@subsection}%
- \boolfalse{YAD@nonnumbered@subsubsection}%
- \boolfalse{YAD@nonnumbered@paragraph}%
- \boolfalse{YAD@nonnumbered@subparagraph}%
+ \if@mainmatter%
+ \ifbool{YAD@nonnumbered@chapter}{%
+ }{%
+ \boolfalse{YAD@nonnumbered@section}%
+ \boolfalse{YAD@nonnumbered@subsection}%
+ \boolfalse{YAD@nonnumbered@subsubsection}%
+ \boolfalse{YAD@nonnumbered@paragraph}%
+ \boolfalse{YAD@nonnumbered@subparagraph}%
+ }%
+ \fi%
\YAD@tmp@section[#1][#2]{#3}%
}%
\LetLtxMacro{\YAD@ORI@subsection}{\subsection}
@@ -3869,10 +3899,15 @@
\YAD@tmp@subsection[#1]{#2}%
}%
\newcommand{\YAD@unstarred@subsection}[2][]{%
- \boolfalse{YAD@nonnumbered@subsection}%
- \boolfalse{YAD@nonnumbered@subsubsection}%
- \boolfalse{YAD@nonnumbered@paragraph}%
- \boolfalse{YAD@nonnumbered@subparagraph}%
+ \if@mainmatter%
+ \ifbool{YAD@nonnumbered@section}{%
+ }{%
+ \boolfalse{YAD@nonnumbered@subsection}%
+ \boolfalse{YAD@nonnumbered@subsubsection}%
+ \boolfalse{YAD@nonnumbered@paragraph}%
+ \boolfalse{YAD@nonnumbered@subparagraph}%
+ }%
+ \fi%
\YAD@tmp@subsection[#1]{#2}%
}%
\LetLtxMacro{\YAD@ORI@subsubsection}{\subsubsection}
@@ -3900,9 +3935,14 @@
\YAD@tmp@subsubsection[#1]{#2}%
}%
\newcommand{\YAD@unstarred@subsubsection}[2][]{%
- \boolfalse{YAD@nonnumbered@subsubsection}%
- \boolfalse{YAD@nonnumbered@paragraph}%
- \boolfalse{YAD@nonnumbered@subparagraph}%
+ \if@mainmatter%
+ \ifbool{YAD@nonnumbered@subsection}{%
+ }{%
+ \boolfalse{YAD@nonnumbered@subsubsection}%
+ \boolfalse{YAD@nonnumbered@paragraph}%
+ \boolfalse{YAD@nonnumbered@subparagraph}%
+ }%
+ \fi%
\YAD@tmp@subsubsection[#1]{#2}%
}%
\LetLtxMacro{\YAD@ORI@paragraph}{\paragraph}
@@ -3929,8 +3969,13 @@
\YAD@tmp@paragraph[#1]{#2}%
}%
\newcommand{\YAD@unstarred@paragraph}[2][]{%
- \boolfalse{YAD@nonnumbered@paragraph}%
- \boolfalse{YAD@nonnumbered@subparagraph}%
+ \if@mainmatter%
+ \ifbool{YAD@nonnumbered@subsubsection}{%
+ }{%
+ \boolfalse{YAD@nonnumbered@paragraph}%
+ \boolfalse{YAD@nonnumbered@subparagraph}%
+ }%
+ \fi%
\YAD@tmp@paragraph[#1]{#2}%
}%
\LetLtxMacro{\YAD@ORI@subparagraph}{\subparagraph}
@@ -3956,7 +4001,12 @@
\YAD@tmp@subparagraph[#1]{#2}%
}%
\newcommand{\YAD@unstarred@subparagraph}[2][]{%
- \boolfalse{YAD@nonnumbered@subparagraph}%
+ \if@mainmatter%
+ \ifbool{YAD@nonnumbered@paragraph}{%
+ }{%
+ \boolfalse{YAD@nonnumbered@subparagraph}%
+ }%
+ \fi%
\YAD@tmp@subparagraph[#1]{#2}%
}%
\@ifpackageloaded{floatrow}{%