原文在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>
注意红色部分