Our document has footnotes ranging from 1 to more than 100. I would like to see the footnote numbers
- right-aligned to the footnote text
- the space that is used for the footnote number should be dynamically adjusted, depending on the number of digits of the footnotes that are present on a particular page.
- indent the text and the paragraph of a footnote identically
Sounds complicated, right? So here is an example: in case I have only one-digit footnotes on a page it should look like the following:
some text^4 and more text^5
-----------------
4 Foo bar
5 Bar Baz
If one and two digits are used it should look like the following:
some text^9 and more text^10
-----------------
9 Foo bar
10 Bar Baz
and so on.
Currently I use the deffootnote option as follows:
\documentclass{scrartcl}
\deffootnote{1.85em}{1.85em}{\thefootnotemark\hspace{0.5em}}
\usepackage{blindtext}% dummy text
\usepackage{hyperref}
\begin{document}
\setcounter{footnote}{6}
a\footnote{\blindtext}b\footnote{\blindtext}
\newpage
a\footnote{\blindtext}b\footnote{\blindtext}
\newpage
\setcounter{footnote}{98}
a\footnote{\blindtext}b\footnote{\blindtext}
\end{document}
But then I have to use a fixed width for all footnote numbers, i.e. a width which is compatible for the three-digit footnote numbers.