答案1
我怀疑脚注中方程式(或脚注中编号方程式)的特定计数器的实用性,但这里有一个快速的破解方法,通过劫持代码\footnote
并临时将\c@equation
和\theequation
宏设置为\c@footequation
和\thefootequation
,在一个组中。
\documentclass{article}
\usepackage{amsmath}
\usepackage{letltxmacro}
\usepackage{xparse}
\newcounter{footequation}[section]
\renewcommand{\thefootequation}{F.\arabic{footequation}}
\makeatletter
\LetLtxMacro\latex@@footnote\footnote
\RenewDocumentCommand{\footnote}{om}{%
\begingroup
\let\c@equation\c@footequation
\let\theequation\thefootequation
\IfValueTF{#1}{%
\latex@@footnote[#1]{#2}%
}{%
\latex@@footnote{#2}%
}%
\endgroup
}
\makeatother
\begin{document}
\begin{equation}
E=mc^{2} \label{foo}
\end{equation}
See \eqref{footeq}
Some text\footnote{\begin{equation}E=mc^{2}\label{footeq}\end{equation}}
\begin{equation}
c^{2}=a^{2} + b^{2} \label{pythagoras}
\end{equation}
Some text\footnote{\begin{equation} c^{2}=a^{2} + b^{2}\label{footpythagoras}\end{equation}}
\end{document}