Text Formattingfootnotes numbered like numbers

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Leo__
Posts: 28
Joined: Thu Oct 28, 2010 4:33 pm

footnotes numbered like numbers

Post by Leo__ »

I have a fixed set of symbols for footnotes and more footnotes than symbols.
Instead of doubling the symbols in the next footnotes, I would like to have a number system based on the fixed set of symbols:

If say !,@,#, ..., * is the list of symbols, after the footnote symbol * has been used, the next footnote should be marked with !!, then !@, !# and so on.
I thought that the alphalph package did that, but apparently it works only for (regular) letters.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

footnotes numbered like numbers

Post by rais »

Leo__ wrote: If say !,@,#, ..., * is the list of symbols, after the footnote symbol * has been used, the next footnote should be marked with !!, then !@, !# and so on.
That kinda sounds like you wish to jump from 9 (*) to 11 (!!). Perhaps you need a symbol for zero?
Anyway, without knowing how many symbols you've defined for your footnotes, an answer's destined to be rather theoretical, whatever that might be...

KR
Rainer
Leo__
Posts: 28
Joined: Thu Oct 28, 2010 4:33 pm

footnotes numbered like numbers

Post by Leo__ »

Agreed. If you had numbers then you would need a zero symbol to recover the usual ordering.
Regardless, if you have an alphabet a...z, then it is also natural to continue, after z, with aa, ab, ac, and so on (rather than aa, bb, cc, and so on). The alphalph package does this, but only if you start with the usual (i.e. latin) alphabet -- hence my question. I do not see how the length of the list of symbols is relevant. My list has 22 symbols. Of course I can enlarge the list of symbols by hand so that it fits my purpose (once I know the exact number of footnotes, chapter by chapter) but I was wondering whether there is a more elegant solution.
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

footnotes numbered like numbers

Post by rais »

Leo__ wrote: Regardless, if you have an alphabet a...z, then it is also natural to continue, after z, with aa, ab, ac, and so on (rather than aa, bb, cc, and so on).
right.
Leo__ wrote: I do not see how the length of the list of symbols is relevant.
Well, I figured it would be necessary to somehow tell the function-to-be, when/where to add the next symbol.
That was before I figured you could still use the alphalph package for your case and that its \newalphalph command can detect this `base' automatically by letting the function run into an otherwise counter error...

Assuming you have expanded \@fnsymbol, you can try

Code: Select all

\usepackage{alphalph}

\makeatletter
\newalphalph{\fnsymsym}{\@fnsymbol}{22}
\makeatother
\renewcommand*\thefootnote{\fnsymsym{\value{footnote}}}
that should do exactly what you want.

KR
Rainer
Post Reply