如何在 KOMA 脚本的页脚中添加脚注?

如何在 KOMA 脚本的页脚中添加脚注?

我想在页脚中放置脚注,就像这样: 在此处输入图片描述

我的文章现在如下所示: 在此处输入图片描述

Frank Engelhardt 提供了一种方法来获取此信息,但需要手动编号。页脚中的脚注

您能提供更好的方法吗?提前致谢

测试代码:

\documentclass[%
    a4paper,            
    oneside,        
    12pt,               
    onecolumn,          
    openright,          
    openany,            
    parskip=full*,      
    headsepline,        
    footsepline,        
    bibliography=totoc,
    ]{scrbook}
\usepackage[T1]{fontenc}

\usepackage[utf8]{inputenc}

\usepackage[
    left=30mm,
    right=20mm,
    top=40mm,
    footskip=12mm,
    bottom=35mm
    ]{geometry}

\usepackage{scrpage2}
\pagestyle{scrheadings} 
\renewcommand*\chapterpagestyle{scrheadings}
\renewcommand*\sectionmark[1]{\markright{\makebox[0.8cm][l]{\thesection}\ #1}} 
\clearscrheadings
\ohead{\rightmark}
\cfoot{}
\ofoot{\vspace{-2em}\pagemark}



\begin{document}

\chapter{Test Chapter}

StackExchange   \footnote{Stack Exchange is a network of question-and-answer websites on topics in varied fields}

\end{document}

答案1

我永远不会这样做,但如果你坚持的话,你可以破解类似的东西:

\documentclass[%
    a4paper,% not needed because default       
    oneside,        
    12pt,               
    onecolumn,          
    openright,% nonsense after oneside or before openay
    openany,% nonsense after onecolumn
    parskip=full*,      
    headsepline,        
    footsepline,        
    bibliography=totoc,
]{scrbook}
\usepackage[T1]{fontenc}

\usepackage[utf8]{inputenc}

\usepackage[
    left=30mm,
    right=20mm,
    top=40mm,
    footskip=12mm,
    bottom=35mm
    ]{geometry}

\usepackage{scrlayer-scrpage}
\renewcommand*\chapterpagestyle{scrheadings}% not recommended
\renewcommand*\sectionmark[1]{\markright{\makebox[0.8cm][l]{\thesection}\ #1}} 
\clearscrheadings
\ohead{\rightmark}
\cfoot{}
\ofoot{\pagemark}

\usepackage{blindtext}

\ifoot{\showfooternotes}
\newcounter{footernote}
\newcommand*{\footernotes}{}
\makeatletter
\newcommand*{\footernote}[1]{%
  \stepcounter{footernote}%
  \textsuperscript{\thefooternote}%
  \edef\reserved@a{\thefooternote}%
  \expandafter\g@addto@macro\expandafter\footernotes\expandafter{%
    \reserved@a.\enskip #1\par
  }%
}
\makeatother
\newcommand*{\showfooternotes}{%
  \normalfont\footnotesize
  \smash{\parbox[t]{.9\linewidth}{\footernotes}%
  \gdef\footernotes{}}\par
}

\begin{document}

\chapter{Test Chapter}

StackExchange   \footernote{Stack Exchange is a network of question-and-answer
  websites on topics in varied fields}

\chapter{Problems}

StackExchange   \footernote{Stack Exchange is a network of question-and-answer
  websites on topics in varied fields}

TeX.StackExchange \footernote{TeX.StackExchange is the \TeX{} section of Stack
  Exchange}

Footnotes \footernote{Hacking something like footnotes into the page footer
  can be very problematic, as you can see here: \blindtext}

\end{document}

第二页的问题

有了这些非常简单的建议,可能会产生其他不良影响,例如在脚注标记之前的页面上出现脚注。再说一遍:我永远不会使用它。

相关内容