这是我的代码:
\documentclass{article}
\usepackage{amsthm,amsmath}
\begin{document}
\begin{proof}
\begin{align*}
F(x) & = P(X\le x)\\
& = P(g^{-1}(X)\le g^{-1}(x))
\end{align*}
\end{proof}
\begin{proof}
I want the formular to show on the same line with \textit{proof.}
\begin{align*}
F(x) & = P(X\le x)\\
& = P(g^{-1}(X)\le g^{-1}(x))
\end{align*}
\end{proof}
\end{document}
我希望公式显示在“证明”一词所在的同一行上。希望得到您的帮助,并提前致谢。
答案1
答案2
您可以考虑以下ntheorem
套餐:
\documentclass{article}
\usepackage{amsmath,amssymb}
\usepackage[amsmath,thmmarks]{ntheorem}
\begingroup
\theoremstyle{nonumberplain}
\theoremheaderfont{\itshape}
\theorembodyfont{\normalfont}
\theoremsymbol{\mbox{$\Box$}}
\newtheorem{proof}{Proof}
\endgroup
\begin{document}
\begin{proof}
The proof of this theorem is very simple:
\begin{align*}
1 + 1 & = 2 \\
10 + 10 & = 20
\end{align*}
\end{proof}
\end{document}