我对脚注的定位有问题。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage[left=1.8cm,right=1.8cm,top=1.8cm,bottom=1.8cm]{geometry}
\title{test footnote}
\author{Tony}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyfoot{}
\renewcommand{\headrulewidth}{0.3mm}
\renewcommand{\footrulewidth}{0.3mm}
\fancyfoot[R]{\thepage}
\begin{document}
\maketitle
\newpage
\section{Introduction}
\begin{flushleft}
test\footnote{voir plus bas}
\end{flushleft}
\end{document}
我想将脚注放在页脚内,就像我可以写的那样
\fancyfoot[L]{...}
我试过 :
\fancyfoot[L]{\tiny\insert\footins}
遗憾的是,此命令不起作用。我该如何修复?
答案1
只是为了好玩:
\myfootnote
使用相同的计数器和\footnotemark
as \footnote
,它仍能正常工作。它不会检查最后一个脚注是否确实在页面上,也不会检查注释是否适合底部边距。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage[left=1.8cm,right=1.8cm,top=1.8cm,bottom=1.8cm]{geometry}
\title{test footnote}
\author{Tony}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyfoot{}
\renewcommand{\headrulewidth}{0.3mm}
\renewcommand{\footrulewidth}{0.3mm}
\fancyfoot[R]{\thepage}
\newsavebox{\myfootins}
\newcommand{\myfootnote}[1]{\footnotemark\myfootnotetext{#1}}
\makeatletter
\newcommand{\myfootnotetext}[1]{\setbox\myfootins=\vbox{%
\unvbox\myfootins
\normalfont\footnotesize
\interlinepenalty\interfootnotelinepenalty
\splittopskip\footnotesep
\splitmaxdepth \dp\strutbox \floatingpenalty \@MM% ???
\hsize\columnwidth \@parboxrestore
\makebox[1.8em][r]{\textsuperscript{\thefootnote}}#1}%
}
\makeatother
\AddToHook{shipout/background}{\ifvoid\myfootins\else
\setlength{\dimen1}%
{\dimexpr 1in+\topmargin+\headheight+\headsep+\textheight+\footskip+\ht\myfootins-\ht\strutbox}%
\ifodd\value{page}\relax
\setlength{\dimen0}{\dimexpr 1in+\oddsidemargin}%
\else
\setlength{\dimen0}{\dimexpr 1in+\evensidemargin}%
\fi
\put(\dimen0,-\dimen1){\box\myfootins}%
\fi}
\begin{document}
\maketitle
\newpage
\section{Introduction}
test\myfootnote{voir plus bas}
\end{document}