[Tex/LaTex] Footception: Footnote within a footnote within a footnote

bigfootfootnotesnesting

Inspired by the question Footnote to a footnote (where it was asked if one could have a footnote reference in a footnote), I'm asking something a bit more complex. Before I ask though, let me prefence the question by stating that I'm not looking for the standard tyopgraphical practice, but rather asking if something is possible for my own sake. How can I put a footnote section within another footnote section, i.e.

This is the outer block of[1] text[2].

---- % Begin first footnote (scriptsize)
[1] Here we start the first[*] footnote to main.
[2] Here we start the second footnote to main.

 ---- % Begin second footnote (even smaller then scriptsize)
 [*] Here is the first[+] footnote[-] to the first footnote block.

   ---- % Begin third footnote (even smaller then the last one)
   [+] Here is the first[a] footnote to the second[b] footnote block.
   [-] Here is the second footnote to the second[c] footnote block.

etc … I'm looking for footnotes all the way down, or at least as deep as I'd like to specify.

Best Answer

The packages bigfoot and manyfoot have this functionality. See this example from the bigfoot documentation:

enter image description here

Unfortunately, the customization of footnotes in bigfoot is not well documented (David calls this "expert options" and suggests reading the code). Here is an example:

\documentclass{article}
\usepackage[ruled]{bigfoot}
\DeclareNewFootnote{A}
\DeclareNewFootnote{B}[alph]
\MakeSortedPerPage{footnoteB}
\makeatletter
\let\@makefntext@orig\@makefntext
\FootnoteSpecific{B}\def\@makefntext{\@makefntext@orig\tiny}
\makeatother
\begin{document}

Text\footnoteA{Footnote\footnoteB{Another footnote}}.  More
text\footnoteA{This footnote goes to the first level}\footnoteB{And
  this to the second one}.  

\end{document}

enter image description here

Related Question