![LaTeX 符号“\rightarrow”用“\triangleq”表示,而“\leftarrow”用“\triangleq”表示](https://linux22.com/image/329086/LaTeX%20%E7%AC%A6%E5%8F%B7%E2%80%9C%5Crightarrow%E2%80%9D%E7%94%A8%E2%80%9C%5Ctriangleq%E2%80%9D%E8%A1%A8%E7%A4%BA%EF%BC%8C%E8%80%8C%E2%80%9C%5Cleftarrow%E2%80%9D%E7%94%A8%E2%80%9C%5Ctriangleq%E2%80%9D%E8%A1%A8%E7%A4%BA.png)
答案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}