[Tex/LaTex] Where is \@makefntext defined

latex-basemacros

I was studying how footnotes come about in LaTeX and what processes exactly run behind the curtain, and noticed \@makefntext. But in fact, in latex.ltx there are only two occurences of this macro where it gets called and no actual definition can be found. Does it implicitly get defined by some wrapper command? Or does it happen in another file? Or even both?

Best Answer

With a little help of grep: The standard classes define this command:

For example article.cls

Within \maketitle:

\long\def\@makefntext##1{\parindent 1em\noindent
        \hb@xt@1.8em{%
            \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%

Later on in the class:

\newcommand\@makefntext[1]{%
    \parindent 1em%
    \noindent
    \hb@xt@1.8em{\hss\@makefnmark}#1}

Inletter.cls

  \long\def\@makefntext#1{%
    \noindent
    \hangindent 5\p@
    \hb@xt@5\p@{\hss\@makefnmark}#1}

The definitions from book and report classes are equal to article.cls, for the KOMA classes the definition is somewhat different.

Related Question