不等于符号命令

不等于符号命令

您能纠正我不等于代码中的错误吗?

\documentclass{beamer}
\usepackage{tgheros}
\usepackage{mathastext}
\usepackage{MnSymbol}
%
\makeatletter
\mathchardef\standardnotequals=\mathcode`≠
\DeclareRobustCommand{\tauyenotequals}{%
  \mathbin{\mathpalette\tauyeco@notequals\relax}%
}
\newcommand{\tauyeco@notequals}[2]{
  \raisebox{-0.05\height}{\scalebox{1.6}{\hspace{-0.1mm}$\m@th#1\standardnotequals$}}%
}
\begingroup\lccode`~=`≠ \lowercase{\endgroup\let~}\tauyeconotequals
\AtBeginDocument{\mathcode`\neq="8000 }
\makeatother
%
%
\begin{document}
\begin{frame}
\[x\neq y\]
\end{frame}
\end{document}

相关内容