latex中使用proof证明时如何去掉QED(结尾的方括号)

来源:互联网 发布:pid算法的c语言实现 编辑:程序博客网 时间:2024/06/06 02:20

原文在here

举例说明吧

例1,

\documentclass{article}\usepackage{amsthm}\begin{document}\begin{proof}This has the QED symbol.\end{proof}\begin{proof}<span style="background-color: rgb(255, 0, 0);">\renewcommand{\qedsymbol}{}</span>This hasn't.\end{proof}\begin{proof}And this has it again.\end{proof}\end{document}

输出结果


例2:if you're using amsthm, you can do this:

<span style="color:#393318;background-color: rgba(255, 255, 255, 0.529412);">\documentclass{article}\usepackage{amsthm}\begin{document}\begin{proof}This has the QED symbol.\end{proof}\begin{proof}</span><strong style="background-color: rgb(204, 0, 0);">\let\qed\relax</strong><span style="color:#393318;background-color: rgba(255, 255, 255, 0.529412);">This hasn't.\end{proof}\begin{proof}And this has it again.\end{proof}\end{document}</span>
注意红色部分



0 0