答案1
只需leftright
替换这个答案分别由left
和right
组成(最好使用 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}