![更改定理和证明环境的格式](https://linux22.com/image/422206/%E6%9B%B4%E6%94%B9%E5%AE%9A%E7%90%86%E5%92%8C%E8%AF%81%E6%98%8E%E7%8E%AF%E5%A2%83%E7%9A%84%E6%A0%BC%E5%BC%8F.png)
我直接在代码中提出问题。
\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}