How to make \iflastpage{\newgeometry{bottom=40mm}}{} work to have a specific bottom offset for only the last page?




        {\centering\large End of the Exam}%



  • You will run into problems if the page is nearly full: if you shorten it the text will wander to the next page and the number of the last page will oscillate. – Ulrike Fischer Nov 5 at 8:45
  • @UlrikeFischer Do you mean that it is not stable to use \iflastpage to change the geometry of the last page? If yes, is there any other way to do so? – Diaa Nov 5 at 9:05
  • I would simply put the text "End of the Exam" at the end of the document. – Ulrike Fischer Nov 5 at 9:07
  • @UlrikeFischer Unfortunately, this document resulted in this ugly output where End of the Exam is not placed just above the footer horizontal rule. – Diaa Nov 5 at 9:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.