Latex- Lemma 在末尾显示黑色矩形

Latex- Lemma shows black rectangle at the end

我的乳胶文件有问题。当我使用下面的代码使用引理时,它会在每个引理的末尾显示一个黑色的小矩形。

代码:

 \documentclass{IEEEtran}
    \usepackage{eucal}
    \usepackage{algorithm,algorithmic}
    \begin{document}
    
    \section{ Analysis}
    
    This section discusses essential proofs of some of the properties explained in the earlier,\
    \newtheorem{theorem}{\textbf{Lemma}}
    
    \begin{theorem}
        Lemma statement 1
    \end{theorem} 
    
    \begin{IEEEproof}
        The body of the lemma.The body of the lemma. The body of the lemma. The body of the lemma.  The body of the lemma.The body of the lemma.The body of the lemma. The body of the lemma.   The body of the lemma.The body of the lemma.The body of the lemma. The body of the lemma.
    \end{IEEEproof}
    
    \newtheorem{theorem2}{\textbf{Lemma}}
    \begin{theorem}
        Lemma statement 2
    \end{theorem} 
    \begin{IEEEproof}
        The body of the lemma. The body of the lemma. The body of the lemma. The body of the lemma. The body of the lemma. The body of the lemma. The body of the lemma. The body of the lemma. The body of the lemma.
    \end{IEEEproof}
    
    \end{document}

上面的代码显示了下面的输出,

我正在阅读软件包 IEEEtran available at this CTAN url 的 pdf 指南。

第 XII A 部分,证明,第 15 页,明确指出:

The Q.E.D. symbol is automatically placed at the end of each proof. ... Both the closed (default) and open forms are provided as \IEEEQEDclosed and \IEEEQEDopen, respectively. To change the default from closed to open (some journals and/or authors prefer the open form), just redefine \IEEEQED as desired:

\renewcommand{\IEEEQED}{\IEEEQEDopen}

同理,添加

\renewcommand{\IEEEQED}{}

将第二个参数留空,在序言的末尾,将使完整或空白的方块从每个证明的最后一行的右端消失。

希望这对您有所帮助,2021 年快乐!!

按照我的建议 post 我的评论作为答案:

此矩形标记证明的结尾 (q.e.d),如 IEEEproof 环境所定义。如果您不想使用这种证明格式,您可以将这部分设为常规段落并根据需要调整间距:

    \begin{theorem}
        Lemma statement 1
    \end{theorem} 
    
\textit{Proof:}
        The body of the lemma.The body of the lemma. The body of the lemma. The body of the lemma.  The body of the lemma.The body of the lemma.The body of the lemma. The body of the lemma.   The body of the lemma.The body of the lemma.The body of the lemma. The body of the lemma.
    

给你这个: