diff --git a/fithesis.dtx b/fithesis.dtx index 0487006034733471d757f2a3c645f61d637bb010..12a5610b80a707526948db9adf3f417a8c360663 100644 --- a/fithesis.dtx +++ b/fithesis.dtx @@ -1384,6 +1384,9 @@ \AtEndDocument{% \thesis@postamble \write\@auxout{\noexpand\gdef\noexpand\thesis@pages{\thepage}}} + \else + \AtEndDocument{% + \write\@auxout{\noexpand\gdef\noexpand\thesis@pages{\thepage}}} \fi \makeatother \fi}