After including more on my appendix, I got the following error: LaTeX Error: Counter to large.

I've got more than 30 sides in the appendix, but after Z the acrobat shows AA, BB, ... that's ok, but these pagenumbers aren't shown like the A, B, C, ... on the page and seem to throw the error.

How can I show the pagenumbers and fix it?

Here's an extract of my document (sorry, my pagestyle is a bit confusing):

%define pagestyle
\fancyhf{}  % empty header and footer
\fancyhead[LE,RO]{\leftmark}%leftmark produce CHAPTER 2. CHAPTER TWO TITLE
\fancyhead[RE,LO]{\rightmark}%rightmark produce 2.3 SECTION TITLE
\pagestyle{fancy}%empty for NO style, plain for just a page number
\fancypagestyle{plain}{%\chapter causes plain page style. So redefine it for chapter sites
  • The posted code doesn't help anyone understand the problem, please remove the ... and \input and jump towards the end with \setcounter{chapter}{24} or something then make a small example that demonstrates the problem. – David Carlisle Oct 20 '15 at 9:53
  • I found tex.stackexchange.com/questions/52599/… that could help you expand the counter capacity. The solution provided there uses lowercase letters, it should work with uppercase too. The alphalph package should be the way to go – Moriambar Oct 20 '15 at 11:29
  • When using the alphalph package with \appendix \setcounter{page}{1} \renewcommand*{\thepage}{\AlphAlph{\value{page}}} It seems that \value{page} return zero ("DivisionByZero ... A number should have been here; I inserted '0'"), if I replace it with '1' there's no error and always an 'A' – lis Oct 25 '15 at 12:26

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.