我尝试让 QED 标记只出现在证明的末尾,ntheorem
但遇到了几个问题。首先,使用amsthm
with 选项ntheorem
不起作用:
\documentclass[a4paper, twosided]{article}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage[standard, amsthm, amsmath]{ntheorem}
\begin{document}
\begin{Theorem}
A really insightful theorem.
\end{Theorem}
\begin{proof}~\\
$\forall g \in G \ldots$
\end{proof}
\end{document}
出现以下错误:
! Package ntheorem Error: Theorem style plain already defined.
! Latex Error: Command \proof already defined.Or name \end... illegal
当我从选项中删除\usepackage{amsthm}
和时,它可以正常构建,但在证明结束时仍然没有 QED 标记。amsthm
ntheorem
使用thmmarks
带有的选项ntheorem
也会将 QED 符号放在定理的末尾,这是我不想要的。
答案1
该amsthm
选项与包的定理布局命令兼容amsthm
,但不要同时使用这两个包。该amsthm
选项与该选项不兼容standard
。qed 符号由该选项激活thmmarks
。此外,我建议加载该thref
选项以激活扩展引用功能。
\documentclass[a4paper, twosided]{article}
\usepackage{amsmath}
\usepackage[standard, thref, amsmath, thmmarks]{ntheorem}%
\begin{document}
\begin{Theorem}
A really insightful theorem.
\end{Theorem}
\begin{proof}~\\
$\forall g \in G \ldots$
\end{proof}
\end{document}