\AtEndDocument{ \ifnum\value{lastsheet}=1 \thispagestyle{empty} \fi }