LaTeX 符号“\rightarrow”用“\triangleq”表示,而“\leftarrow”用“\triangleq”表示

LaTeX 符号“\rightarrow”用“\triangleq”表示,而“\leftarrow”用“\triangleq”表示

我如何在 LaTeX 中创建这两个符号?

在此处输入图片描述

我正在读我的旧帖但我不能,我会像 Steven B. Segletes 回答的那样

答案1

只需leftright替换这个答案分别由leftright组成(最好使用 mathrel,感谢@egreg):

\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\newcommand{\leftrightarrowtriangleqbin}{\mathbin{\overset\triangleq\leftrightarrow}}
\newcommand{\leftrightarrowtriangleqrel}{\mathrel{\overset\triangleq\leftrightarrow}}

\newcommand{\rightarrowtriangleqbin}{\mathbin{\overset\triangleq\rightarrow}}
\newcommand{\rightarrowtriangleqrel}{\mathrel{\overset\triangleq\rightarrow}}

\begin{document}
$S \leftrightarrowtriangleqbin T$\\
$S \leftrightarrowtriangleqrel T$\\
$S \rightarrowtriangleqbin T$\\
$S \rightarrowtriangleqrel T$
\end{document}

编辑:既然你要求改编其他解决方案(这不是可接受的答案)

\documentclass{article}
\usepackage[usestackEOL]{stackengine}
\usepackage{amssymb}
\def\symA{\mathrel{\stackon[-0.8pt]{\longrightarrow}%
  {\scriptstyle\triangleq}}}
\def\symB{\mathrel{\stackon[.7pt]{\longrightarrow}%
  {\setstackgap{S}{0pt}\Shortstack{%
  \scriptscriptstyle\triangle\\\rule[.8pt]{6pt}{0.25pt}\\\rule{8pt}{.25pt}}}}}
\def\symC{\mathrel{\stackon[-0.8pt]{\longleftarrow}%
        {\scriptstyle\triangleq}}}
\def\symD{\mathrel{\stackon[.7pt]{\longleftarrow}%
        {\setstackgap{S}{0pt}\Shortstack{%
                \scriptscriptstyle\triangle\\\rule[.8pt]{6pt}{0.25pt}\\\rule{8pt}{.25pt}}}}}
\stackMath
\begin{document}
$A \symA B \symB C \symC D \symD E$
\end{document}

相关内容