在 ntheorem 证明中替换(并打印)\qedsymbol
我正在尝试使用 ntheorem 来完成证明,但遇到一些问题,因为无法在枚举组之后替换 \qedsymbol 以及在align* 组末尾,未打印 \qed 符号。
\documentclass[a4paper,11pt]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[english]{babel}
\usepackage{amssymb} % Conjunto de símbolos matemáticos
%\usepackage{amsthm} % Formato para enunciados y demostraciones
\usepackage{amsmath}
\usepackage{enumitem}
%
\usepackage[amsthm,thmmarks]{ntheorem}
%\usepackage[standard]{ntheorem}
%
\qedsymbol{$\blacksquare$}
\renewcommand\qedsymbol{$\blacksquare$}
%
\begin{document}
\chapter*{Preface}
$\blacksquare$ \\
Lorem ipsum dolor sit amet, consectetur adipiscing elit
\begin{proof}
\begin{enumerate}
\item item 1
\item item 2
\item item 3
\end{enumerate}
\end{proof}
%
%
\begin{proof}
\begin{align*}
x+y &= z + k\\
&= z + 2k
\end{align*}
\end{proof}
\end{document}
I'm trying to use ntheorem to complete proofs, but having some problems because it has been not possible to replace the \qedsymbol after an enumerate group and at the end of an align* group, the \qed symbol has been not printed.
\documentclass[a4paper,11pt]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[english]{babel}
\usepackage{amssymb} % Conjunto de símbolos matemáticos
%\usepackage{amsthm} % Formato para enunciados y demostraciones
\usepackage{amsmath}
\usepackage{enumitem}
%
\usepackage[amsthm,thmmarks]{ntheorem}
%\usepackage[standard]{ntheorem}
%
\qedsymbol{$\blacksquare$}
\renewcommand\qedsymbol{$\blacksquare$}
%
\begin{document}
\chapter*{Preface}
$\blacksquare$ \\
Lorem ipsum dolor sit amet, consectetur adipiscing elit
\begin{proof}
\begin{enumerate}
\item item 1
\item item 2
\item item 3
\end{enumerate}
\end{proof}
%
%
\begin{proof}
\begin{align*}
x+y &= z + k\\
&= z + 2k
\end{align*}
\end{proof}
\end{document}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
\gdef\proofSymbol{\ensuremath{\blacksquare}} 更改 qed 符号
对于
align
环境:您缺少amsmath
选项ntheorem
包的You can change the qed symbol with
\gdef\proofSymbol{\ensuremath{\blacksquare}}
as for the
align
environment: you are missing theamsmath
option for thentheorem
package