diff --git a/statements/olymp.sty b/statements/olymp.sty index a2693aa..39ae3ec 100644 --- a/statements/olymp.sty +++ b/statements/olymp.sty @@ -91,10 +91,11 @@ % -- End of setup margins -- %---------- From package "lastpage" ------------------ -\def\lastpage@putlabel{\addtocounter{page}{-1}% +\@ifundefined{lastpage@putl@bel}{ +\def\lastpage@putl@bel{\addtocounter{page}{-1}% \immediate\write\@auxout{\string\newlabel{LastPage}{{}{\thepage}}}% - \addtocounter{page}{1}} -\AtEndDocument{\clearpage\lastpage@putlabel}% + \addtocounter{page}{1}}} +\AtEndDocument{\clearpage\lastpage@putl@bel}% %---------- end of "lastpage" ------------------ % -- Setup sizes --