% Title page changed because the documentation isn't a thesis!
\makeatletter
\renewpagestyle{titles}[]{%
  \setcounter{secnumdepth}{-10}%
  \newgeometry{centering,nomarginpar,bottom=1cm,top=1cm,headheight=\YAD@max@logoheight,hmargin=2cm,includeall}%
  \sethead{}{}{}%
  \setfootrule{0pt}%
  \setfoot{}{}{}%
}%
\renewcommand{\maketitle}[1][]{%
  \booltrue{YAD@maketitle@used}%
  \yadsetup{#1}%
  \setlength{\fboxsep}{10pt}%
  \setlength{\YAD@titleboxwidth}{\linewidth-2\fboxsep-2\fboxrule}%
  \pagestyle{titles}%
  \renewcommand*{\do}[1]{%
    \cleardoublepage%
    \begingroup%
    \expandafter\selectlanguage\expandafter{##1}%
    \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%
          \par%
          \centering%
          \Huge\bfseries%
          \printtitle%
          \ifundef{\printsubtitle}{%
          }{%
            \ifdraft{}{\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}%
    \noindent%
    \begin{center}
      {%
        \large%
        \vspace*{\stretch{1}}%
        \usebox{\YAD@titlebox}%
        \par%
        \bigskip%
        \textbf{\printauthor}%
        \par%
        \bigskip%
        \textbf{\printdate}%
        \vspace*{\stretch{1}}%
      }%
    \end{center}
    \endgroup%
\ifthenelse{\equal{\YAD@colophon@location}{verso-frontcover}}{%
  \YAD@insert@colophon%
}{%
}%
    \boolfalse{YAD@cover@page}%
  }%
  \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}%
}%
%
% Configuration pour faire figurer les 1re et dernière entrées d'index d'une
% page d'index en titre courant
\newcommand\MarkbothHack
{\let\ORIGttl@titlemarks\ttl@titlemarks
  \let\ttl@titlemarks\relax
}
\newcommand\UndoMarkbothHack
{\clearpage
  \markboth{}{}%
  \let\ttl@titlemarks\ORIGttl@titlemarks
}
\newcommand\wordrange{%
  \ifthenelse{%
    \equal{\leftmark}{}%
  }{%
    \ifthenelse{%
      \equal{\rightmark}{}%
    }{%
      % Both leftmark and rightmark empty => empty wordrange
    }{%
      (\rightmark)
      % : leftmark vide, rightmark ? (leftmark=|\leftmark|, rightmark=|\rightmark|)%
    }%
  }{%
    \ifthenelse{%
      \equal{\rightmark}{\leftmark}%
    }{%
      % (\rightmark) :
      % leftmark non vide, leftmark=rightmark (leftmark=|\leftmark|, rightmark=|\rightmark|)%
    }{%
      (\rightmark\ -- \leftmark)
      % : leftmark non vide, leftmark!=rightmark (leftmark=|\leftmark|, rightmark=|\rightmark|)%
    }%
  }%
}
\newpagestyle{indexpagestyle}{%
  \let\ORIGttl@titlemarks\ttl@titlemarks
  \let\ttl@titlemarks\relax
  %
  \sethead[\thepage{}\hspace{.5cm}\wordrange]%
  []%
  [\YAD@chapter@header{}]%
  {\YAD@chapter@header{}}%
  {}%
  {\wordrange\hspace{.5cm} \thepage{}}%
  \headrule%
  %
  % \let\ttl@titlemarks\relax
  % \sethead{\rightmark\ -- \leftmark}{}{}%
  % \headrule
  % \setfoot{}{\thepage}{}%
}%
\newcommand\UndoSideEffectOfIndexPageStyle
{\clearpage
  \let\ttl@titlemarks\ORIGttl@titlemarks
}
%
\makeatother
\tcbset{index command name=\jobname-commands}
%
\makeindex[name=\jobname-commands,title=Index des commandes,extout=odx,extin=ond,columnseprule]
\makeindex[name=\jobname-changes,title=Historique des changements,extout=gdx,extin=gnd]
%
\renewcommand{\ttdefault}{lmtt}
%
\input{liminaires/fixed-footnotes}
%
\loadglsentries{glossaries/glossary}
\loadglsentries{glossaries/acronyms}
%
\addbibresource{yathesis-fr.bib}
%
\InputIfFileExists{translations}{}{}
%
% \InputIfFileExists{includeall-includeonly}{}{}
%
\tcbsetforeverylayer{autoparskip}%
%
\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.%
}

%%% Local Variables:
%%% mode: latex
%%% End:
