答案1
这是其代码:
\documentclass{article}
\usepackage{amsmath}
\makeatletter
\newcommand{\lrarrow}{\mathrel{\mathpalette\lrarrow@\relax}}
\newcommand{\lrarrow@}[2]{%
\vcenter{\hbox{\ooalign{%
$\m@th#1\mkern6mu\rightarrow$\cr
\noalign{\vskip1pt}
$\m@th#1\leftarrow\mkern6mu$\cr
}}}%
}
\makeatother
\begin{document}
$A\lrarrow B_{\lrarrow}$
\end{document}
答案2
\documentclass{article}
\usepackage{stackengine,scalerel}
\newcommand{\lrarrow}{\mathrel{\ensurestackMath{\ThisStyle{%
\stackanchor[\dimexpr-2.5pt-4\LMpt]{\SavedStyle\,\,\rightarrow}%
{\SavedStyle\leftarrow\,\,}}}}}
\begin{document}\Huge
$A\lrarrow B_{\lrarrow}$
$\scriptstyle A\lrarrow B_{\lrarrow}$
\end{document}
交替,
\documentclass{article}
\usepackage{stackengine,scalerel}
\newcommand{\lrarrow}{\mathrel{\ensurestackMath{\ThisStyle{\renewcommand\stacktype{L}%
\stackanchor[3\LMpt]{\SavedStyle\,\,\rightarrow}{\SavedStyle\leftarrow\,\,}}}}}
\begin{document}\Huge
$A\lrarrow B_{\lrarrow}$
$\scriptstyle A\lrarrow B_{\lrarrow}$
\end{document}