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 poweredAIでLaTeXを書く

最高のAI LaTeXエディタ、Overleaf代替

Octreeは15以上の大学の研究者がAIを使って論文をより速く書くのを支援

  • AIで美しいTikZダイアグラムを生成
  • 画像をアップロードしてシームレスにLaTeXに変換
  • 論文の執筆とフォーマットに即座にサポートを取得