当脚注以公式结尾时,revtex4-1 中的问题

当脚注以公式结尾时,revtex4-1 中的问题

RevTeX4-1 自动确保每个脚注(或尾注)末尾都出现一个句号。在大多数情况下,这不会造成任何问题。但是当尾注以公式结尾时,RevTeX 会忽略我在公式末尾输入的句号,并在公式下方的行中添加一个自己的句号。结果是丑陋的错误的!这是我的 MWE。

\documentclass[aps,prl,12pt,amsmath]{revtex4-1}
% I'm using the options aps, prl, and 12pt just to suppress
% some warnings; they do not affect the problem illustrated.

\begin{document}

This text includes an endnote that ends with an equation.%
~\footnote{Einstein derived the equation
  \[
    E = m c^2.
  \]
}

\end{document}

帮助!

答案1

让人误revtex以为有一个句号的技巧:

\documentclass[aps,prl,12pt,amsmath]{revtex4-1}
% I'm using the options aps, prl, and 12pt just to suppress
% some warnings; they do not affect the problem illustrated.

\newcommand\trick[1]{}

\begin{document}

This text includes an endnote that ends with an equation.%
~\footnote{%
  \unexpanded{\makeatletter\let\@bibitemShut\relax\makeatother}%
  Einstein derived the equation
  \[
    E = m c^2.
  \]\protect\trick.
}
And another footnote.~\footnote{What's that?}
\end{document}

但应避免在脚注中显示方程式。

相关内容