Generalalphalph package

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Leo__
Posts: 28
Joined: Thu Oct 28, 2010 4:33 pm

alphalph package

Post by Leo__ »

Hello,

I am writing a text with three sets of footnotes and using the alphalph package. Here is a MWE:

Code: Select all

\documentclass[11pt,b5paper]{book}
\usepackage[ruled]{manyfoot}
\newfootnote{A} % Note de l'auteur
\newfootnote{B} % Note de l'editeur (complexe)
\newfootnote{C} % Note de l'editeur (simple}

\usepackage{alphalph}

\newcounter{footnoteA}
\newcommand{\footnoteA}{%
\stepcounter{footnoteA}%
\Footnotemark\thefootnoteA \FootnotetextA{}}

\newcounter{footnoteB}
\newcommand{\footnoteB}{%
\stepcounter{footnoteB}%
\Footnotemark\thefootnoteB \FootnotetextB\thefootnoteB}
\renewcommand{\thefootnoteB}{\alphalph{footnoteB}}

\newcounter{footnoteC}
\newcommand{\footnoteC}{%
\stepcounter{footnoteC}%
\Footnotemark\thefootnoteC \FootnotetextC\thefootnoteC}
\renewcommand{\thefootnoteC}{(\roman{footnoteC})}


\begin{document}
Just a try\footnoteA{Author's note.}. Just a try\footnoteB{Simple editor's note}. Just a try\footnoteC{Complex note.}.
\end{document}
The error message I got is:

Code: Select all

! Missing number, treated as zero.
to be read again> 
                   f
l.68 ...oteA{Author's note.}. Just a try\footnoteB
                                                  {Simple editor's note}. Ju...
I assume that some kind of counter is missing for the footnoteB that relies on the alphalph package that is supposed to create footnotes of the form a,b,...,z, aa,ab, etc.

I also tried \alphalph{value{footnoteB}} instead of \alphalph{footnoteB}. It does not work.

Could anyone help ?
Last edited by cgnieder on Wed Apr 18, 2018 9:54 am, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

alphalph package

Post by cgnieder »

The alphalph manual wrote:The argument is a TeX number. Anything that would be accepted by \number is a valid argument:
  • explicite constants,
  • macros that expand to a number,
  • count registers, LaTeX counter can used via \value, e. g.:
    \alphalph{\value{page}}
This means replace

Code: Select all

\renewcommand{\thefootnoteB}{\alphalph{footnoteB}}
with

Code: Select all

\renewcommand{\thefootnoteB}{\alphalph{\value{footnoteB}}}
site moderator & package author
Post Reply