分页符处的 ntheorem 和 hyperref

分页符处的 ntheorem 和 hyperref

似乎当一个定理恰好出现在新页面的开头时,hyperref 和 theorem 就不能很好地协同工作。单击指向此类定理的超链接会导致跳转到上一页的末尾。

amsthm 似乎无需任何额外调整即可正常工作。手动 \clearpage 命令似乎可以作为 ntheorem 的肮脏修复。显然,这是一个非常脆弱的解决方案。有没有更好的方法可以解决这个问题?

这是我的 MWE:

\documentclass{article}
\usepackage{lipsum}
\usepackage[hyperref]{ntheorem} % leads to wrong hyperlink positions
%\usepackage{amsthm} % works fine
\usepackage{hyperref}
\newtheorem{testthm}{Test Theorem}
\begin{document}
\lipsum[1-5]
\begin{testthm} \label{test}
    \lipsum[1]
\end{testthm}
Works with amsthm, but not with ntheorem: \ref{test}
\end{document}

相关内容