나는 원해요
\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}