thmtools 包为定理提供了参数“continues”,如示例所示。
\documentclass{article}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage{hyperref}
\declaretheoremstyle[
headfont=\bfseries\itshape,
notefont=\bfseries\itshape
]{foostyle}
\declaretheorem{foo}[
style=foostyle
]
\begin{document}
\begin{foo}[Bold note]\label{foo}
This is the first part.
\end{foo}
\begin{foo}[continues=foo]
This is the second part.
\end{foo}
\end{document}
我想自定义这个“continues”参数。特别是我想“取消粗体”‘continuing from p. 1’(不删除斜体或其他属性)。我尝试修改\thmcontinues
定义为
\providecommand\thmcontinues[1]{%
\ifcsname hyperref\endcsname
\hyperref[#1]{continuing}
\else
continuing
\fi
from p.\,\pageref{#1}%
}
但是更新不起作用(至少以下情况):
\renewcommand\thmcontinues[1]{
\mdseries\thmcontinues{#1}
}
有什么解决办法吗?