![ntheorem、align 和 \qedhere 的问题](https://linux22.com/image/269681/ntheorem%E3%80%81align%20%E5%92%8C%20%5Cqedhere%20%E7%9A%84%E9%97%AE%E9%A2%98.png)
我想使用align
证明里面的环境ntheorem
,但是我遇到了麻烦\qedhere
。
我受此指导(https://tex.stackexchange.com/a/2280/30325) 代码,并替换\[
为align
- 请考虑这一点:
\documentclass{article}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage[amsmath,amsthm,thmmarks]{ntheorem}
\begin{document}
\begin{proof}
\begin{align*}
f(x) & = 1 \\
& = \frac{22222222222222222222222222222222222222222222222}{22222222222222222222222222222222222222222222222}
\end{align*}
\end{proof}
\begin{proof}
\[\frac{22222222222222222222222222222222222222222222222}{22222222222222222222222222222222222222222222222}\]
\end{proof}
\end{document}
这使
示例中align
,\qedhere
位置有点太高。如何解决?
答案1
如果可以接受手动修正...
\documentclass{article}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage[amsmath,amsthm,thmmarks]{ntheorem}
\begin{document}
\begin{proof}
\begin{align*}
f(x) & = 1 \\
& = \frac{22222222222222222222222222222222222222222222222}{22222222222222222222222222222222222222222222222}\\[-\baselineskip]
\end{align*}
\end{proof}
\begin{proof}
\[f(x)=\frac{22222222222222222222222222222222222222222222222}{22222222222222222222222222222222222222222222222}\]
\end{proof}
\end{document}