LaTeX forum ⇒ Generalalphalph package

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

alphalph package

Postby Leo__ » Tue Apr 17, 2018 11:29 am


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

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass[11pt,b5paper]{book}
  2. \usepackage[ruled]{manyfoot}
  3. \newfootnote{A} % Note de l'auteur
  4. \newfootnote{B} % Note de l'editeur (complexe)
  5. \newfootnote{C} % Note de l'editeur (simple}
  7. \usepackage{alphalph}
  9. \newcounter{footnoteA}
  10. \newcommand{\footnoteA}{%
  11. \stepcounter{footnoteA}%
  12. \Footnotemark\thefootnoteA \FootnotetextA{}}
  14. \newcounter{footnoteB}
  15. \newcommand{\footnoteB}{%
  16. \stepcounter{footnoteB}%
  17. \Footnotemark\thefootnoteB \FootnotetextB\thefootnoteB}
  18. \renewcommand{\thefootnoteB}{\alphalph{footnoteB}}
  20. \newcounter{footnoteC}
  21. \newcommand{\footnoteC}{%
  22. \stepcounter{footnoteC}%
  23. \Footnotemark\thefootnoteC \FootnotetextC\thefootnoteC}
  24. \renewcommand{\thefootnoteC}{(\roman{footnoteC})}
  27. \begin{document}
  28. Just a try\footnoteA{Author's note.}. Just a try\footnoteB{Simple editor's note}. Just a try\footnoteC{Complex note.}.
  29. \end{document}

The error message I got is:

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. ! Missing number, treated as zero.
  2. to be read again>
  3. f
  4. l.68 ...oteA{Author's note.}. Just a try\footnoteB
  5. {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.
Reason: added code markup


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

Postby cgnieder » Wed Apr 18, 2018 10:00 am

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.:

This means replace
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \renewcommand{\thefootnoteB}{\alphalph{footnoteB}}

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \renewcommand{\thefootnoteB}{\alphalph{\value{footnoteB}}}
site moderator & package author

Return to “General”

Who is online

Users browsing this forum: No registered users and 2 guests