如何去除证明中的黑色方块?

如何去除证明中的黑色方块?

我正在使用日记帐模板。它要求删除校样末尾的黑色方块。我试过了,但没有成功。你能帮我把它去掉吗

链接是https://www.sharelatex.com/project/57f24aca9c3e08834f150c41

短代码是

\documentclass[twocolumn]{el-author}
\usepackage{amsthm}

\renewcommand{\qedsymbol}{}


\begin{document}

\title{Instructions and example template for \LaTeX{} submissions to \emph{Electronics Letters}}

\author{J. Smith and A. N. Other}

\abstract{This document describes how to use the el-author.cls file and how to format your \LaTeX submissions
correctly}

\maketitle

\section{Introduction}

This is Lemma and prof
\begin{lemma} \label{lemma1}
This is lemma
\end{lemma}
\begin{proof}
This is proof
\end{proof}

\end{document}

更新:我发现只有一个解决方案

\usepackage{amsthm,amssymb}
\makeatletter
\newenvironment{myproof}[1][\proofname]{\par
    \normalfont \topsep6\p@\@plus6\p@\relax
    \trivlist
    \item[\hskip\labelsep
    \itshape
    #1\@addpunct{.}]\ignorespaces
}{%
\endtrivlist\@endpefalse
}
\makeatother

然后更改proofmyproof

答案1

该类重新定义proof为使用$\blacksquare$而不是\qedsymbol,因此对后者的重新定义是无用的。

如果你无法编辑类文件,你可以执行以下操作

\documentclass[twocolumn]{el-author}
\usepackage{amsthm}
\usepackage{xpatch}

\AtBeginDocument{\xpatchcmd\proof{$\blacksquare$}{\qedsymbol}{}{}}
%\renewcommand{\qedsymbol}{$\blacksquare$} % as the class wants
\renewcommand{\qedsymbol}{}


\begin{document}
\title{Instructions and example template for \LaTeX{} submissions to \emph{Electronics Letters}}

\author{J. Smith and A. N. Other}

\abstract{This document describes how to use the el-author.cls file and 
how to format your \LaTeX submissions correctly}

\maketitle

\section{Introduction}

This is Lemma and prof
\begin{lemma} \label{lemma1}
This is lemma
\end{lemma}
\begin{proof}
This is proof
\end{proof}

\end{document}

在此处输入图片描述

答案2

把以下内容begin{document}(不在序言中)似乎有效。我不知道为什么。

....
\begin{document}

\makeatletter
\renewenvironment{proof}[1][\proofname]{\par
  %\pushQED{\hfill\blacksquare}%
  \normalfont \topsep6\p@\@plus6\p@\relax
  \trivlist
  \item[\hskip\labelsep
        \itshape
    #1\@addpunct{:}]\ignorespaces
}{%
  %\popQED
  \endtrivlist\@endpefalse
}
\makeatother

\begin{theorem}...

我从类文件中复制了上述内容并注释掉了 \pushQED​​ 和 \popQED。

相关内容