[Tex/LaTex] I want page 13 to show up as 12+1


I am writing an important document which has ended up being 13 pages.

For superstitious reasons, I want the page number on the last page to show up as "12+1". In other words, I want the page numbers to be:
1, 2, …, 11, 12, 12+1.

How do I do this?

Best Answer

Define a new counter format:


\usepackage{kantlipsum} % for mock text

  \expandafter\@fixedarabic\csname c@#1\endcsname
  \ifnum#1=13 12${}+{}$1\else\number#1\fi





enter image description here