Koma-Script – Restoring Default \raggedbottom Footnote Behavior in Koma-Script Classes

footnoteskoma-scriptvertical alignment

Using the standard LaTeX classes (article,…), footnotes are set directly below the text if the page is in \raggedbottom instead of \flushbottom mode. The KOMA script classes change this behaviour, i.e. the footnote is placed at the very bottom of the page even if the page contains only a few lines of text.

Here is a MWE for LaTeX article:

\documentclass{article}
\usepackage[a6paper,margin=1cm,bottom=2cm]{geometry}
\raggedbottom
\title{\LaTeX{} article}
\begin{document}
    \maketitle
    A very short text.\footnote{A footnote.}
    \pagebreak
\end{document}

and here for KOMA-Script scrartcl:

\documentclass{scrartcl}
\usepackage[a6paper,margin=1cm,bottom=2cm]{geometry}
\raggedbottom
\title{KOMA script scrartcl}
\begin{document}
    \maketitle
    A very short text.\footnote{A footnote.}
    \pagebreak
\end{document}

MWE LaTeX article
MWE KOMA Script scrartcl

Is it possible to restore the default behaviour (i.e. footnotes right below the text) without breaking the other footnote-related Koma script commands like \deffootnote, \deffootnotemark and \setfootnoterule?

Best Answer

With the KOMA-Script classes, the definition of \footnoterule includes a stretchable space of 0pt plus 0.05fil. Remove this additional space.

\documentclass{scrartcl}
\usepackage[a6paper,margin=1cm,bottom=2cm]{geometry}
\raggedbottom
\usepackage{etoolbox}
\makeatletter
\patchcmd{\footnoterule}{\vskip \z@ \@plus .05fil}{}{}{}
\makeatother
\title{KOMA script scrartcl}
\begin{document}
    \maketitle
    A very short text.\footnote{A footnote.}
    \pagebreak
\end{document}

enter image description here

Related Question