0

I would really appreciate if someone could tell me how I can ‎‎\leftrightarrow with a line below like this?

enter image description here

I tried ‎‎\leftrightarroweq but it didn't work.

4
  • 1
    The command \leftrightarroweq requires the package stmaryrd or boisik.
    – Sandy G
    Commented Oct 6, 2023 at 16:05
  • It work if you add the package stmaryrd: \documentclass{article} \usepackage{stmaryrd} \begin{document} $\leftrightarroweq$ \end{document}
    – dexteritas
    Commented Oct 6, 2023 at 16:08
  • @SandyG Thank you so much. It works.
    – Mahtab
    Commented Oct 7, 2023 at 4:20
  • @dexteritas Appreciate you. I've done what you told and it works.
    – Mahtab
    Commented Oct 7, 2023 at 4:21

2 Answers 2

3

You can build your own symbol:

\documentclass{article}
\usepackage{amsmath}

\makeatletter
\newcommand{\leftrightarroweq}{\mathrel{\mathpalette\leftrightarroweq@\relax}}
\newcommand{\leftrightarroweq@}[2]{%
  \vtop{
    \sbox\z@{$\m@th#1\leftrightarrow$}%
    \ialign{%
      \hfil##\hfil\cr
      \copy\z@\cr
      \noalign{\nointerlineskip\kern0.7\ht\z@}
      \makebox[\wd\z@][s]{$\m@th#1\relbar\hss\relbar$}\cr
      \noalign{\kern-0.7\ht\z@}
    }%
  }%
}
\makeatother

\begin{document}

$a \leftrightarroweq b \leftrightarrow c$

$\scriptstyle a \leftrightarroweq b \leftrightarrow c$

$\scriptscriptstyle a \leftrightarroweq b \leftrightarrow c$

\end{document}

enter image description here

Compare with what you get with

\documentclass{article}
\usepackage{amsmath}
\usepackage{stmaryrd}

\begin{document}

$a \leftrightarroweq b \leftrightarrow c$

$\scriptstyle a \leftrightarroweq b \leftrightarrow c$

$\scriptscriptstyle a \leftrightarroweq b \leftrightarrow c$

\end{document}

enter image description here

I don't think you want this.

3

The command \leftrightarroweq requires the package stmaryrd (or boisik). If you don't want to load all the glyphs, you can use the onlyoption:

enter image description here

\documentclass{article}

\usepackage[only,leftrightarroweq]{stmaryrd}

\begin{document}

$A\leftrightarroweq B$

\end{document} 

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .