首页 > 解决方案 > Latex-引理在末尾显示黑色矩形

问题描述

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

代码:

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

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

在此处输入图像描述

标签: latextheorem

解决方案


正如建议的那样,我发表我的评论作为答案:

IEEEproof正如环境定义的那样,这个矩形标志着证明 (qed) 的结束。如果您不想使用这种证明格式,您可以将此部分设为常规段落并在需要时调整间距:

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

给你这个:

在此处输入图像描述


推荐阅读