新的不等于符号

新的不等于符号

你能帮我画斜线符号吗?

\draw[fill=black,rounded corners=0.17pt] %(?,?) rectangle ++(?,?); 在此处输入图片描述

\documentclass{beamer}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{tgheros}
\usepackage{mathastext}
\usepackage{tikz}
%
\newcommand{\mynotequalsymbol}{      
\hspace{1.1mm}\tikz[baseline]{
  %
  \draw[fill=black,rounded corners=0.17pt]
  (1.1,0.16) rectangle ++(0.22,0.01);
  %
  \draw[fill=black,rounded corners=0.17pt]
  (1.1,0.09) rectangle ++(0.22,0.01);
  %
  %\draw[fill=black,rounded corners=0.17pt]
  %(?,?) rectangle ++(?,?);%
}\hspace{1.1mm}}
%
\newcommand{\myneq}{\mynotequalsymbol}
%
\begin{document}
\begin{frame}
$$2 \myneq 3$$
\end{frame}

\end{document}

答案1

rectangle仅用于绘制矩形(具有垂直和水平边) - 您误用它来绘制重要的线。

\documentclass{beamer}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{tgheros}
\usepackage{mathastext}
\usepackage{tikz}
%
\newcommand{\mynotequalsymbol}{      
\hspace{1.1mm}\tikz[baseline, line width=0.7 pt, line cap=round]{
  \draw (1.1,0.16) -- ++(0.21,0);
  \draw (1.1,0.09) -- ++(0.21,0);
  \draw (1.15,0.05) -- ++(0.12,0.15);
}\hspace{1.1mm}}
%
\newcommand{\myneq}{\mynotequalsymbol}
%
\begin{document}
\begin{frame}
$$2 \myneq 3$$
\end{frame}
\end{document}

2 不相等 3

相关内容