更改定理和证明环境的格式

更改定理和证明环境的格式

我直接在代码中提出问题。

       \documentclass[
          11pt,
        ]{scrbook} % KOMA-Script book
        
        \usepackage[T1]{fontenc}
        \usepackage[linedheaders,parts,pdfspacing]{classicthesis} % ,manychapters
        \usepackage[bitstream-charter]{mathdesign}
        \usepackage{bbding}
        \usepackage{amsthm}
        \usepackage{thmtools}
        
        \declaretheorem[
          style=plain,
          name=Theorem,    % How can I write a dot (".") after the number of the Theorem?
          ]{thm}
        \declaretheorem[
          style=plain,
          name=Lemma,
          numberlike=thm,
        ]{lem}
        \declaretheorem[
              style=plain,    % See below how the environment should behave
              name=Proof,
              numberlike=thm,
            ]{proof}
        
        
        \begin{document}
        \chapter{Title}
        \begin{thm}
        A proposition.
        \end{prop}
        \begin{lem}\label{L1}
        A lemma.
        \end{lem}
        \begin{thm}
        A theorem.
        \end{thm}
    
    \begin{proof}{Proof of Lemma~\ref{L1}}   % How can I get the proof environment such that 
%"Proof of Lemma 1" is written in the same style as Theorem 1 and lemma 1 before?
    A proof.
    \end{proof}
        
        \end{document}

答案1

我不确定您指的是“数字后面的点”什么,因为它出现了。

为了修改用于校样的标题中使用的字体,应该等待 AMS 发布amsthm带有承诺的钩子的新版本,或者对其进行修补。的存在thmtools使得补丁有点冒险,但相信我,它是有效的。

请注意,对于“命名证明”,您应该使用可选参数。

还请注意,多年来scrbook一直与 不和classicthesis,并且对后者正在使用的软件包的支持titlesec可能会在未经通知的情况下完全停止。最好使用book

\documentclass[11pt]{book}

\usepackage[T1]{fontenc}
\usepackage[linedheaders,parts,pdfspacing]{classicthesis}
\usepackage[bitstream-charter]{mathdesign}
\usepackage{bbding}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage{xpatch}

\declaretheorem[
  style=plain,
  name=Theorem,
]{thm}

\declaretheorem[
  style=plain,
  name=Lemma,
  numberlike=thm,
]{lem}

\makeatletter
%% unfortunately, thmtools juggles with \proof
\let\proof\thmt@original@proof
\xpatchcmd{\proof}{\itshape}{\bfseries}{}{}
\let\thmt@original@proof\proof
\makeatother


\begin{document}
\chapter{Title}

\begin{thm}
A proposition.
\end{thm}

\begin{lem}\label{L1}
A lemma.
\end{lem}

\begin{thm}
A theorem.
\end{thm}

\begin{proof}
A standard proof.
\end{proof}
    
\begin{proof}[Proof of Lemma~\ref{L1}]
A named proof.
\end{proof}

\end{document}

在此处输入图片描述

相关内容