Skip to content

Instantly share code, notes, and snippets.

@soypat
Last active August 29, 2020 01:16
Show Gist options
  • Save soypat/c3b29c29ba6465e734eeb6ad2898c8e9 to your computer and use it in GitHub Desktop.
Save soypat/c3b29c29ba6465e734eeb6ad2898c8e9 to your computer and use it in GitHub Desktop.
Symbol footnotes for LaTeX with no counter limit.
% Requires amsymb and amsmath
\usepackage{amsymb}
\makeatletter
\newcommand*{\myfnsymbolsingle}[1]{%
\ensuremath{%
\ifcase#1% 0
\or % 1
*%
\or % 2
\dagger
\or % 3
\ddagger
\or % 4
\mathsection
\or % 5
\mathparagraph
\or
\diamond
\or
\aleph
\or
\backepsilon
\or
\flat
\else % >= 7
\@ctrerr
\fi
}%
}
\makeatother
\newcommand*{\myfnsymbol}[1]{%
\myfnsymbolsingle{\value{#1}}%
}
% remove upper boundary by multiplying the symbols if needed
\usepackage{alphalph}
\newalphalph{\myfnsymbolmult}[mult]{\myfnsymbolsingle}{}
\renewcommand*{\thefootnote}{%
\myfnsymbolmult{\value{footnote}}%
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment