I want to add an integer to the page number, but \thepage seems to be a string and \value{page} doesn't show up on the page.


| improve this question | | | | |
  • That worked perfectly, thanks! If you put it as an answer I can accept it. – jpd527 Jun 6 '17 at 14:54



The primitive \numexpr is used to perform calculations on numbers without changing counter or count register contents directly. In order to evaluate the expression as typesetting, the mighty \the as prefix is necessary.

| improve this answer | | | | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.