[Tex/LaTex] Appendix page numbering

appendicespage-numbering

I'm new to latex , but things for me are easier since i've a partner that guides me to work on my thesis, but this he doesn't know.
So… i'm trying to number the pages of the appendices like: A1,A2 . so i tried to follow all the questions that already been asked and it works partially. For example i have 6 pages of appendix A and it is numbered correctly up till page 5 i.e A1,A2,A3,A4,A5 but page 6 just showing the # 6.
This solution i tried:

Custom page numbering for appendix

this is a link to my pdf file

http://www.filehosting.org/file/details/451295/main1.pdf

if i have to send my code just tell me

thx in advance

Best Answer

Very likely you are doing a local redefinition of \thepage in a group. If the group closes, but there is yet material, then the \clearpage of \end{document} ships out the last page with the old meaning of \thepage. BTW, also an environment acts as group.

Possible solutions/workarounds:

  • A global definition of \thepage helps:

    \gdef\thepage{A\arabic{page}}
    
  • Or an explicit \clearpage before the group closes to output the last page in the scope of the redefined \thepage.