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

问题描述

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

代码

 \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}

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

enter image description here

解决方法

建议我发表我的评论作为答案:

这个矩形标志着证明(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.
    

给你这个:

enter image description here

,

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

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

Q.E.D.符号会自动放置在每个证明的末尾。 ... 封闭式(默认)和开放式表单分别以 \IEEEQEDclosed\IEEEQEDopen 形式提供。要将默认值从封闭更改为开放(某些期刊和/或作者更喜欢开放形式),只需根据需要重新定义 \IEEEQED

\renewcommand{\IEEEQED}{\IEEEQEDopen}

同理,添加

\renewcommand{\IEEEQED}{}

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

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