Long Left Right Arrow in LaTeX (\longleftrightarrow)

⟷\longleftrightarrow
LaTeX command
\longleftrightarrow
Package
No package needed: built into LaTeX
Mode
Math mode only
Copy the Unicode character
⟷U+27F7

Where it is used

Draws a long two-headed single arrow, a stretched \leftrightarrow for correspondences between long expressions.

\longleftrightarrow suits a correspondence between two lengthy objects, for example a bijection between subsets and binary strings, where the short arrow looks lost. It is a fixed-length symbol, so labels need \overset or a stacked construction. Note that \iff is built from the double-shafted \Longleftrightarrow, not from this single-shaft version, so do not use \longleftrightarrow for logical equivalence in proofs. Physics uses it for a duality between two theories. The extra length also helps when the arrow carries text stacked above it.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

{S⊆[n]}⟷{0,1}n\{S \subseteq [n]\} \longleftrightarrow \{0, 1\}^n
\documentclass{article}
\begin{document}
Long Left Right Arrow: $\longleftrightarrow$

\[ \{S \subseteq [n]\} \longleftrightarrow \{0, 1\}^n \]
\end{document}

Related symbols

All رموز الأسهم →

Frequently asked questions

How do I write Long Left Right Arrow in LaTeX?
Type \longleftrightarrow in math mode, for example $\{S \subseteq [n]\} \longleftrightarrow \{0, 1\}^n$. It works in plain LaTeX without loading any package.
Which package do I need for \longleftrightarrow?
None. \longleftrightarrow is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \longleftrightarrow in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\longleftrightarrow$ in running text. If you only need the glyph in text, paste the Unicode character ⟷ instead (with XeLaTeX or LuaLaTeX and a font that has it).
Math poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث