2

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

6
  • Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Johannes_B Jun 19 '14 at 13:23
  • Odd are, something happened on page 6 to reset \thepage, so yeah we'll need a MWE (perhaps just page 6). – John Kormylo Jun 19 '14 at 13:41
  • what should I include in the question that help you to see the problem ? – UdiW Jun 19 '14 at 13:47
  • if i had to guess, i'd ask if page 6 is the last page of the appendix. i've seen a similar situation in which code activated at \end{document} altered the expected value of the running head. but more information (in the form of a non-working example) is needed to diagnose that. – barbara beeton Jun 19 '14 at 14:00
  • Currently pg.6 is the last one , but i added random text to create another page and it didn't change still A-1,A-2...6,7(new page). Can I just copy paste my "main.tex" file and the "appendix.tex" file ? or upload it to and attach a link for you to check it ?\ – UdiW Jun 19 '14 at 14:05
4

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.

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.