erreur de compilation de title
J'ai un soucis de compilation de la page de titre de mon livre. C'est la commande `\maketitle` qui ne fonctionne pas et qui me retourne l'erreur suivante :
Package etoolbox Error: Boolean '\ifYAD@maketitle@used' undefined. \maketitle
Voici le code:
\documentclass[a5paper,12pt]{book}
\usepackage[francais]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{kpfonts}
\usepackage{booktabs}
\usepackage{pdfpages}
\usepackage{siunitx}
\usepackage{pgfplots}
\usepackage{floatrow}
\usepackage{caption}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{microtype}
\usepackage{varioref}
\usepackage{multirow}
\usepackage{array}
\usepackage{xcolor}
\usepackage[xindy,quiet]{imakeidx}
\usepackage[autostyle]{csquotes}
\usepackage[backend=biber,sorting=none,style=numeric-comp]{biblatex}
\usepackage{hyperref}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{kpfonts}
\usepackage{booktabs}
\usepackage{siunitx}
\usepackage{pgfplots}
\usepackage{floatrow}
\usepackage{caption}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{microtype}
\usepackage{varioref}
\usepackage{array}
\usepackage{xcolor}
\usepackage[xindy,quiet]{imakeidx}
\usepackage[autostyle]{csquotes}
\usepackage{setspace}
\onehalfspacing
\makeatletter
\renewcommand{\maketitle}{%
\booltrue{YAD@maketitle@used}
\vspace{5cm}
\centering
\Large{blabla}\par
\vspace{1cm}
\centering
{XX}
\par
\vspace{1cm}
\centering
\endgroup%
\restoregeometry%
}
\makeatother
\usepackage[a5paper]{geometry}
\begin{document}
\frontmatter
\maketitle
\thispagestyle{empty}
\mainmatter
\chapter{Préface}
\end{document}