![如何在 proof 环境中删除 align* 环境的 topsep?](https://linux22.com/image/477693/%E5%A6%82%E4%BD%95%E5%9C%A8%20proof%20%E7%8E%AF%E5%A2%83%E4%B8%AD%E5%88%A0%E9%99%A4%20align*%20%E7%8E%AF%E5%A2%83%E7%9A%84%20topsep%EF%BC%9F.png)
这是我的代码:
\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}