Avec "yathesis", comment déplacer verticalement des élément sur la page de titre
Avec `yathesis`, j'aimerais déplacer verticalement le titre de la thèse et tout ce qui appararait avant `enter code here`avant celui sur la page de titre avec par exemple une commande `\vspace`.
Exemple :
\documentclass[mainlanguage=french]{yathesis}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\makeatletter
%suppresion de directeur de these avant le jury
\let\YAD@supervisors@tabular\relax
%redefinition d'une expression de la classe yathesis ici lbl-universitydepartement et meta-abstract
%\expression{meta-abstract}{abstract}{abstract}%
%\expression{lbl-keywords}{Keywords}{Keywords}%
\expression{lbl-universitydepartment}{Th\`ese pr\'epar\'ee au}{Thesis prepared at}
%suppresion des mots clés dans l'abstract
\renewcommand{\YAD@abstract@page}{%
\bgroup%
\enlargethispage{2cm}%
\setlength{\parindent}{0pt}%
\begin{minipage}{\linewidth}
\small%
{%
\bfseries%
\YAD@ifemptyorundef{\printtitle}{%
\YAD@generic@argument@translate{title}%
}{%
\textsc{\printtitle}%
}%
\ifundef{\printsubtitle}{%
}{%
\newline%
\printsubtitle%
}%
\vspace{-.5em}%
\vspace{\z@}%
\begin{center}%
\YAD@abstractname@mainlanguage%
\end{center}%
}%
\par%
\ifboolexpr{%
bool {YAD@abstract@used}%
\renewcommand{\maketitle}[1][]{%
\booltrue{YAD@maketitle@used}%
\yadsetup{#1}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Welcome to Overleaf --- just edit your LaTeX on the left,
% and not bool {YAD@main@abstract@empty}%
}{%
\usebox{\YAD@abstract@mainlanguage}%
}{%
\YAD@generic@argument@translate{abstract}%
}%
% \ifundef{\printkeywords}{%
% }{%
% \vspace{.5em}%
% \begin{description}
% \item[\YAD@translation{keywords}\IfLanguageName{french}{\ifundef{\Fcolonspace}{\FBcolonspace}{\Fcolonspace}}{}:]
% \printkeywords
% \end{description}
% }%
\end{minipage}%
\ifbool{YAD@second@abstract@used}{%
\expandafter\selectlanguage\expandafter{\YAD@secondarylanguage}%
\\[.5\baselineskip]%
\YAD@abstract@page@rule%
\\[.5\baselineskip]%
\begin{minipage}{\linewidth}
\small%
{%
\bfseries%
\YAD@ifemptyorundef{\printtitle}{%
\YAD@generic@argument@translate{title}%
}{%
\textsc{\printtitle}%
}%
\ifundef{\printsubtitle}{%
}{%
\newline%
\printsubtitle%
}%
\vspace{-.5em}%
\vspace{\z@}%
\begin{center}%
\YAD@abstractname@secondarylanguage%
\end{center}%
}%
\par%
\ifboolexpr{%
bool {YAD@abstract@used}%
and not bool {YAD@second@abstract@empty}%
}{%
\usebox{\YAD@abstract@secondarylanguage}%
}{%
\YAD@generic@argument@translate{abstract}%
}%
% \ifundef{\printkeywords}{%
% }{%
% \vspace{.5em}%
% \begin{description}
% \item[\YAD@translation{keywords}\IfLanguageName{french}{\ifundef{\Fcolonspace}{\FBcolonspace}{\Fcolonspace}}{}:]
% \textnormal{\printkeywords}
% \end{description}
% }%
\end{minipage}%
}{%
}%
\\[.5\baselineskip]%
%\YAD@abstract@page@rule%
% \par%
% \textbf{\printlaboratory*}%
% \\%
% \let\YAD@ORI@doublebackslash\\%
% \renewcommand{\\}{ -- }%
% \printlaboratoryaddress%
% \let\\\YAD@ORI@doublebackslash%
\egroup%
}%
%suppresion de la reference au laboratoire dans l'abstract
\renewcommand{\makeabstract}{%
\ifbool{YAD@nomakeabstract}{%
}{%
\YAD@alarm@noabstract%
}%
\pagestyle{preliminary}%
\YAD@phantomsection%
\addcontentsline{toc}{chapter}{\abstractname}%
\booltrue{YAD@makeabstract@used}%
\bgroup%
% \setlength{\footskip}{-15pt}%
\setfootrule{0pt}%
\setfoot[][%
\ifboolexpr{%
bool {YAD@inprogress@work}%
or bool {YAD@inprogress@work@star}%
}{%
\textsc{\translate{lbl-inprogressfoottext} \today}%
}{%
\ifboolexpr{%
bool {YAD@submitted@work@star}%
}{%
\textsc{\translate{lbl-submittedfoottext} \today}%
}{%
}%
}%
][]{%
% \YAD@laboratory@abstract@page%
}{}{}%
\cleardoublepage%
\renewcommand{\YAD@chapter@header}{\abstractname}%
\renewcommand{\YAD@section@header}{\abstractname}%
\YAD@abstract@page%
\cleardoublepage%
\egroup%
\YAD@nolaboratorytrue%
\YAD@nolaboratoryadresstrue%
}%
we'll compile it for you on the right. If you give
% someone the link to this page, they can edit at the same
% time. See the help menu above for more info. Enjoy!
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[mainlanguage=french]{yathesis}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
%espace de la colonne de l affiliation dans characteristics.tex
\renewcommand*{\YAD@committee@tabular}{%
\small%
\begin{tabular}[t]{>{\itshape}llp{6cm}l}
\multicolumn{4}{@{}l}{\bfseries\YAD@translation{committeemembers}}%
\\[.25cm]
\DTLforeach*{YAD@staffs}{%
\YAD@the@staff=YAD@the@staff%
}{%
%
\YAD@display@staff{\YAD@the@staff}%
}%
\end{tabular}
}%
\makeatletter
\renewcommand{\maketitle}[1][]{%
\booltrue{YAD@maketitle@used}%
\yadsetup{#1}
\setlength{\fboxsep}{10pt}%
\setlength{\YAD@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}
% On passe dans la langue choisie en option (en français si rien n'est
% spécifié).
% \begin{macrocode}
\begingroup%
\expandafter\selectlanguage\expandafter{##1}%
% \YAD@ifemptyorundef{\YAD@frametitle@set}{%
% \gdef\YAD@frametitle{\cmdKV@YAD@frametitle}%
% }{%
% \gdef\YAD@frametitle{\YAD@frametitle@set}%
% }%
\begin{lrbox}{\YAD@titlebox}
\ifthenelse{\equal{\cmdKV@YAD@frametitle}{none}}{%
}{%
\tcbset{colback=white,boxsep=3pt,boxrule=0.4pt,arc=0mm}%
\ifthenelse{\equal{\cmdKV@YAD@frametitle}{shadowbox}}{%
\tcbset{enhanced,drop shadow southeast={black,opacity=1}}%
}{%
\ifthenelse{\equal{\cmdKV@YAD@frametitle}{ovalbox}}{%
\tcbset{arc=3mm}%
}{%
\ifthenelse{\equal{\cmdKV@YAD@frametitle}{fbox}}{%
}{%
\tcbset{code={\expandafter\pgfkeysalsofrom{\cmdKV@YAD@frametitle}}}%
}%
}%
}%
\begin{tcolorbox}
}%
\noindent%
\begin{minipage}{\linewidth-2\fboxsep-2\fboxrule}
\onehalfspacing%
\noindent%
\ifthenelse{\equal{\cmdKV@YAD@frametitle}{none}}{%
}{%
\ifYAD@hdr
\YAD@translation{thesistitle-hdr}%
\else%
\YAD@translation{thesistitle}%
\fi
}%
\par%
\centering%
\Huge\bfseries%
\YAD@ifemptyorundef{\printtitle}{%
\YAD@generic@argument@translate{title}%
\ifbool{YAD@notitle}{%
}{%
\YAD@ClassError[notitle]{%
Titre de la these non specifie%
}{%
La commande \protect\title\space n'a pas ete utilisee\MessageBreak%
(celle-ci est requise) ou son argument obligatoire est vide\MessageBreak%
(celui-ci doit etre renseigne).%
}%
}%
}{%
\printtitle%
}%
\ifundef{\printsubtitle}{%
}{%
\ifdraft{}{\vspace*{\stretch{.15}}}%
% \vspace*{\stretch{.15}}%
\par%
\centering%
\Large\printsubtitle%
}%
\end{minipage}%
\ifthenelse{\equal{\cmdKV@YAD@frametitle}{none}}{%
}{%
\end{tcolorbox}
}%
\end{lrbox}
\settototalheight{\YAD@titleboxheight}{\YAD@titlebox}%
\setlength{\YAD@otherboxheight}{0.3\paperheight-\YAD@titleboxheight}%
% \end{macrocode}
% On met en page les divers éléments des titres.
% \begin{macrocode}
%\YAD@astuce@expressioncle%
\noindent%
\ifcsdef{printordernumber}{%
% \end{macrocode}
% On n'affiche le numéro d'ordre de la thèse que sur la 1\iere{} page du
% document : 1\iere{} de couverture s'il y a, page de titre en langue
% principale sinon.
% \begin{macrocode}
\ifboolexpr{%
bool {YAD@cover@page}%
or (bool {YAD@nofrontcover} and test {\IfLanguageName{\YAD@mainlanguage}})%
}{%
\ifdraft{}{\vspace*{\stretch{1}}}%
% \vspace*{\stretch{1}}%
\raggedleft{%
\itshape%
\sffamily%
\YAD@translation{ordernumber}%
\IfLanguageName{french}{%
\FBcolonspace%
}{%
}: \printordernumber%
}%
}{%
}%
\ifdraft{}{\vspace*{\stretch{.5}}}%
% \vspace*{\stretch{.5}}%
\par%
}{%
}%
% \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}{%
}{%
\YAD@ClassError[noinstitute]{%
Institut de la these non specifie%
}{%
La commande \protect\institute\space n'a pas ete
utilisee\MessageBreak%
(celle-ci est requise) ou son argument obligatoire est
vide\MessageBreak%
(celui-ci doit etre renseigne).%
}%
}%
}{%
\YAD@translation{institute} \textbf{\textsc{\Large\printinstitute}}%
}%
\ifundef{\printcoinstitute}{%
}{%
\ifdraft{}{\vspace*{\stretch{.5}}}%
% \vspace*{\stretch{.5}}%
\par%
\YAD@translation{coinstitute} \textbf{\textsc{\Large\printcoinstitute}}%
}%
\ifundef{\printcompany}{%
}{%
\ifdraft{}{\vspace*{\stretch{.5}}}%
% \vspace*{\stretch{.5}}%
\par%
\YAD@translation{company} \textbf{\textsc{\Large\printcompany}}%
}%
\ifdraft{}{\vspace*{\stretch{1.5}}}%
% \vspace*{\stretch{1.5}}%
\ifdraft{}{\vspace*{\stretch{1.5}}}%
% \vspace*{\stretch{1.5}}%
\par%
{\large%
\ifYAD@hdr%
\YAD@translation{thesisdefendedby-hdr} %
\else%
\YAD@translation{thesisdefendedby} %
\fi%
\YAD@ifemptyorundef{\printauthor}{%
\YAD@generic@argument@translate{author}%
\ifbool{YAD@noauthor}{%
}{%
\YAD@ClassError[noauthor]{%
Auteur de la these non specifie%
}{%
La commande \protect\author\space n'a pas ete utilisee (celle-ci
est requise)\MessageBreak%
ou ses 2 premiers arguments obligatoires sont vides\MessageBreak%
(ceux-ci doivent etre renseignes).%
}%
}%
}{%
\textbf{\printauthor}%
}%
\ifboolexpr{%
bool {YAD@submitted@work}%
or bool {YAD@submitted@work@star}%
}{%
% \ifdraft{}{\vspace*{\stretch{1}}}%
% \par%
% \YAD@translation{estimateddefensedate}
% \YAD@ifemptyorundef{\printdate}{%
% \YAD@generic@argument@translate{date}%
% }{%
% \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}{%
}{%
\YAD@translation{aimand}%
\printcoinstitute*%
}%
\fi%
\ifdraft{}{\vspace*{\stretch{1}}}%
% \vspace*{\stretch{1}}%
\par%
\large%
\YAD@translation{academicfield}
%
\YAD@ifemptyorundef{\printacademicfield}{%
\YAD@generic@argument@translate{academicfield}%
\ifbool{YAD@noacademicfield}{%
}{%
\YAD@ClassError[noacademicfield]{%
Champ disciplinaire de la these non specifie%
}{%
La commande \protect\academicfield\space n'a pas ete utilisee
(celle-ci est requise)\MessageBreak%
ou son argument obligatoire est vide (celui-ci doit etre renseigne).%
}%
}%
}{%
\textbf{\printacademicfield}%
}%
\ifundef{\printspeciality}{%
}{%
\ifdraft{}{\vspace*{\stretch{.5}}}%
% \vspace*{\stretch{.5}}%
\par%
\large%
\YAD@translation{speciality} \textbf{\printspeciality}%
}
\end{center}
% \end{minipage}%
\vspace*{\stretch{1}}%
\begin{center}
\ifthenelse{\equal{\cmdKV@YAD@frametitle}{none}}{%
}{%
\ifdraft{}{\vspace*{\stretch{2}}}%
% \vspace*{\stretch{2}}%
}{%
\ifdraft{}{\vspace*{\stretch{.25}}}%
% \vspace*{\stretch{.25}}%
}%
\usebox{\YAD@titlebox}%
% \ifdraft{}{\vspace*{\stretch{2}}}%
\vspace*{\stretch{2}}%
\end{center}
% \end{macrocode}
% Affichage des directeurs de thèse et du jury
% \begin{macrocode}
\noindent%
\begin{center}
\begin{minipage}[c][\YAD@otherboxheight][c]{\YAD@titleboxwidth}
\vspace*{\stretch{0.8}}
\YAD@supervisors@tabular%
\par%
\ifboolexpr{%
bool {YAD@submitted@work}%
or bool {YAD@submitted@work@star}%
}{%
\vphantom{\YAD@committee@tabular}%
}{%
\YAD@committee@tabular%
}%
\ifdraft{}{\vspace*{\stretch{.1}}}%
% \vspace*{\stretch{.1}}%
\end{minipage}
\end{center}
\ifthenelse{\equal{\cmdKV@YAD@frametitle}{none}}{%
}{%
% \ifdraft{}{\vspace*{\stretch{2}}}%
\vspace*{\stretch{2}}%
}{%
}%
\ifbool{YAD@supervisor@specified}{%
}{%
\ifbool{YAD@nosupervisor}{%
}{%
\YAD@ClassError*[nosupervisor]{%
Directeur de these non specifie%
}{%
La commande \protect\supervisor\space n'a pas ete utilisee\MessageBreak%
(celle-ci est requise) ou ses arguments obligatoires sont
vides\MessageBreak%
(ceux-ci doivent etre renseignes).%
}%
}%
}%
\ifdraft{}{\vspace*{\stretch{-0.75}}}%
\begin{center}
\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{0.5}}}%
% \vspace*{\stretch{.5}}%
\par%
\YAD@translation{doctoralschool}
\YAD@ifemptyorundef{\printdoctoralschool}{%
\YAD@generic@argument@translate{doctoralschool}%
\ifbool{YAD@nodoctoralschool}{%
}{%
\YAD@ClassError[nodoctoralschool]{%
Ecole doctorale de la these non specifiee%
}{%
la commande \protect\doctoralschool\space n'a pas ete
utilisee\MessageBreak%
(celle-ci est requise) ou son argument obligatoire est
vide\MessageBreak%
(celui-ci doit etre renseigne).%
}%
}%
}{%
\textbf{\printdoctoralschool}%
}%
\end{center}
% \end{macrocode}
% On repasse à la langue par défaut
% \begin{macrocode}
\endgroup%
% \end{macrocode}
% Maintenant que la 1\iere{} page de titre (celle de 1\iere{} de couverture)
% a été créée, le booléen ×YAD@cover@page× est faux.
% \begin{macrocode}
\boolfalse{YAD@cover@page}%
% \end{macrocode}
% On génère une page de titre dans la langue principale puis dans la
% langue secondaire.
% \begin{macrocode}
}%
\expandafter\docsvlist{\YAD@mainlanguage}%
\ifbool{YAD@two@titles}{%
\booltrue{YAD@second@title}%
\ifthenelse{\equal{\YAD@mainlanguage}{french}}{%
\ifbool{YAD@nofrontcover}{%
\docsvlist{english}%
}{%
\docsvlist{french,english}%
}%
}{%
\ifbool{YAD@nofrontcover}{%
\docsvlist{french}%
}{%
\docsvlist{english,french}%
}%
}%
}{%
}%
\ifthenelse{\equal{\cmdKV@YAD@frametitle}{shadowbox}}{%
\let\tcb@shadow@prepare=\origtcb@shadow@prepare%
}{%
}%
\expandafter\selectlanguage\expandafter{\YAD@mainlanguage}%
\pagestyle{preliminary}%
}%
\makeatother
\begin{document}
\author[email=email@ec-ecole.fr]{Gaspard}{Doe}
\title{un long titre d'une longue thèse qui fait plusieurs pages}
\academicfield{Mécanique des Fluides}
\speciality{Mécanique}
\date{15}{12}{2016}
\pres[logoheight=1.9cm, logo=./images/LML-logo2,url=http://lml.univ-ecole1.fr/lml/]{PRES Universi\'e Ecole de-France}
\institute[logoheight=1.7cm,logo=,url=]{Ecole de la thèse}
\laboratory[
logo=,
logoheight=1.25cm,
telephone=(33)(0) 9999999,
fax=(33)(0) 999999,
email= lab@univ-ecole.fr,
url=
]{Laboratoire de la these}{%
Laboratoire de la these \\
CNRS UMR 1520 \\
Bvd de la these \\
11111 ville de la these, Cedex \\
France}
% Mention du numéro d'ordre de la thèse (s'il est connu, ce numéro est
% à spécifier en argument optionnel). Facultatif.
\ordernumber[333]
\maketitle%
\end{document}
\setlength{\fboxsep}{10pt}%
\setlength{\YAD@titleboxwidth}{\linewidth-2\fboxsep-2\fboxrule}%
\renewcommand*{\do}[1]{%
% Appel du style de page propre au(x) titre(s)
% \begin{macrocode}
\pagestyle{titles}%
% \end{macrocode}
\begingroup%
\expandafter\selectlanguage\expandafter{##1}%
% \YAD@ifemptyorundef{\YAD@frametitle@set}{%
% \gdef\YAD@frametitle{\cmdKV@YAD@frametitle}%
% }{%
% \gdef\YAD@frametitle{\YAD@frametitle@set}%
% }%
\begin{lrbox}{\YAD@titlebox}
\ifthenelse{\equal{\cmdKV@YAD@frametitle}{none}}{%
}{%
\tcbset{colback=white,boxsep=3pt,boxrule=0.4pt,arc=0mm}%
\ifthenelse{\equal{\cmdKV@YAD@frametitle}{shadowbox}}{%
\tcbset{enhanced,drop shadow southeast={black,opacity=1}}%
}{%
\ifthenelse{\equal{\cmdKV@YAD@frametitle}{ovalbox}}{%
\tcbset{arc=3mm}%
}{%
\ifthenelse{\equal{\cmdKV@YAD@frametitle}{fbox}}{%
}{%
\tcbset{code={\expandafter\pgfkeysalsofrom{\cmdKV@YAD@frametitle}}}%
}%
}%
}%
\begin{tcolorbox}
}%
\noindent%
\begin{minipage}{\linewidth-2\fboxsep-2\fboxrule}
\onehalfspacing%
\noindent%
\ifthenelse{\equal{\cmdKV@YAD@frametitle}{none}}{%
}{%
\ifYAD@hdr
\YAD@translation{thesistitle-hdr}%
\else%
\YAD@translation{thesistitle}%
\fi
}%
\par%
\centering%
\Huge\bfseries%
\YAD@ifemptyorundef{\printtitle}{%
\YAD@generic@argument@translate{title}%
\ifbool{YAD@notitle}{%
}{%
\YAD@ClassError[notitle]{%
Titre de la these non specifie%
}{%
La commande \protect\title\space n'a pas ete utilisee\MessageBreak%
(celle-ci est requise) ou son argument obligatoire est vide\MessageBreak%
(celui-ci doit etre renseigne).%
}%
}%
}{%
\printtitle%
}%
\ifundef{\printsubtitle}{%
}{%
\ifdraft{}{\vspace*{\stretch{.15}}}%
% \vspace*{\stretch{.15}}%
\par%
\centering%
\Large\printsubtitle%
}%
\end{minipage}%
\ifthenelse{\equal{\cmdKV@YAD@frametitle}{none}}{%
}{%
\end{tcolorbox}
}%
\end{lrbox}
\settototalheight{\YAD@titleboxheight}{\YAD@titlebox}%
\setlength{\YAD@otherboxheight}{0.3\paperheight-\YAD@titleboxheight}%
% \end{macrocode}
% On met en page les divers éléments des titres.
% \begin{macrocode}
%\YAD@astuce@expressioncle%
\noindent%
\ifcsdef{printordernumber}{%
% \end{macrocode}
% On n'affiche le numéro d'ordre de la thèse que sur la 1\iere{} page du
% document : 1\iere{} de couverture s'il y a, page de titre en langue
% principale sinon.
% \begin{macrocode}
\ifboolexpr{%
bool {YAD@cover@page}%
or (bool {YAD@nofrontcover} and test {\IfLanguageName{\YAD@mainlanguage}})%
}{%
\ifdraft{}{\vspace*{\stretch{1}}}%
% \vspace*{\stretch{1}}%
\raggedleft{%
\itshape%
\sffamily%
\YAD@translation{ordernumber}%
\IfLanguageName{french}{%
\FBcolonspace%
}{%
}: \printordernumber%
}%
}{%
}%
\ifdraft{}{\vspace*{\stretch{.5}}}%
% \vspace*{\stretch{.5}}%
\par%
}{%
}%
% \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}{%
}{%
\YAD@ClassError[noinstitute]{%
Institut de la these non specifie%
}{%
La commande \protect\institute\space n'a pas ete
utilisee\MessageBreak%
(celle-ci est requise) ou son argument obligatoire est
vide\MessageBreak%
(celui-ci doit etre renseigne).%
}%
}%
}{%
\YAD@translation{institute} \textbf{\textsc{\Large\printinstitute}}%
}%
\ifundef{\printcoinstitute}{%
}{%
\ifdraft{}{\vspace*{\stretch{.5}}}%
% \vspace*{\stretch{.5}}%
\par%
\YAD@translation{coinstitute} \textbf{\textsc{\Large\printcoinstitute}}%
}%
\ifundef{\printcompany}{%
}{%
\ifdraft{}{\vspace*{\stretch{.5}}}%
% \vspace*{\stretch{.5}}%
\par%
\YAD@translation{company} \textbf{\textsc{\Large\printcompany}}%
}%
\ifdraft{}{\vspace*{\stretch{1.5}}}%
% \vspace*{\stretch{1.5}}%
\ifdraft{}{\vspace*{\stretch{1.5}}}%
% \vspace*{\stretch{1.5}}%
\par%
{\large%
\ifYAD@hdr%
\YAD@translation{thesisdefendedby-hdr} %
\else%
\YAD@translation{thesisdefendedby} %
\fi%
\YAD@ifemptyorundef{\printauthor}{%
\YAD@generic@argument@translate{author}%
\ifbool{YAD@noauthor}{%
}{%
\YAD@ClassError[noauthor]{%
Auteur de la these non specifie%
}{%
La commande \protect\author\space n'a pas ete utilisee (celle-ci
est requise)\MessageBreak%
ou ses 2 premiers arguments obligatoires sont vides\MessageBreak%
(ceux-ci doivent etre renseignes).%
}%
}%
}{%
\textbf{\printauthor}%
}%
\ifboolexpr{%
bool {YAD@submitted@work}%
or bool {YAD@submitted@work@star}%
}{%
% \ifdraft{}{\vspace*{\stretch{1}}}%
% \par%
% \YAD@translation{estimateddefensedate}
% \YAD@ifemptyorundef{\printdate}{%
% \YAD@generic@argument@translate{date}%
% }{%
% \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}{%
}{%
\YAD@translation{aimand}%
\printcoinstitute*%
}%
\fi%
\ifdraft{}{\vspace*{\stretch{1}}}%
% \vspace*{\stretch{1}}%
\par%
\large%
\YAD@translation{academicfield}
%
\YAD@ifemptyorundef{\printacademicfield}{%
\YAD@generic@argument@translate{academicfield}%
\ifbool{YAD@noacademicfield}{%
}{%
\YAD@ClassError[noacademicfield]{%
Champ disciplinaire de la these non specifie%
}{%
La commande \protect\academicfield\space n'a pas ete utilisee
(celle-ci est requise)\MessageBreak%
ou son argument obligatoire est vide (celui-ci doit etre renseigne).%
}%
}%
}{%
\textbf{\printacademicfield}%
}%
\ifundef{\printspeciality}{%
}{%
\ifdraft{}{\vspace*{\stretch{.5}}}%
% \vspace*{\stretch{.5}}%
\par%
\large%
\YAD@translation{speciality} \textbf{\printspeciality}%
}
\end{center}
% \end{minipage}%
\vspace*{\stretch{1}}%
\begin{center}
\ifthenelse{\equal{\cmdKV@YAD@frametitle}{none}}{%
}{%
\ifdraft{}{\vspace*{\stretch{2}}}%
% \vspace*{\stretch{2}}%
}{%
\ifdraft{}{\vspace*{\stretch{.25}}}%
% \vspace*{\stretch{.25}}%
}%
\usebox{\YAD@titlebox}%
% \ifdraft{}{\vspace*{\stretch{2}}}%
\vspace*{\stretch{2}}%
\end{center}
% \end{macrocode}
% Affichage des directeurs de thèse et du jury
% \begin{macrocode}
\noindent%
\begin{center}
\begin{minipage}[c][\YAD@otherboxheight][c]{\YAD@titleboxwidth}
\vspace*{\stretch{0.8}}
\YAD@supervisors@tabular%
\par%
\ifboolexpr{%
bool {YAD@submitted@work}%
or bool {YAD@submitted@work@star}%
}{%
\vphantom{\YAD@committee@tabular}%
}{%
\YAD@committee@tabular%
}%
\ifdraft{}{\vspace*{\stretch{.1}}}%
% \vspace*{\stretch{.1}}%
\end{minipage}
\end{center}
\ifthenelse{\equal{\cmdKV@YAD@frametitle}{none}}{%
}{%
% \ifdraft{}{\vspace*{\stretch{2}}}%
\vspace*{\stretch{2}}%
}{%
}%
\ifbool{YAD@supervisor@specified}{%
}{%
\ifbool{YAD@nosupervisor}{%
}{%
\YAD@ClassError*[nosupervisor]{%
Directeur de these non specifie%
}{%
La commande \protect\supervisor\space n'a pas ete utilisee\MessageBreak%
(celle-ci est requise) ou ses arguments obligatoires sont
vides\MessageBreak%
(ceux-ci doivent etre renseignes).%
}%
}%
}%
\ifdraft{}{\vspace*{\stretch{-0.75}}}%
\begin{center}
\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{0.5}}}%
% \vspace*{\stretch{.5}}%
\par%
\YAD@translation{doctoralschool}
\YAD@ifemptyorundef{\printdoctoralschool}{%
\YAD@generic@argument@translate{doctoralschool}%
\ifbool{YAD@nodoctoralschool}{%
}{%
\YAD@ClassError[nodoctoralschool]{%
Ecole doctorale de la these non specifiee%
}{%
la commande \protect\doctoralschool\space n'a pas ete
utilisee\MessageBreak%
(celle-ci est requise) ou son argument obligatoire est
vide\MessageBreak%
(celui-ci doit etre renseigne).%
}%
}%
}{%
\textbf{\printdoctoralschool}%
}%
\end{center}
% \end{macrocode}
% On repasse à la langue par défaut
% \begin{macrocode}
\endgroup%
% \end{macrocode}
% Maintenant que la 1\iere{} page de titre (celle de 1\iere{} de couverture)
% a été créée, le booléen ×YAD@cover@page× est faux.
% \begin{macrocode}
\boolfalse{YAD@cover@page}%
% \end{macrocode}
% On génère une page de titre dans la langue principale puis dans la
% langue secondaire.
% \begin{macrocode}
}%
\expandafter\docsvlist{\YAD@mainlanguage}%
\ifbool{YAD@two@titles}{%
\booltrue{YAD@second@title}%
\ifthenelse{\equal{\YAD@mainlanguage}{french}}{%
\ifbool{YAD@nofrontcover}{%
\docsvlist{english}%
}{%
\docsvlist{french,english}%
}%
}{%
\ifbool{YAD@nofrontcover}{%
\docsvlist{french}%
}{%
\docsvlist{english,french}%
}%
}%
}{%
}%
\ifthenelse{\equal{\cmdKV@YAD@frametitle}{shadowbox}}{%
\let\tcb@shadow@prepare=\origtcb@shadow@prepare%
}{%
}%
\expandafter\selectlanguage\expandafter{\YAD@mainlanguage}%
\pagestyle{preliminary}%
}%
\makeatother
\begin{document}
\author[email=email@ec-ecole.fr]{Gaspard}{Doe}
\title{un long titre d'une longue thèse qui fait plusieurs pages}
\academicfield{Mécanique des Fluides}
\speciality{Mécanique}
\date{15}{12}{2016}
\institute[logoheight=1.7cm,logo=,url=]{Ecole de la thèse}
% Mention du numéro d'ordre de la thèse (s'il est connu, ce numéro est
% à spécifier en argument optionnel). Facultatif.
\ordernumber[333]
\maketitle%
\end{document}
\end{document}