diff options
author | Karl Berry <karl@freefriends.org> | 2021-03-24 21:28:41 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-03-24 21:28:41 +0000 |
commit | 735caaadce4cd7a108c3339233f156558419c3aa (patch) | |
tree | f4c14b957f0cac96169fdc4c2c88f4f3134c54ef /Master/texmf-dist/tex | |
parent | a0a6a6ce67675544dde2e9b4b78e030808749438 (diff) |
yathesis (24mar21) (branch)
git-svn-id: svn://tug.org/texlive/branches/branch2020.0@58687 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/yathesis/yathesis.cls | 62 |
1 files changed, 44 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/yathesis/yathesis.cls b/Master/texmf-dist/tex/latex/yathesis/yathesis.cls index cc9f848d1a5..da4ef27e279 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\yathesisversion{1.0.5} -\def\yathesisdate{2021-02-05} +\def\yathesisversion{1.0.7} +\def\yathesisdate{2021-03-24} \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesClass{yathesis}[\yathesisdate\space v\yathesisversion\space Yet another class for writing thesis (DB)] \RequirePackage{morewrites}% @@ -52,6 +52,7 @@ \newbool{YAD@two@titles} \newbool{YAD@cover@page} \newbool{YAD@supervisor@specified} +\newbool{YAD@committeepresident@specified} \newbool{YAD@symbols@isolated} \newbool{YAD@logo@before} \newbool{YAD@valid@day} @@ -487,6 +488,7 @@ \RequirePackage{environ}[2013/04/01]% \RequirePackage{adjustbox}[2012/05/21]% \RequirePackage{array}[2008/09/09]% +\RequirePackage{tabularx}[2020/01/15]% \RequirePackage{xstring}[2013/10/13]% \RequirePackage{textcase}[2004/10/07]% \RequirePackage{iftex}[2013/04/04]% @@ -1125,6 +1127,7 @@ }% }% \newcommand*{\committeepresident}[3][]{% + \booltrue{YAD@committeepresident@specified} \yadsetup{#1}% \ifboolexpr{% bool {YAD@female} or % @@ -1308,7 +1311,9 @@ }% }% }% + \ifbool{YAD@committeepresident@specified}{% & + % Fonction \YAD@reach@file{% \ifthenelse{\DTLiseq{\YAD@committeemember@role}{}}{% \ifdraft{% @@ -1322,9 +1327,11 @@ }% }% }% - \DTLiflastrow{% - \\[.15cm] - }{% + }{% + }% + \DTLiflastrow{% + \\[.15cm] + }{% \\ }% }% @@ -1333,11 +1340,10 @@ \small% \DTLifdbempty{YAD@staffs}{}{% \ifthenelse{\DTLrowcount{YAD@supervisors}>1}{% - \newcolumntype{u}{>{\itshape}lll}% + \begin{tabular}[t]{>{\itshape}lll} }{% - \newcolumntype{u}{>{\itshape}l@{ }ll}% + \begin{tabular}[t]{>{\itshape}l@{ }ll} }% - \begin{tabular}[t]{u} \DTLforeach*{YAD@supervisors}{% \YAD@committeemember@lastname=lastname,% \YAD@committeemember@firstname=firstname,% @@ -1403,8 +1409,16 @@ }% \newcommand*{\YAD@committee@tabular}{% \small% - \begin{tabular}[t]{>{\itshape}llp{5cm}l} - \multicolumn{4}{@{}l}{\bfseries\YAD@translation{committeemembers}}% + \ifbool{YAD@committeepresident@specified}{% + \begin{tabularx}{\textwidth}[t]{>{\itshape}ll>{\raggedright\arraybackslash}Xl} + }{% + \begin{tabularx}{\textwidth}[t]{>{\itshape}ll>{\raggedright\arraybackslash}X} + }% + \ifbool{YAD@committeepresident@specified}{% + \multicolumn{4}{@{}l}{\bfseries\YAD@translation{committeemembers}}% + }{% + \multicolumn{3}{@{}l}{\bfseries\YAD@translation{committeemembers}}% + }% \\[.25cm] \DTLforeach*{YAD@staffs}{% \YAD@the@staff=YAD@the@staff% @@ -1412,7 +1426,7 @@ % \YAD@display@staff{\YAD@the@staff}% }% - \end{tabular}% + \end{tabularx}% }% \DeclareRobustCommand*\YAD@meta{\YAD@generic@argument}% \newcommand*\YAD@logo{}% @@ -2695,7 +2709,7 @@ \vspace*{\stretch{2}}% \end{center} \noindent% - \begin{minipage}[c][\YAD@otherboxheight][c]{\YAD@titleboxwidth} + \begin{minipage}[c][\YAD@otherboxheight][c]{\textwidth} \YAD@supervisors@tabular% \par% \ifboolexpr{% @@ -3617,11 +3631,14 @@ \dimen@ 2.25em % soon to be \leftskip \renewcommand\addcontentsline[3]{}% \begingroup - \titlespacing*{\section}{\dimen@}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex} - \section*{% - \large% - \translate{lbl-localtocname}% - }% + \vspace{3.5ex plus 1ex minus .2ex}% + \noindent\hspace{\dimen@}% + {% + \normalfont\large\bfseries% + \translate{lbl-localtocname}% + } + \vspace{2.3ex plus .2ex}% + \par% \endgroup \sectionmark{}% \let\addcontentsline\YAD@addcontentsline @@ -3666,6 +3683,7 @@ \YAD@setlinestyle {paragraph}{\YAD@numwidthF}% \YAD@setlinestyle {subparagraph}{\YAD@numwidthG}% } +\newcommand*{\etoc@tocidautorefname}{\MakeLowercase{\chaptername}}% \newcommand*\YAD@computenumwidths@ [2] {% #1 pour `etoc' ou `local', #2=pour le % \kern \begingroup @@ -3712,6 +3730,9 @@ \newcommand*\YAD@computelocalnumwidths [1][0.5em]{% \YAD@computenumwidths@ {local}{#1}% } +\newcommand{\leadchapter}[1]{% + \def\YAD@leadchapter{#1}% +} \etocchecksemptiness \newcommand{\YAD@default@localtoc}{% \ifbool{YAD@localtocs}% @@ -3751,8 +3772,13 @@ \booltrue{YAD@nextwithlocaltoc}% } \apptocmd{\@makechapterhead}{% + \YAD@ifemptyorundef{\YAD@leadchapter}{% + }{% + \YAD@leadchapter% + \let\YAD@leadchapter\relax + } \ifbool{YAD@localtocs}% - {% + {% \YAD@localtoc% \renewcommand{\YAD@localtoc}{\YAD@default@localtoc}% \ifbool{YAD@nextwithlocaltoc}% |