Ich will
\newtheorem*{prf}{\normalfont\scshape Proof}
aber mit einem automatischen \qed-Symbol am Ende (QED).
Antwort1
So können Sie dies tun 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}
Antwort2
proof
Dies kann mit der üblichen Umgebung von erfolgen amsthm
. Es verfügt über ein optionales Argument zum Festlegen des Namens des Proofs, sodass Sie \normalfont\scshape
dieses Argument auch zum Festlegen der Schriftart übergeben können.
\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}