使用 scshape 进行证明环境

使用 scshape 进行证明环境

我想

\newtheorem*{prf}{\normalfont\scshape Proof}

但末尾会自动出现 \qedsymbol(QED)。

答案1

以下是实现此目的的一种方法ntheorem

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fourier}
\usepackage[svgnames]{xcolor}

 \usepackage{amsmath, amssymb}
\usepackage[thmmarks, amsmath, thref]{ntheorem}

\theoremstyle{plain}
\theoremheaderfont{\upshape\bfseries}
\theoremseparator{.}
\theorembodyfont{\itshape}
\newtheorem{thm}{Theorem}


\theoremstyle{nonumberplain}
\theoremheaderfont{\scshape}
\theoremseparator{:}
\theorembodyfont{\upshape}
\theoremsymbol{\ensuremath{\color{Gainsboro}\blacksquare}}
\newtheorem{prf}{Proof}

\begin{document}

\begin{thm}\label{th-a}
This theorem is awesome!
\end{thm}

\begin{prf}
One-lined proof: Blahblah Blahblah Blahblah.
\end{prf}

\begin{prf}[Variant]
This is a very important proof.
\begin{align*}
    a & = b\\ c & = d.
\end{align*}
\end{prf}

\end{document} 

在此处输入图片描述

答案2

proof它可以在通常的环境中完成amsthm。它有一个可选参数来设置校样的名称,因此您也可以传递\normalfont\scshape给此参数来设置字体。

\documentclass[11pt]{article}
\usepackage{amsthm}
\newtheorem*{thm}{Theorem}
\newenvironment{prf}[1][Proof]{%
    \begin{proof}[\normalfont\scshape #1]%
}{%
    \end{proof}%
}
\begin{document}
\begin{thm}
A theorem.
\end{thm}
\begin{prf}
The proof.
\end{prf}
\end{document}

相关内容