不使用 xpatch 縮排“Proof”一詞?

不使用 xpatch 縮排“Proof”一詞?

我不知道如何解決這個問題。我需要在 amsthm 的證明環境中縮排「證明」一詞,而不使用 xpatch(xpatch 在這裡描述在 amsthm 的環境證明中縮排「Proof」一詞)。

我想避免使用任何補丁,因為它們將來可能會停止工作。我只想使用 amsthm 包來做到這一點。

這是最低工作代碼:

\documentclass[12pt,a4paper]{book}
\usepackage{amsthm}
\usepackage{indentfirst}
\usepackage{lipsum} 

\newtheoremstyle{sltheorem}
{2pt}                % Space above
{-2pt}                % Space below
{\it}        % Theorem body font % (default is "\upshape")
{17pt}                % Indent amount
{\scshape}       % Theorem head font % (default is \mdseries)
{.}               % Punctuation after theorem head % default: no punctuation
{ }               % Space after theorem head
{Theorem \thetheorem}                % Theorem head spec
\theoremstyle{sltheorem}
\newtheorem{theorem}{Theorem}[chapter]

\begin{document}

\chapter{one}
\lipsum[2]

\begin{theorem}
\lipsum[2]
\end{theorem}

\begin{proof}
\lipsum[2]
\end{proof}

\end{document}

相關內容