![从 thmtools 包中自定义“continues”或 \thmcontinues](https://linux22.com/image/428217/%E4%BB%8E%20thmtools%20%E5%8C%85%E4%B8%AD%E8%87%AA%E5%AE%9A%E4%B9%89%E2%80%9Ccontinues%E2%80%9D%E6%88%96%20%5Cthmcontinues.png)
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}
}
有什么解决办法吗?