LaTeX forum ⇒ Generalalphalph package

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

alphalph package

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

Hello,

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

  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}
  6.  
  7. \usepackage{alphalph}
  8.  
  9. \newcounter{footnoteA}
  10. \newcommand{\footnoteA}{%
  11. \stepcounter{footnoteA}%
  12. \Footnotemark\thefootnoteA \FootnotetextA{}}
  13.  
  14. \newcounter{footnoteB}
  15. \newcommand{\footnoteB}{%
  16. \stepcounter{footnoteB}%
  17. \Footnotemark\thefootnoteB \FootnotetextB\thefootnoteB}
  18. \renewcommand{\thefootnoteB}{\alphalph{footnoteB}}
  19.  
  20. \newcounter{footnoteC}
  21. \newcommand{\footnoteC}{%
  22. \stepcounter{footnoteC}%
  23. \Footnotemark\thefootnoteC \FootnotetextC\thefootnoteC}
  24. \renewcommand{\thefootnoteC}{(\roman{footnoteC})}
  25.  
  26.  
  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:

  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

Tags:

User avatar
cgnieder
Site Moderator
Posts: 1986
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:

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.:
    \alphalph{\value{page}}

This means replace
  1. \renewcommand{\thefootnoteB}{\alphalph{footnoteB}}

with
  1. \renewcommand{\thefootnoteB}{\alphalph{\value{footnoteB}}}
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim


Return to “General”

Who is online

Users browsing this forum: Bing [Bot] and 5 guests