# [Tex/LaTex] Occasional counter too large error despite \MakePerPage

bigfooterrorsfootnotes

I am using the bigfoot package to generate two styles of footnotes, which I signal using either the normal \footnote or my new \footnoteB. FootnoteB uses alphabetical numbering but the count is reset each page (\MakePerPage); nowhere do I have even close to 26 of them on a single page. Here's what I've got in the preamble:

\usepackage{bigfoot}
\DeclareNewFootnote[para]{B}[alph]
\DeclareNewFootnote{default}

\usepackage{perpage}
\MakePerPage{footnoteB}
\renewcommand{\thefootnoteB}{\emph{\alph{footnoteB}}}


Most of the time it works fine. However, every so often when I'm compiling it will hit a footnoteB (not necessarily the same one every time) and come up with the 'counter too large' error, which shouldn't be possible for the reasons above. Sometimes I've been able to fix this by removing and then adding back in the perpage package, but the compiling seems a bit stuck this time around (after deleting aux files and trying again, etc.).

Why is it having this issue (of sometimes trying to number continuously) despite the \MakePerPage in the preamble, and how can I get it back on track?

In the first run it is not known, on which pages the footnotes go. Thus it might happen, that a footnote exceeds the 26 letters. You can try package alphalph to allow higher values for the footnote counter:
\usepackage{alphalph}